@voplus/morpho-csp 4.0.14 → 4.0.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.js +29 -17
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.d.ts +8 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js +128 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/AddRemoveOfficerDialog/index.less +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.d.ts +12 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js +125 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/components/CompanyGeneralOfficerInfo/index.less +131 -0
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js +50 -8
- package/es/modules/self-registration/clda-form/incorporation/company-general/index.js.map +1 -1
- package/package.json +2 -2
- package/es/modules/self-registration/clda-form/incorporation/AddOfficerDialog/index.js.map +0 -1
- /package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.d.ts +0 -0
- /package/es/modules/self-registration/clda-form/incorporation/{AddOfficerDialog → company-general/components/AddOfficerDialog}/index.less +0 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Form, Modal, Select, message } from "antd";
|
|
3
|
-
import { useCLDAForm, useCLDAFormStore } from "
|
|
4
|
-
import { changeName } from "
|
|
3
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
5
|
import { clone } from "lodash-es";
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
import { v4 as uuid } from "uuid";
|
|
8
|
-
import NewLegalContactDialog from "
|
|
8
|
+
import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
9
9
|
import "./index.less";
|
|
10
10
|
const AddOfficerDialog = (props) => {
|
|
11
|
-
var _a;
|
|
11
|
+
var _a, _b;
|
|
12
12
|
const { id, visible, onCancel } = props;
|
|
13
13
|
const [showDialog, setShowDialog] = useState(false);
|
|
14
14
|
const [contactId, setContactId] = useState();
|
|
@@ -17,11 +17,11 @@ const AddOfficerDialog = (props) => {
|
|
|
17
17
|
const store = useCLDAFormStore();
|
|
18
18
|
const incorporation = useCLDAForm(id);
|
|
19
19
|
useEffect(() => {
|
|
20
|
-
var _a, _b;
|
|
20
|
+
var _a, _b, _c;
|
|
21
21
|
const ids = [];
|
|
22
|
-
(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.
|
|
22
|
+
(_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.map((item) => ids.push(item.officerId));
|
|
23
23
|
setList(ids);
|
|
24
|
-
}, [(_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.
|
|
24
|
+
}, [(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers]);
|
|
25
25
|
return observe(() => {
|
|
26
26
|
var _a, _b;
|
|
27
27
|
return (React.createElement(Modal, { width: 500, title: "Add Officer", okText: "Add", onOk: onAdd, wrapClassName: "add-officer-dialog", onCancel: onCancel, open: visible },
|
|
@@ -91,25 +91,37 @@ const AddOfficerDialog = (props) => {
|
|
|
91
91
|
setShowDialog(false);
|
|
92
92
|
}
|
|
93
93
|
function onAdd() {
|
|
94
|
-
var _a;
|
|
94
|
+
var _a, _b, _c;
|
|
95
95
|
if (!contactId) {
|
|
96
|
-
|
|
96
|
+
message.warning("Please select contacts!");
|
|
97
97
|
}
|
|
98
98
|
else {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
OfficerId: contactId,
|
|
103
|
-
},
|
|
104
|
-
};
|
|
99
|
+
let officers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers;
|
|
100
|
+
if (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
101
|
+
officers = changeName(officers);
|
|
105
102
|
store.edit(id, {
|
|
106
103
|
data: {
|
|
107
|
-
NewOfficerAppointments:
|
|
104
|
+
NewOfficerAppointments: {
|
|
105
|
+
Officers: (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
106
|
+
? [
|
|
107
|
+
...officers,
|
|
108
|
+
{
|
|
109
|
+
Positions: positions,
|
|
110
|
+
OfficerId: contactId,
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
: [
|
|
114
|
+
{
|
|
115
|
+
Positions: positions,
|
|
116
|
+
OfficerId: contactId,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
108
120
|
},
|
|
109
121
|
error: "message",
|
|
110
122
|
});
|
|
111
123
|
}
|
|
112
|
-
|
|
124
|
+
(_c = props.onCancel) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
113
125
|
}
|
|
114
126
|
};
|
|
115
127
|
export default AddOfficerDialog;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/components/AddOfficerDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,Q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SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;4BACH,CAAC,CAAC;gCACA;oCACC,SAAS,EAAE,SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;qBACJ;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;QACD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
|
+
import { Form, Modal, Select, message } from "antd";
|
|
3
|
+
import { useCLDAForm, useCLDAFormStore } from "../../../../../../../data/clda-form";
|
|
4
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
5
|
+
import { clone } from "lodash-es";
|
|
6
|
+
import { observe } from "@voplus/morpho-ui";
|
|
7
|
+
import { v4 as uuid } from "uuid";
|
|
8
|
+
import NewLegalContactDialog from "../../../../../../corporate/company/identity/components/NewLegalContactDialog";
|
|
9
|
+
import "./index.less";
|
|
10
|
+
const AddRemoveOfficerDialog = (props) => {
|
|
11
|
+
var _a, _b;
|
|
12
|
+
const { id, visible, onCancel } = props;
|
|
13
|
+
const [showDialog, setShowDialog] = useState(false);
|
|
14
|
+
const [contactId, setContactId] = useState();
|
|
15
|
+
const [positions, setPositions] = useState([]);
|
|
16
|
+
const [list, setList] = useState();
|
|
17
|
+
const store = useCLDAFormStore();
|
|
18
|
+
const incorporation = useCLDAForm(id);
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
var _a, _b, _c;
|
|
21
|
+
const ids = [];
|
|
22
|
+
(_c = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.map((item) => ids.push(item.officerId));
|
|
23
|
+
setList(ids);
|
|
24
|
+
}, [(_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers]);
|
|
25
|
+
return observe(() => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
return (React.createElement(Modal, { width: 500, title: "Add Remove Officer", okText: "Add", onOk: onAdd, wrapClassName: "add-remove-officer-dialog", onCancel: onCancel, open: visible },
|
|
28
|
+
React.createElement(Form, { labelCol: { span: 6 }, labelAlign: "left" },
|
|
29
|
+
React.createElement(Form.Item, { label: "Contact" },
|
|
30
|
+
React.createElement(Select, { showSearch: true, placeholder: "Select or create a contact", optionFilterProp: "children", value: contactId, onChange: onChange, popupClassName: "add-remove-officer-select-contact", filterOption: (input, option) => (option === null || option === void 0 ? void 0 : option.children.toLowerCase().indexOf(input.toLowerCase())) >= 0 },
|
|
31
|
+
React.createElement(Select.Option, { value: "new" }, "New Contact"), (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts) === null || _b === void 0 ? void 0 :
|
|
32
|
+
_b.map((item) => (React.createElement(Select.Option, { key: item.id, value: item.id, disabled: list === null || list === void 0 ? void 0 : list.includes(item.id) }, item.name))))),
|
|
33
|
+
React.createElement(Form.Item, { label: "Position(s)" },
|
|
34
|
+
React.createElement(Select, { mode: "tags", style: { width: "100%" }, placeholder: "Tags Mode", onChange: (value) => setPositions(value), options: [
|
|
35
|
+
{
|
|
36
|
+
value: "Director",
|
|
37
|
+
label: "Director",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "Secretary",
|
|
41
|
+
label: "Secretary",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "Auditor",
|
|
45
|
+
label: "Auditor",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "Chief Executive Officer",
|
|
49
|
+
label: "Chief Executive Officer",
|
|
50
|
+
},
|
|
51
|
+
] }))),
|
|
52
|
+
showDialog && React.createElement(NewLegalContactDialog, { visible: true, updateVisible: onSave })));
|
|
53
|
+
});
|
|
54
|
+
function onChange(value) {
|
|
55
|
+
if (value === "new") {
|
|
56
|
+
setShowDialog(true);
|
|
57
|
+
setContactId("");
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
setContactId(value);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
/** 新增shareholder Item */
|
|
64
|
+
async function onSave(info) {
|
|
65
|
+
var _a;
|
|
66
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
67
|
+
if (info) {
|
|
68
|
+
const data = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts);
|
|
69
|
+
const officer = {
|
|
70
|
+
id: uuid(),
|
|
71
|
+
name: info.FullName,
|
|
72
|
+
email: info.Email,
|
|
73
|
+
phone: info.Phone,
|
|
74
|
+
address: info.Address,
|
|
75
|
+
identity: {
|
|
76
|
+
number: info.Number,
|
|
77
|
+
country: info.Country,
|
|
78
|
+
expiryDate: info.ExpiryDate,
|
|
79
|
+
type: info.Type,
|
|
80
|
+
},
|
|
81
|
+
idType: "NewId",
|
|
82
|
+
type: info.UnitType,
|
|
83
|
+
};
|
|
84
|
+
const officers = data ? [...data, officer] : [officer];
|
|
85
|
+
await store.edit(id, {
|
|
86
|
+
data: { Contacts: changeName(officers) },
|
|
87
|
+
error: "message",
|
|
88
|
+
});
|
|
89
|
+
setContactId(officer.id);
|
|
90
|
+
}
|
|
91
|
+
setShowDialog(false);
|
|
92
|
+
}
|
|
93
|
+
function onAdd() {
|
|
94
|
+
var _a, _b, _c;
|
|
95
|
+
if (!contactId) {
|
|
96
|
+
message.warning("Please select contacts!");
|
|
97
|
+
}
|
|
98
|
+
else {
|
|
99
|
+
let officers = (_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers;
|
|
100
|
+
if (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
101
|
+
officers = changeName(officers);
|
|
102
|
+
store.edit(id, {
|
|
103
|
+
data: {
|
|
104
|
+
RemoveOfficerDetails: {
|
|
105
|
+
Officers: (officers === null || officers === void 0 ? void 0 : officers.length)
|
|
106
|
+
? [
|
|
107
|
+
...officers,
|
|
108
|
+
{
|
|
109
|
+
Positions: positions,
|
|
110
|
+
OfficerId: contactId,
|
|
111
|
+
},
|
|
112
|
+
]
|
|
113
|
+
: [
|
|
114
|
+
{
|
|
115
|
+
Positions: positions,
|
|
116
|
+
OfficerId: contactId,
|
|
117
|
+
},
|
|
118
|
+
],
|
|
119
|
+
},
|
|
120
|
+
},
|
|
121
|
+
error: "message",
|
|
122
|
+
});
|
|
123
|
+
}
|
|
124
|
+
(_c = props.onCancel) === null || _c === void 0 ? void 0 : _c.call(props);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
export default AddRemoveOfficerDialog;
|
|
128
|
+
//# 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/AddRemoveOfficerDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,gDAAgD,CAAC;AAC5E,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,EAAE,IAAI,IAAI,EAAE,MAAM,MAAM,CAAC;AAClC,OAAO,qBAAqB,MAAM,+EAA+E,CAAC;AAClH,OAAO,cAAc,CAAC;AAEtB,MAAM,sBAAsB,GAAG,CAAC,KAA8D,EAAE,EAAE;;IACjG,MAAM,EAAE,E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,UAAU,CAAC,QAAQ,CAAC,EAAE;gBACxC,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SACzB;QAED,aAAa,CAAC,KAAK,CAAC,CAAC;IACtB,CAAC;IAED,SAAS,KAAK;;QACb,IAAI,CAAC,SAAS,EAAE;YACf,OAAO,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC;SAC3C;aAAM;YACN,IAAI,QAAQ,GAAG,MAAA,MAAA,aAAa,CAAC,OAAO,0CAAE,oBAAoB,0CAAE,QAAQ,CAAC;YACrE,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM;gBAAE,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC;YAEtD,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;gBACd,IAAI,EAAE;oBACL,oBAAoB,EAAE;wBACrB,QAAQ,EAAE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM;4BACzB,CAAC,CAAC;gCACA,GAAG,QAAQ;gCACX;oCACC,SAAS,EAAE,SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;4BACH,CAAC,CAAC;gCACA;oCACC,SAAS,EAAE,SAAS;oCACpB,SAAS,EAAE,SAAS;iCACpB;6BACA;qBACJ;iBACD;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;SACH;QACD,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IFormPeopleOptions, IOfficerPositionsData } from "../../../../../../../data/clda-form";
|
|
3
|
+
declare const CompanyGeneralOfficerInfo: (props: {
|
|
4
|
+
/** CLDAForm id */
|
|
5
|
+
formId: string;
|
|
6
|
+
officer: IOfficerPositionsData;
|
|
7
|
+
contacts: IFormPeopleOptions;
|
|
8
|
+
editOption: "NewOfficerAppointments" | "RemoveOfficerDetails";
|
|
9
|
+
officerLength?: number;
|
|
10
|
+
onDeleteClick?: () => void;
|
|
11
|
+
}) => JSX.Element;
|
|
12
|
+
export default CompanyGeneralOfficerInfo;
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Button, Col, Divider, Form, Row, Input, Select } from "antd";
|
|
3
|
+
import { UserOutlined } from "@ant-design/icons";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { faAddressCard, faEnvelope, faMapMarkerAlt, faPhone, faTrashAlt, faPenToSquare, } from "@fortawesome/pro-light-svg-icons";
|
|
6
|
+
import { clone } from "lodash-es";
|
|
7
|
+
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { useCLDAForm, useCLDAFormStore, } from "../../../../../../../data/clda-form";
|
|
9
|
+
import IdentityChange from "../../../../../../corporate/company/identity/components/IdentityChange";
|
|
10
|
+
import { changeName } from "../../../../../../../data/clda-form/conversion";
|
|
11
|
+
import { useIncorporationFormContext } from "../../../context";
|
|
12
|
+
import Address from "@voplus/morpho-org/es/components/Address";
|
|
13
|
+
import moment from "moment";
|
|
14
|
+
import styles from "./index.less";
|
|
15
|
+
const CompanyGeneralOfficerInfo = (props) => {
|
|
16
|
+
const { formId, officer, contacts } = props;
|
|
17
|
+
const [editable, setEditable] = useState(false);
|
|
18
|
+
const store = useCLDAFormStore();
|
|
19
|
+
const context = useIncorporationFormContext();
|
|
20
|
+
const incorporation = useCLDAForm(props.formId);
|
|
21
|
+
return observe(() => {
|
|
22
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
23
|
+
return (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement("div", { className: styles["company-general-officer-info"] },
|
|
25
|
+
React.createElement("div", { className: "company-general-officer-title" },
|
|
26
|
+
React.createElement("div", { className: "company-general-officer-title-info" }, editable ? (React.createElement(Input, { prefix: React.createElement(UserOutlined, null), defaultValue: contacts === null || contacts === void 0 ? void 0 : contacts.name, value: contacts === null || contacts === void 0 ? void 0 : contacts.name, onChange: (e) => (contacts.name = e.target.value) })) : (React.createElement("span", { className: "company-general-officer-name" }, contacts === null || contacts === void 0 ? void 0 : contacts.name))),
|
|
27
|
+
(context ? context.editable : true) && (React.createElement("div", { className: "action-button" },
|
|
28
|
+
contacts.idType === "NewId" && (React.createElement("span", { className: "edit-icon", onClick: () => setEditable(!editable) },
|
|
29
|
+
React.createElement(FontAwesomeIcon, { icon: faPenToSquare }))),
|
|
30
|
+
React.createElement("span", { className: "delete-icon", onClick: props.onDeleteClick },
|
|
31
|
+
React.createElement(FontAwesomeIcon, { icon: faTrashAlt }))))),
|
|
32
|
+
React.createElement(Form, { layout: "horizontal", className: "new-officer-position" },
|
|
33
|
+
React.createElement(Form.Item, { label: "Position" },
|
|
34
|
+
React.createElement(Select, { mode: "tags", style: { width: "100%" }, placeholder: "Tags Mode", defaultValue: officer.positions, onChange: (value) => onChangePosition(value), options: [
|
|
35
|
+
{
|
|
36
|
+
value: "Director",
|
|
37
|
+
label: "Director",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "Secretary",
|
|
41
|
+
label: "Secretary",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
value: "Auditor",
|
|
45
|
+
label: "Auditor",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
value: "Chief Executive Officer",
|
|
49
|
+
label: "Chief Executive Officer",
|
|
50
|
+
},
|
|
51
|
+
] }))),
|
|
52
|
+
contacts.idType === "NewId" && (React.createElement(React.Fragment, null,
|
|
53
|
+
React.createElement("div", { className: "basic-info" },
|
|
54
|
+
React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts === null || contacts === void 0 ? void 0 : contacts.email, placeholder: "Please enter the email", prefix: React.createElement(FontAwesomeIcon, { icon: faEnvelope }), onChange: (e) => (contacts.email = e.target.value) }),
|
|
55
|
+
React.createElement(Input, { disabled: !editable, bordered: editable, value: contacts === null || contacts === void 0 ? void 0 : contacts.phone, placeholder: "Please enter the phone", prefix: React.createElement(FontAwesomeIcon, { icon: faPhone }), onChange: (e) => (contacts.phone = e.target.value) })),
|
|
56
|
+
React.createElement("div", { className: "company-general-officer-info-content" },
|
|
57
|
+
React.createElement("div", { className: "company-general-officer-info-item" },
|
|
58
|
+
React.createElement("div", { className: "company-general-officer-item-name" },
|
|
59
|
+
React.createElement(FontAwesomeIcon, { icon: faMapMarkerAlt }),
|
|
60
|
+
"Address:"),
|
|
61
|
+
editable ? (React.createElement(Form, { layout: "horizontal" },
|
|
62
|
+
React.createElement(Address, { value: contacts.address, required: ["line1", "city", "postalCode", "country"], onChange: (v) => (contacts.address = v) }))) : (React.createElement(React.Fragment, null,
|
|
63
|
+
React.createElement(Row, null,
|
|
64
|
+
React.createElement(Col, null, (_a = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _a === void 0 ? void 0 : _a.line1)),
|
|
65
|
+
React.createElement(Row, null,
|
|
66
|
+
React.createElement(Col, null, (_b = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _b === void 0 ? void 0 : _b.line2)),
|
|
67
|
+
React.createElement(Row, null,
|
|
68
|
+
React.createElement(Col, null, `${((_c = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _c === void 0 ? void 0 : _c.city) ? (_d = contacts.address) === null || _d === void 0 ? void 0 : _d.city : ""} ${(_e = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _e === void 0 ? void 0 : _e.state} ${(_f = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _f === void 0 ? void 0 : _f.country} ${(_g = contacts === null || contacts === void 0 ? void 0 : contacts.address) === null || _g === void 0 ? void 0 : _g.postalCode}`.trim()))))),
|
|
69
|
+
React.createElement("div", { className: "company-general-officer-info-item" },
|
|
70
|
+
React.createElement("div", { className: "company-general-officer-item-name" },
|
|
71
|
+
React.createElement(FontAwesomeIcon, { icon: faAddressCard }),
|
|
72
|
+
"Identify Info:"),
|
|
73
|
+
editable ? (React.createElement(IdentityChange, { value: contacts === null || contacts === void 0 ? void 0 : contacts.identity, onChange: (v) => (contacts.identity = v) })) : (React.createElement(React.Fragment, null,
|
|
74
|
+
React.createElement(Row, null,
|
|
75
|
+
React.createElement(Col, null, (_h = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _h === void 0 ? void 0 : _h.country)),
|
|
76
|
+
React.createElement(Row, null,
|
|
77
|
+
React.createElement(Col, null, (_j = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _j === void 0 ? void 0 : _j.type)),
|
|
78
|
+
React.createElement(Row, null,
|
|
79
|
+
React.createElement(Col, null, (_k = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _k === void 0 ? void 0 : _k.number)),
|
|
80
|
+
React.createElement(Row, null,
|
|
81
|
+
React.createElement(Col, null,
|
|
82
|
+
"Expiry:",
|
|
83
|
+
((_l = contacts === null || contacts === void 0 ? void 0 : contacts.identity) === null || _l === void 0 ? void 0 : _l.expiryDate) &&
|
|
84
|
+
moment(contacts.identity.expiryDate).format("YYYY-MM-DD"))))),
|
|
85
|
+
editable && (React.createElement(Row, { justify: "end" },
|
|
86
|
+
React.createElement(Button, { onClick: () => setEditable(false) }, "Cancel"),
|
|
87
|
+
React.createElement(Button, { type: "primary", style: { marginLeft: "1rem" }, onClick: onSave }, "Save"))))))),
|
|
88
|
+
props.officerLength > 1 && React.createElement(Divider, { className: "halvingline" }))));
|
|
89
|
+
});
|
|
90
|
+
async function onChangePosition(position) {
|
|
91
|
+
var _a, _b, _c, _d, _e, _f;
|
|
92
|
+
officer.positions = position;
|
|
93
|
+
if (props.editOption === "NewOfficerAppointments") {
|
|
94
|
+
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 : [];
|
|
95
|
+
const number = officers.findIndex((i) => i.officerId === props.officer.officerId);
|
|
96
|
+
officers[number] = officer;
|
|
97
|
+
await store.edit(formId, {
|
|
98
|
+
data: { NewOfficerAppointments: { Officers: changeName(officers) } },
|
|
99
|
+
error: "message",
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
if (props.editOption === "RemoveOfficerDetails") {
|
|
103
|
+
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 : [];
|
|
104
|
+
const number = removeOfficers.findIndex((i) => i.officerId === props.officer.officerId);
|
|
105
|
+
removeOfficers[number] = officer;
|
|
106
|
+
await store.edit(formId, {
|
|
107
|
+
data: { RemoveOfficerDetails: { Officers: changeName(removeOfficers) } },
|
|
108
|
+
error: "message",
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
async function onSave() {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
const officerContacts = (_b = clone((_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.contacts)) !== null && _b !== void 0 ? _b : [];
|
|
115
|
+
const number = officerContacts.findIndex((i) => i.id === props.officer.officerId);
|
|
116
|
+
officerContacts[number] = contacts;
|
|
117
|
+
await store.edit(formId, {
|
|
118
|
+
data: { Contacts: changeName(officerContacts) },
|
|
119
|
+
error: "message",
|
|
120
|
+
});
|
|
121
|
+
setEditable(false);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
export default CompanyGeneralOfficerInfo;
|
|
125
|
+
//# 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/CompanyGeneralOfficerInfo/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OA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AAO,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,QAAQ,CAAC;QAEnC,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,131 @@
|
|
|
1
|
+
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
|
+
|
|
3
|
+
.company-general-officer-info {
|
|
4
|
+
:global {
|
|
5
|
+
.company-general-officer-title {
|
|
6
|
+
display: flex;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.company-general-officer-title-info {
|
|
10
|
+
flex: 1;
|
|
11
|
+
|
|
12
|
+
.ant-input-affix-wrapper {
|
|
13
|
+
border-radius: @border-radius;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.company-general-officer-name {
|
|
18
|
+
color: rgba(0, 0, 0, 0.85);
|
|
19
|
+
font-weight: bold;
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.action-button {
|
|
24
|
+
font-size: 14px;
|
|
25
|
+
|
|
26
|
+
> span {
|
|
27
|
+
margin-left: 6px;
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.delete-icon {
|
|
32
|
+
&:hover {
|
|
33
|
+
color: @delete-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.edit-icon {
|
|
38
|
+
&:hover {
|
|
39
|
+
color: @primary-color;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.new-officer-position {
|
|
46
|
+
padding-top: 25px;
|
|
47
|
+
padding-right: 3em;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
.placeholder {
|
|
51
|
+
color: #00000040;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.halvingline {
|
|
55
|
+
margin-bottom: 40px;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.basic-info {
|
|
59
|
+
display: flex;
|
|
60
|
+
line-height: 0;
|
|
61
|
+
margin-top: 10px;
|
|
62
|
+
|
|
63
|
+
.ant-input-affix-wrapper {
|
|
64
|
+
flex: 1;
|
|
65
|
+
border-radius: 8px;
|
|
66
|
+
margin-right: 3em;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
.ant-input-affix-wrapper-disabled {
|
|
70
|
+
color: rgba(0, 0, 0, 0.85);
|
|
71
|
+
cursor: auto;
|
|
72
|
+
padding: 4px 0;
|
|
73
|
+
|
|
74
|
+
.ant-input[disabled] {
|
|
75
|
+
color: rgba(0, 0, 0, 0.85);
|
|
76
|
+
cursor: auto;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.basic-val {
|
|
81
|
+
font-size: 14px;
|
|
82
|
+
font-weight: 400;
|
|
83
|
+
color: rgba(0, 0, 0, 0.45);
|
|
84
|
+
margin-right: 15px;
|
|
85
|
+
|
|
86
|
+
.svg-inline--fa {
|
|
87
|
+
margin-right: 5px;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.company-general-officer-info-content {
|
|
93
|
+
display: flex;
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
|
|
96
|
+
> div:nth-child(2) {
|
|
97
|
+
margin-bottom: 10px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.company-general-officer-info-item {
|
|
101
|
+
flex: 1;
|
|
102
|
+
position: relative;
|
|
103
|
+
padding-right: 3em;
|
|
104
|
+
|
|
105
|
+
.buttons {
|
|
106
|
+
position: absolute;
|
|
107
|
+
right: 30px;
|
|
108
|
+
top: 0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.company-general-officer-item-name {
|
|
112
|
+
padding-bottom: 16px;
|
|
113
|
+
font-size: 16px;
|
|
114
|
+
font-weight: bold;
|
|
115
|
+
|
|
116
|
+
svg {
|
|
117
|
+
margin-right: 5px;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.morpho-inline-edit {
|
|
122
|
+
width: 80%;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.ant-alert-warning {
|
|
128
|
+
margin-top: 10px;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { Spin, Form, Button, Space } from "antd";
|
|
2
|
+
import { Spin, Form, Button, Space, Modal } from "antd";
|
|
3
3
|
import { useCLDAForm, useCLDAFormStore } from "../../../../../data/clda-form";
|
|
4
4
|
import { IncorporationFormContext, State } from "../context";
|
|
5
5
|
import { ValidationCollections, ValidationCollectionsContext } from "@voplus/morpho-data";
|
|
6
6
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
7
|
+
import { changeName } from "../../../../../data/clda-form/conversion";
|
|
8
|
+
import { clone } from "lodash-es";
|
|
7
9
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
8
10
|
import CorporateSelect from "../../../../corporate/components/CorporateSelect";
|
|
9
|
-
import
|
|
11
|
+
import AddRemoveOfficerDialog from "./components/AddRemoveOfficerDialog";
|
|
12
|
+
import AddOfficerDialog from "./components/AddOfficerDialog";
|
|
13
|
+
import CompanyGeneralOfficerInfo from "./components/CompanyGeneralOfficerInfo";
|
|
10
14
|
import Section from "../../../controls/Section";
|
|
11
15
|
import classnames from "classnames";
|
|
12
16
|
import dayjs from "dayjs";
|
|
@@ -14,8 +18,8 @@ import styles from "./index.less";
|
|
|
14
18
|
const CompanyGeneralForm = (props) => {
|
|
15
19
|
const [validations] = useState(new ValidationCollections());
|
|
16
20
|
const [state] = useState(new State());
|
|
17
|
-
const [loaded, setLoaded] = useState(true);
|
|
18
21
|
const [addOfficerVisible, setAddOfficerVisible] = useState(false);
|
|
22
|
+
const [addRemoveOfficerVisible, setAddRemoveOfficerVisible] = useState(false);
|
|
19
23
|
const incorporation = useCLDAForm(props.id, { reload: true });
|
|
20
24
|
const store = useCLDAFormStore();
|
|
21
25
|
const [companyEditable, setCompanyEditable] = useState(false);
|
|
@@ -37,7 +41,7 @@ const CompanyGeneralForm = (props) => {
|
|
|
37
41
|
};
|
|
38
42
|
}, [companyEditable]);
|
|
39
43
|
const content = observe(() => {
|
|
40
|
-
var _a;
|
|
44
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
41
45
|
return (React.createElement("div", { className: classnames("incorporation-form-view", styles["company-general-from-review"]) },
|
|
42
46
|
React.createElement(Spin, { spinning: !incorporation.loaded }, incorporation.loaded && (React.createElement(ValidationCollectionsContext.Provider, { value: validations },
|
|
43
47
|
React.createElement(Section, { title: "Document Details" },
|
|
@@ -96,18 +100,56 @@ const CompanyGeneralForm = (props) => {
|
|
|
96
100
|
} })))),
|
|
97
101
|
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
98
102
|
React.createElement("div", null, "New Officer Appointment Details"),
|
|
99
|
-
React.createElement(Button, { type: "primary", onClick: () => setAddOfficerVisible(true) }, "Add Officer")) },
|
|
103
|
+
React.createElement(Button, { type: "primary", onClick: () => setAddOfficerVisible(true) }, "Add Officer")) },
|
|
104
|
+
React.createElement("div", null, ((_c = (_b = incorporation.content.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers) === null || _c === void 0 ? void 0 : _c.length) &&
|
|
105
|
+
((_d = incorporation.content.newOfficerAppointments) === null || _d === void 0 ? void 0 : _d.officers.map((o, i) => {
|
|
106
|
+
var _a, _b, _c;
|
|
107
|
+
return (React.createElement(CompanyGeneralOfficerInfo, { key: o.officerId, formId: props.id, officer: o, editOption: "NewOfficerAppointments", 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, onDeleteClick: () => deleteOfficer(i) }));
|
|
108
|
+
}))),
|
|
109
|
+
addOfficerVisible && (React.createElement(AddOfficerDialog, { id: props.id, visible: true, onCancel: () => setAddOfficerVisible(false) }))),
|
|
100
110
|
React.createElement(Section, { title: React.createElement("div", { className: "section-header" },
|
|
101
111
|
React.createElement("div", null, "Remove Officer Details"),
|
|
102
|
-
React.createElement(Button, { type: "primary" }, "Add Remove Officer")) },
|
|
103
|
-
React.createElement("div", null))
|
|
112
|
+
React.createElement(Button, { type: "primary", onClick: () => setAddRemoveOfficerVisible(true) }, "Add Remove Officer")) },
|
|
113
|
+
React.createElement("div", null, ((_f = (_e = incorporation.content.removeOfficerDetails) === null || _e === void 0 ? void 0 : _e.officers) === null || _f === void 0 ? void 0 : _f.length) &&
|
|
114
|
+
((_g = incorporation.content.removeOfficerDetails) === null || _g === void 0 ? void 0 : _g.officers.map((r, i) => {
|
|
115
|
+
var _a, _b, _c;
|
|
116
|
+
return (React.createElement(CompanyGeneralOfficerInfo, { key: r.officerId, formId: props.id, editOption: "RemoveOfficerDetails", officer: r, 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, onDeleteClick: () => deleteRemoveOfficer(i) }));
|
|
117
|
+
}))),
|
|
118
|
+
addRemoveOfficerVisible && (React.createElement(AddRemoveOfficerDialog, { id: props.id, visible: true, onCancel: () => setAddRemoveOfficerVisible(false) }))),
|
|
104
119
|
React.createElement("div", { className: "company-general-from-btn" },
|
|
105
120
|
React.createElement(Space, null,
|
|
106
121
|
React.createElement(Button, { size: "middle" }, "Download"),
|
|
107
122
|
React.createElement(Button, { type: "primary", size: "middle" }, "General E-Sign"))))))));
|
|
108
123
|
});
|
|
109
124
|
return observe(() => (React.createElement(IncorporationFormContext.Provider, { value: state }, content)));
|
|
110
|
-
|
|
125
|
+
function deleteOfficer(index) {
|
|
126
|
+
return Modal.confirm({
|
|
127
|
+
title: "Do you want to delete this item?",
|
|
128
|
+
async onOk() {
|
|
129
|
+
var _a, _b;
|
|
130
|
+
const officers = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.newOfficerAppointments) === null || _b === void 0 ? void 0 : _b.officers);
|
|
131
|
+
officers.splice(index, 1);
|
|
132
|
+
await store.edit(props.id, {
|
|
133
|
+
data: { NewOfficerAppointments: { Officers: changeName(officers) } },
|
|
134
|
+
error: "message",
|
|
135
|
+
});
|
|
136
|
+
},
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
function deleteRemoveOfficer(index) {
|
|
140
|
+
return Modal.confirm({
|
|
141
|
+
title: "Do you want to delete this item?",
|
|
142
|
+
async onOk() {
|
|
143
|
+
var _a, _b;
|
|
144
|
+
const removeOfficers = clone((_b = (_a = incorporation.content) === null || _a === void 0 ? void 0 : _a.removeOfficerDetails) === null || _b === void 0 ? void 0 : _b.officers);
|
|
145
|
+
removeOfficers.splice(index, 1);
|
|
146
|
+
await store.edit(props.id, {
|
|
147
|
+
data: { RemoveOfficerDetails: { Officers: changeName(removeOfficers) } },
|
|
148
|
+
error: "message",
|
|
149
|
+
});
|
|
150
|
+
},
|
|
151
|
+
});
|
|
152
|
+
}
|
|
111
153
|
};
|
|
112
154
|
export default CompanyGeneralForm;
|
|
113
155
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/company-general/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACxD,OAAO,EAAiB,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,qBAAqB,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,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cAAc,CAAC,EAAE,EAAE;oBACxE,KAAK,EAAE,SAAS;iBAChB,CAAC,CAAC;YACJ,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-csp",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.15",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-csp/_git/morpho-csp"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "VOPLUS",
|
|
16
16
|
"license": "SEE LICENSE IN LICENSE",
|
|
17
17
|
"scripts": {
|
|
18
|
-
"copy-less": "cpx
|
|
18
|
+
"copy-less": "cpx src/**/*.less lib && cpx src/**/*.less es && cpx src/**/*.css es",
|
|
19
19
|
"clean": "del-cli es && jest --clearCache",
|
|
20
20
|
"clean-hooks": "del-cli .git/hooks",
|
|
21
21
|
"storybook": "start-storybook -p 9001 -c .storybook -s ./public",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/incorporation/AddOfficerDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EA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