@voplus/morpho-csp 4.0.19 → 4.0.21
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/components/CurrencyView/index.js +1 -180
- package/es/components/CurrencyView/index.js.map +1 -1
- package/es/components/CurrencyView/state.d.ts +0 -1
- package/es/components/CurrencyView/state.js +0 -180
- package/es/components/CurrencyView/state.js.map +1 -1
- package/es/components/DragTableRow/index.d.ts +5 -2
- package/es/components/DragTableRow/index.js +25 -34
- package/es/components/DragTableRow/index.js.map +1 -1
- package/es/data/CLDA/store.d.ts +1 -1
- package/es/data/CLDA/store.js +3 -2
- package/es/data/CLDA/store.js.map +1 -1
- package/es/data/clda-form/interfaces.d.ts +10 -0
- package/es/data/clda-form/types.d.ts +10 -0
- package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js +9 -2
- package/es/modules/corporate/clda/controls/CLDAMenu/items/GenerateLegalEnvelope.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/TableDragCell.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +41 -30
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js.map +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/TableDragCell.js +1 -1
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js +36 -25
- package/es/modules/corporate/share-options-register/components/ShareOptionItems/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailItem/index.d.ts +1 -1
- package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailItem/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailItem/state.d.ts +1 -1
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailItem/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailList/index.d.ts +1 -1
- package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailList/index.js +2 -2
- package/es/modules/self-registration/clda-form/incorporation/appoint-representative/components/NewOfficerDetailList/index.js.map +1 -0
- 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/company-general/components/AddAllotmentDialog/index.js +2 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.d.ts +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.js +0 -188
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddAllotmentDialog/state.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.d.ts +8 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js +79 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/index.less +37 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/state.d.ts +15 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/state.js +42 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddDivideDialog/state.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js +1 -7
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddTransferDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.d.ts +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentItem/index.js +12 -47
- 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/AllotmentItem/index.less +5 -81
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.d.ts +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.d.ts +10 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js +70 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.less +50 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.d.ts +7 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js +46 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.d.ts +8 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js +36 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/{CompanyGeneralOfficerInfo → OfficerDetailItem}/index.d.ts +2 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js +93 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.less +55 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.d.ts +8 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js +36 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.d.ts +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferItem/index.js +9 -43
- 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/components/TransferItem/index.less +0 -69
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.d.ts +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/TransferList/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +38 -59
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.d.ts +21 -0
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js +123 -0
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/components/FormContactEditor/index.less +100 -0
- package/es/obsolete/order/components/OrderItems/index.js +37 -31
- package/es/obsolete/order/components/OrderItems/index.js.map +1 -1
- package/es/obsolete/order/controls/OrderLabel/index.js +3 -3
- package/es/obsolete/order/controls/OrderLabel/index.js.map +1 -1
- package/es/obsolete/order/controls/OrderLabel/state.d.ts +0 -1
- package/es/obsolete/order/controls/OrderLabel/state.js +0 -180
- package/es/obsolete/order/controls/OrderLabel/state.js.map +1 -1
- package/package.json +1 -1
- package/es/components/TableDragRow/FormRowContext.d.ts +0 -4
- package/es/components/TableDragRow/FormRowContext.js +0 -5
- package/es/components/TableDragRow/FormRowContext.js.map +0 -1
- package/es/components/TableDragRow/index.d.ts +0 -3
- package/es/components/TableDragRow/index.js +0 -41
- package/es/components/TableDragRow/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js +0 -125
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.less +0 -131
- package/es/modules/self-registration/clda-form/incorporation/components/NewOfficerDetailItem/index.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/components/NewOfficerDetailItem/state.js.map +0 -1
- package/es/modules/self-registration/clda-form/incorporation/components/NewOfficerDetailList/index.js.map +0 -1
- /package/es/modules/self-registration/clda-form/incorporation/{components → appoint-representative/components}/NewOfficerDetailItem/state.js +0 -0
|
@@ -2,22 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
.company-general-allotment-info {
|
|
4
4
|
:global {
|
|
5
|
-
.company-general-allotment-
|
|
5
|
+
.company-general-allotment-header {
|
|
6
6
|
display: flex;
|
|
7
7
|
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
8
9
|
|
|
9
|
-
.company-general-allotment-title
|
|
10
|
-
flex: 1;
|
|
11
|
-
|
|
12
|
-
.ant-input-affix-wrapper {
|
|
13
|
-
border-radius: @border-radius;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.company-general-allotment-name {
|
|
10
|
+
.company-general-allotment-title {
|
|
18
11
|
color: rgba(0, 0, 0, 0.85);
|
|
19
|
-
font-weight:
|
|
20
|
-
font-size:
|
|
12
|
+
font-weight: bold;
|
|
13
|
+
font-size: 16px;
|
|
21
14
|
}
|
|
22
15
|
|
|
23
16
|
.action-button {
|
|
@@ -74,75 +67,6 @@
|
|
|
74
67
|
margin-bottom: 40px;
|
|
75
68
|
}
|
|
76
69
|
|
|
77
|
-
.basic-info {
|
|
78
|
-
display: flex;
|
|
79
|
-
line-height: 0;
|
|
80
|
-
margin-top: 10px;
|
|
81
|
-
|
|
82
|
-
.ant-input-affix-wrapper {
|
|
83
|
-
flex: 1;
|
|
84
|
-
border-radius: 8px;
|
|
85
|
-
margin-right: 3em;
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
.ant-input-affix-wrapper-disabled {
|
|
89
|
-
color: rgba(0, 0, 0, 0.85);
|
|
90
|
-
cursor: auto;
|
|
91
|
-
padding: 4px 0;
|
|
92
|
-
|
|
93
|
-
.ant-input[disabled] {
|
|
94
|
-
color: rgba(0, 0, 0, 0.85);
|
|
95
|
-
cursor: auto;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.basic-val {
|
|
100
|
-
font-size: 14px;
|
|
101
|
-
font-weight: 400;
|
|
102
|
-
color: rgba(0, 0, 0, 0.45);
|
|
103
|
-
margin-right: 15px;
|
|
104
|
-
|
|
105
|
-
.svg-inline--fa {
|
|
106
|
-
margin-right: 5px;
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.company-general-allotment-info-content {
|
|
112
|
-
display: flex;
|
|
113
|
-
flex-direction: column;
|
|
114
|
-
|
|
115
|
-
> div:nth-child(2) {
|
|
116
|
-
margin-bottom: 10px;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.company-general-allotment-info-item {
|
|
120
|
-
flex: 1;
|
|
121
|
-
position: relative;
|
|
122
|
-
padding-right: 3em;
|
|
123
|
-
|
|
124
|
-
.buttons {
|
|
125
|
-
position: absolute;
|
|
126
|
-
right: 30px;
|
|
127
|
-
top: 0;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.company-general-allotment-item-name {
|
|
131
|
-
padding-bottom: 16px;
|
|
132
|
-
font-size: 16px;
|
|
133
|
-
font-weight: bold;
|
|
134
|
-
|
|
135
|
-
svg {
|
|
136
|
-
margin-right: 5px;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
.morpho-inline-edit {
|
|
141
|
-
width: 80%;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
70
|
.ant-alert-warning {
|
|
147
71
|
margin-top: 10px;
|
|
148
72
|
}
|
|
@@ -16,7 +16,7 @@ const AllotmentList = (props) => {
|
|
|
16
16
|
return (React.createElement("div", null, ((_b = (_a = incorporation.content.issueShareDetails) === null || _a === void 0 ? void 0 : _a.allotments) === null || _b === void 0 ? void 0 : _b.length)
|
|
17
17
|
? (_c = incorporation.content.issueShareDetails) === null || _c === void 0 ? void 0 : _c.allotments.map((a, i) => {
|
|
18
18
|
var _a, _b, _c;
|
|
19
|
-
return (React.createElement(AllotmentItem, { key: a.key, allotment: a, contact: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === a.shareholderId)[0], contacts: incorporation.content.contacts, allotmentLength: (_c = (_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.allotments) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onSave: onSave, onDeleteClick: () => deleteTransfer(i) }));
|
|
19
|
+
return (React.createElement(AllotmentItem, { key: a.key, allotment: a, isOnlyInternalUse: props.isOnlyInternalUse, contact: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === a.shareholderId)[0], contacts: incorporation.content.contacts, allotmentLength: (_c = (_b = incorporation.content.issueShareDetails) === null || _b === void 0 ? void 0 : _b.allotments) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onSave: onSave, onDeleteClick: () => deleteTransfer(i) }));
|
|
20
20
|
})
|
|
21
21
|
: null));
|
|
22
22
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACN,WAAW,EACX,gBAAgB,GAGhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,aAAa,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AllotmentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACN,WAAW,EACX,gBAAgB,GAGhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;;IACJ,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAE9D,MAAM,aAAa,GAAG,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,iBAAiB,0CAAE,aAAa,CAAC;IAE9E,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,OAAO,CACN,iCACE,CAAA,MAAA,MAAA,aAAa,CAAC,OAAO,CAAC,iBAAiB,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,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE;qBACtF;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;aAAM;YACN,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;gBAC1B,IAAI,EAAE;oBACL,iBAAiB,EAAE;wBAClB,UAAU,EAAE,UAAU,CAAC,UAAU,CAAC;wBAClC,aAAa,EAAE,aAAa,KAAK,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,EAAE;qBACtF;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IShareMergeDivide } from "../../../../../../../data/clda-form";
|
|
3
|
+
declare const DivideColumnItem: (props: {
|
|
4
|
+
shareMergeDivide: IShareMergeDivide;
|
|
5
|
+
divideLength?: number | undefined;
|
|
6
|
+
onReload?: (() => void) | undefined;
|
|
7
|
+
onSave?: ((shareMergeDivide: IShareMergeDivide) => void) | undefined;
|
|
8
|
+
onDeleteClick?: (() => void) | undefined;
|
|
9
|
+
}) => JSX.Element;
|
|
10
|
+
export default DivideColumnItem;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button, Divider, Row, Select, InputNumber } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { faTrashAlt, faPenToSquare } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { ColumnItem, ColumnItemCol } from "@voplus/morpho-ui/es/controls/ColumnItem";
|
|
7
|
+
import styles from "./index.less";
|
|
8
|
+
const DivideColumnItem = (props) => {
|
|
9
|
+
const { shareMergeDivide } = props;
|
|
10
|
+
const [editable, setEditable] = useState(false);
|
|
11
|
+
return observe(() => {
|
|
12
|
+
return (React.createElement("div", { className: styles["divide-column-item"] },
|
|
13
|
+
React.createElement("div", { className: "divide-column-item-header" },
|
|
14
|
+
React.createElement("div", { className: "action-button" },
|
|
15
|
+
React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
16
|
+
React.createElement(FontAwesomeIcon, { icon: faPenToSquare })),
|
|
17
|
+
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
18
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAlt })))),
|
|
19
|
+
React.createElement("div", { className: "divide-column-item-content" },
|
|
20
|
+
React.createElement(ColumnItem, null,
|
|
21
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Share Type" }, editable ? (React.createElement(Select, { placeholder: "Select Share Class", value: shareMergeDivide.shareClass, style: { width: "100%" }, optionFilterProp: "children", onChange: (value) => (shareMergeDivide.shareClass = value), filterOption: (input, option) => { var _a; return ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(input.toLowerCase()); }, options: [
|
|
22
|
+
{
|
|
23
|
+
value: "Ordinary",
|
|
24
|
+
label: "Ordinary",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
value: "Preference",
|
|
28
|
+
label: "Preference",
|
|
29
|
+
},
|
|
30
|
+
] })) : (React.createElement("div", { className: "column-item-value" }, shareMergeDivide.shareClass))),
|
|
31
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Total Current Shares" },
|
|
32
|
+
React.createElement("div", { className: "column-item-value" })),
|
|
33
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Result Shares" },
|
|
34
|
+
React.createElement("div", { className: "column-item-value" })),
|
|
35
|
+
React.createElement(ColumnItemCol, { span: 4, title: "Consolidate Type" },
|
|
36
|
+
React.createElement("div", { className: "column-item-value" }, editable ? (React.createElement(Select, { placeholder: "Select Consolidate Type", value: shareMergeDivide.type, style: { width: "100%" }, optionFilterProp: "children", onChange: (value) => (shareMergeDivide.type = value), filterOption: (input, option) => { var _a; return ((_a = option === null || option === void 0 ? void 0 : option.label) !== null && _a !== void 0 ? _a : "").toLowerCase().includes(input.toLowerCase()); }, options: [
|
|
37
|
+
{
|
|
38
|
+
value: "Consolidate",
|
|
39
|
+
label: "Consolidate",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
value: "Divide",
|
|
43
|
+
label: "Divide",
|
|
44
|
+
},
|
|
45
|
+
] })) : (React.createElement("div", { className: "column-item-value" }, shareMergeDivide.type)))),
|
|
46
|
+
React.createElement(ColumnItemCol, { span: 8, title: "Ratio" },
|
|
47
|
+
React.createElement("div", { className: "column-item-value" }, shareMergeDivide.type === "Consolidate" ? (React.createElement("div", { className: "consolidate-divide" }, editable ? (React.createElement(React.Fragment, null,
|
|
48
|
+
"1 into",
|
|
49
|
+
" ",
|
|
50
|
+
React.createElement(InputNumber, { style: { margin: "0 10px" }, defaultValue: shareMergeDivide.ratio, onChange: (value) => (shareMergeDivide.ratio = value) }))) : (`1 into ${shareMergeDivide.ratio}`))) : (React.createElement("div", { className: "consolidate-divide" }, editable ? (React.createElement(React.Fragment, null,
|
|
51
|
+
React.createElement(InputNumber, { style: { margin: "0 10px" }, defaultValue: shareMergeDivide.ratio, onChange: (value) => (shareMergeDivide.ratio = value) }),
|
|
52
|
+
" ",
|
|
53
|
+
"into 1")) : (`${shareMergeDivide.ratio} into 1`))))))),
|
|
54
|
+
editable && (React.createElement(Row, { justify: "end", style: { marginTop: "10px" } },
|
|
55
|
+
React.createElement(Button, { onClick: () => {
|
|
56
|
+
var _a;
|
|
57
|
+
setEditable(false);
|
|
58
|
+
(_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
59
|
+
} }, "Cancel"),
|
|
60
|
+
React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
|
|
61
|
+
props.divideLength > 1 && React.createElement(Divider, null)));
|
|
62
|
+
});
|
|
63
|
+
async function onSave() {
|
|
64
|
+
var _a;
|
|
65
|
+
setEditable(false);
|
|
66
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props, shareMergeDivide);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
export default DivideColumnItem;
|
|
70
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,gBAAgB,GAAG,CAAC,KAMzB,EAAE,EAAE;IACJ,MAAM,EAAE,gBAAgB,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAEhD,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,OAAO,CACN,6BAAK,SAAS,EAAE,MAAM,CAAC,oBAAoB,CAAC;YAC3C,6BAAK,SAAS,EAAC,2BAA2B;gBACzC,6BAAK,SAAS,EAAC,eAAe;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AAC;IACH,CAAC,CAAC,CAAC;IAEH,KAAK,UAAU,MAAM;;QACpB,WAAW,CAAC,KAAK,CAAC,CAAC;QAEnB,MAAA,KAAK,CAAC,MAAM,sDAAG,gBAAgB,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.divide-column-item {
|
|
4
|
+
margin-bottom: 20px;
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
:global {
|
|
8
|
+
.divide-column-item-header {
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
justify-content: end;
|
|
12
|
+
|
|
13
|
+
.action-button {
|
|
14
|
+
font-size: 14px;
|
|
15
|
+
|
|
16
|
+
>span {
|
|
17
|
+
margin-left: 6px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.delete-icon {
|
|
22
|
+
&:hover {
|
|
23
|
+
color: @delete-color;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.edit-icon {
|
|
28
|
+
&:hover {
|
|
29
|
+
color: @primary-color;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.column-item-value {
|
|
36
|
+
height: 30px;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.custom-column-item___yTecf {
|
|
40
|
+
border-bottom: none;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.column-item-content {
|
|
44
|
+
& > div:nth-child(2) {
|
|
45
|
+
width: 100%;
|
|
46
|
+
padding-right: 20px;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { useCLDAForm, useCLDAFormStore, } from "../../../../../../../data/clda-form";
|
|
7
|
+
import DivideColumnItem from "../DivideColumnItem";
|
|
8
|
+
const DivideColumnList = (props) => {
|
|
9
|
+
const store = useCLDAFormStore();
|
|
10
|
+
const incorporation = useCLDAForm(props.id, { reload: true });
|
|
11
|
+
return observe(() => {
|
|
12
|
+
var _a, _b, _c, _d, _e;
|
|
13
|
+
return (React.createElement("div", null, ((_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.mergeDivideDetails) === null || _b === void 0 ? void 0 : _b.mergeDivides) === null || _c === void 0 ? void 0 : _c.length)
|
|
14
|
+
? (_e = (_d = incorporation.content) === null || _d === void 0 ? void 0 : _d.mergeDivideDetails) === null || _e === void 0 ? void 0 : _e.mergeDivides.map((d, i) => {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
return (React.createElement(DivideColumnItem, { key: d.key, shareMergeDivide: d, divideLength: (_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.mergeDivideDetails) === null || _b === void 0 ? void 0 : _b.mergeDivides) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onSave: onSave, onDeleteClick: () => deleteDivide(i) }));
|
|
17
|
+
})
|
|
18
|
+
: null));
|
|
19
|
+
});
|
|
20
|
+
function deleteDivide(index) {
|
|
21
|
+
return Modal.confirm({
|
|
22
|
+
title: "Do you want to delete this item?",
|
|
23
|
+
async onOk() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
let mergeDivides = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.mergeDivideDetails) === null || _b === void 0 ? void 0 : _b.mergeDivides);
|
|
26
|
+
mergeDivides.splice(index, 1);
|
|
27
|
+
await store.edit(props.id, {
|
|
28
|
+
data: { MergeDivideDetails: { MergeDivides: changeName(mergeDivides) } },
|
|
29
|
+
error: "message",
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
async function onSave(transfer) {
|
|
35
|
+
var _a, _b, _c;
|
|
36
|
+
const mergeDivides = (_c = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.mergeDivideDetails) === null || _b === void 0 ? void 0 : _b.mergeDivides)) !== null && _c !== void 0 ? _c : [];
|
|
37
|
+
const no = mergeDivides === null || mergeDivides === void 0 ? void 0 : mergeDivides.findIndex((i) => i.key === transfer.key);
|
|
38
|
+
mergeDivides[no] = transfer;
|
|
39
|
+
await store.edit(props.id, {
|
|
40
|
+
data: { MergeDivideDetails: { MergeDivides: changeName(mergeDivides) } },
|
|
41
|
+
error: "message",
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export default DivideColumnList;
|
|
46
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/DivideColumnList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EACN,WAAW,EACX,gBAAgB,GAEhB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,MAAM,gBAAgB,GAAG,CAAC,KAIzB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,gBAAgB,EAAE,CAAC;IACjC,MAAM,aAAa,GAAG,WAAW,CAAC,KAAK,C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;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;IAED,KAAK,UAAU,MAAM,CAAC,QAA2B;;QAChD,MAAM,YAAY,GAAG,MAAA,KAAK,CAAC,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,kBAAkB,0CAAE,YAAY,CAAC,mCAAI,EAAE,CAAC;QAC1F,MAAM,EAAE,GAAG,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,CAAC;QAClE,YAAY,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC;QAE5B,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;YAC1B,IAAI,EAAE,EAAE,kBAAkB,EAAE,EAAE,YAAY,EAAE,UAAU,CAAC,YAAY,CAAC,EAAE,EAAE;YACxE,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
7
|
+
import OfficerDetailItem from "../OfficerDetailItem";
|
|
8
|
+
const NewOfficerDetailList = (props) => {
|
|
9
|
+
const store = useCLDAFormStore();
|
|
10
|
+
const incorporation = useCLDAForm(props.id, { reload: true });
|
|
11
|
+
return observe(() => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
return (React.createElement("div", null, ((_b = (_a = incorporation.content.newOfficerAppointments) === null || _a === void 0 ? void 0 : _a.officers) === null || _b === void 0 ? void 0 : _b.length)
|
|
14
|
+
? (_c = incorporation.content.newOfficerAppointments) === null || _c === void 0 ? void 0 : _c.officers.map((o, i) => {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
return (React.createElement(OfficerDetailItem, { key: o.officerId, formId: props.id, officer: o, editOption: "NewOfficerAppointments", isOnlyInternalUse: props.isOnlyInternalUse, contacts: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === o.officerId)[0], officerLength: (_c = (_b = incorporation.content.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onDeleteClick: () => deleteOfficer(i) }));
|
|
17
|
+
})
|
|
18
|
+
: null));
|
|
19
|
+
});
|
|
20
|
+
function deleteOfficer(index) {
|
|
21
|
+
return Modal.confirm({
|
|
22
|
+
title: "Do you want to delete this item?",
|
|
23
|
+
async onOk() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const officers = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers);
|
|
26
|
+
officers.splice(index, 1);
|
|
27
|
+
await store.edit(props.id, {
|
|
28
|
+
data: { NewOfficerAppointments: { Officers: changeName(officers) } },
|
|
29
|
+
error: "message",
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default NewOfficerDetailList;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/NewOfficerDetailList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,UAAU,EAAE,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AAC,CAAC,IAAI,CACF,CACN,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,aAAa,CAAC,KAAa;QACnC,OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;;gBACT,MAAM,QAAQ,GAAG,KAAK,CAAC,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,sBAAsB,0CAAE,QAAS,CAAC,CAAC;gBACjF,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBAC1B,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;oBAC1B,IAAI,EAAE,EAAE,sBAAsB,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC,EAAE,EAAE;oBACpE,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -6,7 +6,9 @@ declare const CompanyGeneralOfficerInfo: (props: {
|
|
|
6
6
|
officer: IOfficerPositionsData;
|
|
7
7
|
contacts: IFormPeopleOptions;
|
|
8
8
|
editOption: "NewOfficerAppointments" | "RemoveOfficerDetails";
|
|
9
|
+
isOnlyInternalUse?: boolean;
|
|
9
10
|
officerLength?: number;
|
|
11
|
+
onReload?: () => void;
|
|
10
12
|
onDeleteClick?: () => void;
|
|
11
13
|
}) => JSX.Element;
|
|
12
14
|
export default CompanyGeneralOfficerInfo;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button, Divider, Form, Row, Select } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
4
|
+
import { faTrashAlt, faPenToSquare } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
+
import { useCLDAForm, useCLDAFormStore, } from "../../../../../../../data/clda-form";
|
|
8
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
9
|
+
import { useIncorporationFormContext } from "../../../context";
|
|
10
|
+
import FormContactEditor from "../../../components/FormContactEditor";
|
|
11
|
+
import styles from "./index.less";
|
|
12
|
+
const CompanyGeneralOfficerInfo = (props) => {
|
|
13
|
+
const { formId, officer, contacts, isOnlyInternalUse } = props;
|
|
14
|
+
const [editable, setEditable] = useState(false);
|
|
15
|
+
const store = useCLDAFormStore();
|
|
16
|
+
const context = useIncorporationFormContext();
|
|
17
|
+
const incorporation = useCLDAForm(props.formId);
|
|
18
|
+
// 用于保存修改之后的contact数据
|
|
19
|
+
let contactDate;
|
|
20
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
21
|
+
React.createElement("div", { className: styles["company-general-officer-info"] },
|
|
22
|
+
React.createElement("div", { className: "company-general-officer-header" },
|
|
23
|
+
React.createElement("div", { className: "officer-name" }, contacts === null || contacts === void 0 ? void 0 : contacts.name),
|
|
24
|
+
(context ? context.editable : true) && (React.createElement("div", { className: "action-button" },
|
|
25
|
+
contacts.idType === "NewId" && (React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
26
|
+
React.createElement(FontAwesomeIcon, { icon: faPenToSquare }))),
|
|
27
|
+
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
28
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAlt }))))),
|
|
29
|
+
React.createElement(Form, { layout: "horizontal", className: "new-officer-position" },
|
|
30
|
+
React.createElement(Form.Item, { label: "Position" },
|
|
31
|
+
React.createElement(Select, { mode: "tags", style: { width: "100%" }, placeholder: "Tags Mode", defaultValue: officer.positions, onChange: (value) => onChangePosition(value), options: [
|
|
32
|
+
{
|
|
33
|
+
value: "Director",
|
|
34
|
+
label: "Director",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
value: "Secretary",
|
|
38
|
+
label: "Secretary",
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
value: "Auditor",
|
|
42
|
+
label: "Auditor",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
value: "Chief Executive Officer",
|
|
46
|
+
label: "Chief Executive Officer",
|
|
47
|
+
},
|
|
48
|
+
] }))),
|
|
49
|
+
contacts.idType === "NewId" && (React.createElement(FormContactEditor, { header: false, editable: editable, contact: contacts, isOnlyInternalUse: isOnlyInternalUse, onChange: (c) => (contactDate = c) })),
|
|
50
|
+
editable && (React.createElement(Row, { justify: "end" },
|
|
51
|
+
React.createElement(Button, { onClick: () => {
|
|
52
|
+
var _a;
|
|
53
|
+
setEditable(false);
|
|
54
|
+
(_a = props.onReload) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
55
|
+
} }, "Cancel"),
|
|
56
|
+
React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))),
|
|
57
|
+
props.officerLength > 1 && React.createElement(Divider, { className: "halvingline" })))));
|
|
58
|
+
async function onChangePosition(position) {
|
|
59
|
+
var _a, _b, _c, _d, _e, _f;
|
|
60
|
+
officer.positions = position;
|
|
61
|
+
if (props.editOption === "NewOfficerAppointments") {
|
|
62
|
+
const officers = (_c = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers)) !== null && _c !== void 0 ? _c : [];
|
|
63
|
+
const number = officers.findIndex((i) => i.officerId === props.officer.officerId);
|
|
64
|
+
officers[number] = officer;
|
|
65
|
+
await store.edit(formId, {
|
|
66
|
+
data: { NewOfficerAppointments: { Officers: changeName(officers) } },
|
|
67
|
+
error: "message",
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
if (props.editOption === "RemoveOfficerDetails") {
|
|
71
|
+
const removeOfficers = (_f = clone((_e = (_d = incorporation.content) === null || _d === void 0 ? void 0 : _d.removeOfficerDetails) === null || _e === void 0 ? void 0 : _e.officers)) !== null && _f !== void 0 ? _f : [];
|
|
72
|
+
const number = removeOfficers.findIndex((i) => i.officerId === props.officer.officerId);
|
|
73
|
+
removeOfficers[number] = officer;
|
|
74
|
+
await store.edit(formId, {
|
|
75
|
+
data: { RemoveOfficerDetails: { Officers: changeName(removeOfficers) } },
|
|
76
|
+
error: "message",
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
async function onSave() {
|
|
81
|
+
var _a, _b;
|
|
82
|
+
const officerContacts = (_b = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts)) !== null && _b !== void 0 ? _b : [];
|
|
83
|
+
const number = officerContacts.findIndex((i) => i.id === props.officer.officerId);
|
|
84
|
+
officerContacts[number] = contactDate;
|
|
85
|
+
await store.edit(formId, {
|
|
86
|
+
data: { Contacts: changeName(officerContacts) },
|
|
87
|
+
error: "message",
|
|
88
|
+
});
|
|
89
|
+
setEditable(false);
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
export default CompanyGeneralOfficerInfo;
|
|
93
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/OfficerDetailItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAGN,WA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AAS,CAAC,CAAC;YACxF,cAAc,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC;YAEjC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;gBACxB,IAAI,EAAE,EAAE,oBAAoB,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,EAAE;gBACxE,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;IACF,CAAC;IAED,KAAK,UAAU,MAAM;;QACpB,MAAM,eAAe,GAAG,MAAA,KAAK,CAAC,MAAA,aAAa,CAAC,OAAO,0CAAE,QAAQ,CAAC,mCAAI,EAAE,CAAC;QACrE,MAAM,MAAM,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;QAClF,eAAe,CAAC,MAAM,CAAC,GAAG,WAAW,CAAC;QAEtC,MAAM,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE;YACxB,IAAI,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC,EAAE;YAC/C,KAAK,EAAE,SAAS;SAChB,CAAC,CAAC;QAEH,WAAW,CAAC,KAAK,CAAC,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.company-general-officer-info {
|
|
4
|
+
:global {
|
|
5
|
+
.company-general-officer-header {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: space-between;
|
|
9
|
+
|
|
10
|
+
.officer-name {
|
|
11
|
+
color: rgba(0, 0, 0, 0.85);
|
|
12
|
+
font-weight: bold;
|
|
13
|
+
font-size: 16px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.action-button {
|
|
17
|
+
font-size: 14px;
|
|
18
|
+
|
|
19
|
+
> span {
|
|
20
|
+
margin-left: 6px;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.delete-icon {
|
|
25
|
+
&:hover {
|
|
26
|
+
color: @delete-color;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.edit-icon {
|
|
31
|
+
&:hover {
|
|
32
|
+
color: @primary-color;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.new-officer-position {
|
|
39
|
+
padding-top: 25px;
|
|
40
|
+
padding-right: 3em;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.placeholder {
|
|
44
|
+
color: #00000040;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.halvingline {
|
|
48
|
+
margin-bottom: 40px;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.ant-alert-warning {
|
|
52
|
+
margin-top: 10px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Modal } from "antd";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
7
|
+
import OfficerDetailItem from "../OfficerDetailItem";
|
|
8
|
+
const RemoveOfficerDetailList = (props) => {
|
|
9
|
+
const store = useCLDAFormStore();
|
|
10
|
+
const incorporation = useCLDAForm(props.id, { reload: true });
|
|
11
|
+
return observe(() => {
|
|
12
|
+
var _a, _b, _c;
|
|
13
|
+
return (React.createElement("div", null, ((_b = (_a = incorporation.content.removeOfficerDetails) === null || _a === void 0 ? void 0 : _a.officers) === null || _b === void 0 ? void 0 : _b.length)
|
|
14
|
+
? (_c = incorporation.content.removeOfficerDetails) === null || _c === void 0 ? void 0 : _c.officers.map((r, i) => {
|
|
15
|
+
var _a, _b, _c;
|
|
16
|
+
return (React.createElement(OfficerDetailItem, { key: r.officerId, formId: props.id, editOption: "RemoveOfficerDetails", officer: r, isOnlyInternalUse: props.isOnlyInternalUse, contacts: (_a = incorporation.content.contacts) === null || _a === void 0 ? void 0 : _a.filter((c) => c.id === r.officerId)[0], officerLength: (_c = (_b = incorporation.content.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.length, onReload: props.onReload, onDeleteClick: () => deleteRemoveOfficer(i) }));
|
|
17
|
+
})
|
|
18
|
+
: null));
|
|
19
|
+
});
|
|
20
|
+
function deleteRemoveOfficer(index) {
|
|
21
|
+
return Modal.confirm({
|
|
22
|
+
title: "Do you want to delete this item?",
|
|
23
|
+
async onOk() {
|
|
24
|
+
var _a, _b;
|
|
25
|
+
const removeOfficers = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers);
|
|
26
|
+
removeOfficers.splice(index, 1);
|
|
27
|
+
await store.edit(props.id, {
|
|
28
|
+
data: { RemoveOfficerDetails: { Officers: changeName(removeOfficers) } },
|
|
29
|
+
error: "message",
|
|
30
|
+
});
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
export default RemoveOfficerDetailList;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/RemoveOfficerDetailList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAA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CAAC,GAC1C,CACD,CAAA;aAAA,CAAC;YACJ,CAAC,CAAC,IAAI,CACF,CACN,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,mBAAmB,CAAC,KAAa;QACzC,OAAO,KAAK,CAAC,OAAO,CAAC;YACpB,KAAK,EAAE,kCAAkC;YACzC,KAAK,CAAC,IAAI;;gBACT,MAAM,cAAc,GAAG,KAAK,CAAC,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,oBAAoB,0CAAE,QAAS,CAAC,CAAC;gBACrF,cAAc,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;gBAChC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE;oBAC1B,IAAI,EAAE,EAAE,oBAAoB,EAAE,EAAE,QAAQ,EAAE,UAAU,CAAC,cAAc,CAAC,EAAE,EAAE;oBACxE,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -4,6 +4,7 @@ declare const TransferItem: (props: {
|
|
|
4
4
|
transfer: ITransfer;
|
|
5
5
|
contact: IFormPeopleOptions;
|
|
6
6
|
contacts: IFormPeopleOptions[];
|
|
7
|
+
isOnlyInternalUse?: boolean | undefined;
|
|
7
8
|
transferLength?: number | undefined;
|
|
8
9
|
onReload?: (() => void) | undefined;
|
|
9
10
|
onSave?: ((transfer: ITransfer, contact?: IFormPeopleOptions) => void) | undefined;
|