@voplus/morpho-csp 6.0.48 → 6.0.49
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/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js +12 -11
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js +5 -5
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchResult/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js +12 -11
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileProperties/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDADetails/index.js +37 -34
- package/es/modules/corporate/clda/components/CLDADetails/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDADetails/index.less +5 -1
- package/es/modules/corporate/clda/components/CLDAProperties/index.d.ts +0 -2
- package/es/modules/corporate/clda/components/CLDAProperties/index.js +12 -16
- package/es/modules/corporate/clda/components/CLDAProperties/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js +1 -1
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CompanyProperties/index.js +5 -4
- package/es/modules/corporate/company/components/CompanyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +29 -40
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js +0 -1
- package/es/modules/corporate/company/identity/components/IdentifyDetail/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +14 -21
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +20 -27
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +15 -20
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js +31 -37
- package/es/modules/corporate/filing-record/components/FilingRecordProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js +11 -10
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeProperties/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js +10 -10
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearProperties/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js +31 -41
- package/es/modules/corporate/share-certificate/components/ShareCertificateProperties/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.js +3 -3
- package/es/modules/corporate/virtual-address/components/VirtualAddressProperties/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.js +11 -12
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailProperties/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormProperties/index.js +4 -4
- package/es/modules/self-registration/clda-form/components/CLDAFormProperties/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/company/components/PropertyLabel/index.d.ts +0 -8
- package/es/modules/corporate/company/components/PropertyLabel/index.js +0 -12
- package/es/modules/corporate/company/components/PropertyLabel/index.js.map +0 -1
- package/es/modules/corporate/company/components/PropertyLabel/index.less +0 -7
package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
3
3
|
import { useController, useControllerStore, } from "../../../../../../data/controller";
|
|
4
|
-
import {
|
|
4
|
+
import { Badge } from "antd";
|
|
5
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
5
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
8
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
@@ -9,14 +10,12 @@ import ContactProperties from "@voplus/morpho-org/es/components/ContactPropertie
|
|
|
9
10
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
10
11
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
11
12
|
import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
|
|
12
|
-
import PropertyLabel from "../../../components/PropertyLabel";
|
|
13
13
|
import ControllerHead from "../ControllerHead";
|
|
14
14
|
import dayjs from "dayjs";
|
|
15
15
|
const ControllerProperties = (props) => {
|
|
16
16
|
/** 加class name 为了方便做integration tests */
|
|
17
17
|
const classId = "controller-properties";
|
|
18
18
|
const { id, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, headerVisible, } = props;
|
|
19
|
-
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
20
19
|
const { user } = useApplicationContext();
|
|
21
20
|
const controller = useController(id, { reload: true, includes: "permissions" });
|
|
22
21
|
const controllerStore = useControllerStore();
|
|
@@ -26,53 +25,43 @@ const ControllerProperties = (props) => {
|
|
|
26
25
|
return (React.createElement("div", { className: "properties-list" },
|
|
27
26
|
headerVisible && React.createElement(ControllerHead, { id: id }),
|
|
28
27
|
React.createElement(Scrollbars, { autoHide: true },
|
|
29
|
-
React.createElement(PropertiesSection, { title: controllerTitle, properties: (
|
|
30
|
-
|
|
31
|
-
return (React.createElement(Form, { className: classId + "-form", labelWrap: true, labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))));
|
|
32
|
-
} }),
|
|
33
|
-
React.createElement(PropertyLabel, { label: "Identity", labelCol: labelColWidth },
|
|
28
|
+
React.createElement(PropertiesSection, { title: controllerTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
29
|
+
React.createElement(Prop, { label: "Identity" },
|
|
34
30
|
React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = controller.contact) === null || _b === void 0 ? void 0 : _b.id, controllerId: id })),
|
|
35
|
-
React.createElement(ContactProperties, {
|
|
31
|
+
React.createElement(ContactProperties, { id: (_c = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
36
32
|
});
|
|
37
33
|
function renderProp(item) {
|
|
38
34
|
switch (item.name) {
|
|
39
35
|
case "Status":
|
|
40
|
-
return (controller.status &&
|
|
36
|
+
return (controller.status &&
|
|
37
|
+
(controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" }))));
|
|
41
38
|
case "Confimration Status":
|
|
42
|
-
return (React.createElement(
|
|
43
|
-
React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: user.can("edit", controller.p), onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })));
|
|
39
|
+
return (React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: user.can("edit", controller.p), onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) }));
|
|
44
40
|
case "Confimration Date":
|
|
45
|
-
return (React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} })));
|
|
41
|
+
return (React.createElement(InlineEdit, { defaultValue: controller.confimrationDate ? dayjs(controller.confimrationDate) : undefined, content: (v) => controller.confimrationDate ? (React.createElement("span", { className: "properties-value" }, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p)
|
|
42
|
+
? "Add Confimration Date"
|
|
43
|
+
: "No Confimration Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
44
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.confimrationDate) &&
|
|
45
|
+
dayjs(date).isSame(controller.confimrationDate, "day"))
|
|
46
|
+
return;
|
|
47
|
+
edit({ ConfimrationDate: date !== null && date !== void 0 ? date : "" });
|
|
48
|
+
} }));
|
|
54
49
|
case "Appointment Date":
|
|
55
|
-
return (React.createElement(
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
return;
|
|
61
|
-
edit({ Appointment: date !== null && date !== void 0 ? date : "" });
|
|
62
|
-
} })));
|
|
50
|
+
return (React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.appointment) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p) ? "Add Appointment Date" : "No Appointment Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
51
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.appointment) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
|
|
52
|
+
return;
|
|
53
|
+
edit({ Appointment: date !== null && date !== void 0 ? date : "" });
|
|
54
|
+
} }));
|
|
63
55
|
case "Cease Date":
|
|
64
|
-
return (React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
} })));
|
|
56
|
+
return (React.createElement(InlineEdit, { defaultValue: (controller === null || controller === void 0 ? void 0 : controller.cease) ? dayjs(controller === null || controller === void 0 ? void 0 : controller.cease) : undefined, content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", { className: "properties-value" }, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", controller.p) ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: user.can("edit", controller.p), onSave: (date) => {
|
|
57
|
+
if ((controller === null || controller === void 0 ? void 0 : controller.cease) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.cease, "day"))
|
|
58
|
+
return;
|
|
59
|
+
edit({ Cease: date !== null && date !== void 0 ? date : "" });
|
|
60
|
+
} }));
|
|
70
61
|
case "Email":
|
|
71
|
-
return (React.createElement(
|
|
72
|
-
React.createElement(InlineEdit, { defaultValue: controller.email, content: (v) => controller.email ? (React.createElement("span", { className: "properties-value" }, controller.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => controllerStore.edit(id, { data: { Email: value }, error: "message" }) })));
|
|
62
|
+
return (React.createElement(InlineEdit, { defaultValue: controller.email, content: (v) => controller.email ? (React.createElement("span", { className: "properties-value" }, controller.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => controllerStore.edit(id, { data: { Email: value }, error: "message" }) }));
|
|
73
63
|
case "Phone":
|
|
74
|
-
return (React.createElement(
|
|
75
|
-
React.createElement(InlineEdit, { defaultValue: controller.phone, content: (v) => controller.phone ? (React.createElement("span", { className: "properties-value" }, controller.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => controllerStore.edit(id, { data: { Phone: value }, error: "message" }) })));
|
|
64
|
+
return (React.createElement(InlineEdit, { defaultValue: controller.phone, content: (v) => controller.phone ? (React.createElement("span", { className: "properties-value" }, controller.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => controllerStore.edit(id, { data: { Phone: value }, error: "message" }) }));
|
|
76
65
|
}
|
|
77
66
|
}
|
|
78
67
|
async function edit(data) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,aAAa,EACb,kBAAkB,GAClB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,KAc7B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,uBAAuB,CAAC;IAExC,MAAM,EAC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CAC5D,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,gBAAiB,CACjD,EAEF,MAAM,EAAE,CAAC,KAAU,EAAE,EAAE,CACtB,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAEtE,CACF,CAAC;QACJ,CAAC;IACF,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,IAA+B;QAClD,MAAM,eAAe,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC5D,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG;IACnC,eAAe,EAAE,uBAAuB;IACxC,eAAe,EAAE,oBAAoB;IACrC,oBAAoB,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,qBAAqB,EAAE;QAC/B,EAAE,IAAI,EAAE,mBAAmB,EAAE;QAC7B,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -41,7 +41,6 @@ const IdentifyDetail = (props) => {
|
|
|
41
41
|
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVision : faEye, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))) : null),
|
|
42
42
|
identity && (React.createElement("div", { className: "identity-content" },
|
|
43
43
|
React.createElement("div", { className: "identity-verification" },
|
|
44
|
-
React.createElement("h3", null, "Verification Information"),
|
|
45
44
|
React.createElement(VerificationInformation, { id: identityId })),
|
|
46
45
|
!visible ? (React.createElement("div", { className: "toggle-view-btn" },
|
|
47
46
|
React.createElement(Button, { type: "primary", size: "small", onClick: () => setVisible(true) }, "View Information/Activity/Document"))) : (React.createElement(Tabs, { className: "member-tabs", activeKey: activeKey, onChange: onChange, items: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEhF,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAEjE,MAAM,cAAc,GAAG,CAAC,KAavB,EAAE,EAAE;IACJ,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,UAA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,EAAE,CAAQ;oBACxE,oBAAC,UAAU,IACV,YAAY,EAAE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,EAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,EAC7C,YAAY,EAAE,EAAE,EAChB,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CACd,OAAO,CAAC,GAAG,EAAE,CAAC,CACb,iCACE,CAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,MAAM,EAAC,CAAC,CAAC,CACnB,8BAAM,SAAS,EAAC,iBAAiB;4BAC/B,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM;4BACzC,oBAAC,MAAM,IACN,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,KAAK,EAC3C,OAAO,EAAE,QAAQ,GAChB,CACI,CACP,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,cAAc,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,mBAE1D,CACP,CACI,CACN,CAAC,EAEH,eAAe,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GACzC,CACE,CACL,CAAC,CAAC,CAAC,IAAI,CACH;gBAEL,QAAQ,IAAI,CACZ,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,6BAAK,SAAS,EAAC,uBAAuB;wBACrC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyDetail/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,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C,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,cAAc,CAAC,YAAY,GAAG;IAC7B,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -35,7 +35,7 @@ const IdentifyProperties = (props) => {
|
|
|
35
35
|
React.createElement(FAIcon, { icon: viewIdentity ? faEyeLowVision : faEye, onClick: onReveal }))) : (React.createElement("span", { className: "add-identity", onClick: () => setNumberEdit(true) }, "Add Identity"))))), onEditIconClick: () => setNumberEdit(true) }))),
|
|
36
36
|
React.createElement("div", { className: "identity-content" },
|
|
37
37
|
React.createElement("div", { className: "identity-verification" },
|
|
38
|
-
React.createElement(VerificationInformation, { id: identityId }),
|
|
38
|
+
React.createElement(VerificationInformation, { id: identityId, title: "" }),
|
|
39
39
|
(identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement(Button, { onClick: () => setQuickView(true) }, "Open Details")) : null)),
|
|
40
40
|
numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
|
|
41
41
|
quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, onCancel: () => setQuickView(false) })))));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,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C,6BAAK,SAAS,EAAC,uBAAuB;gBACrC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,UAAU,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,2BAA2B,MAAM,gCAAgC,CAAC;AACzE,OAAO,uBAAuB,MAAM,oEAAoE,CAAC;AACzG,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,kBAAkB,GAAG,CAAC,KAW3B,EAAE,EAAE;IACJ,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,YAAY,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC1E,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,EAAE,CAAC,CAAC;IACzC,MAAM,CAAC,UAAU,EAAE,aAAa,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,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,GAAG,EAAE,CAAC;YACT,IAAI,SAAS,EAAE,CAAC;gBACf,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAC/E,CAAC;YACD,IAAI,YAAY,EAAE,CAAC;gBAClB,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YACrF,CAAC;YACD,IAAI,QAAQ,EAAE,CAAC;gBACd,WAAW,CAAC,IAAI,CAAC,QAAS,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;YAC9E,CAAC;QACF,CAAC;IACF,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE,CAAC;YACnB,eAAe,CAAC,IAAI,CAAC,CAAC;YACtB,MAAM,IAAI,GAAG,MAAM,aAAa,CAAC,MAAM,CAAC,UAAU,CAAC,CAAC;YACpD,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxB,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
5
|
-
import
|
|
5
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
6
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
7
7
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
8
8
|
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
9
9
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
10
10
|
import MemberStatusLabel from "../../controls/MemberStatusLabel";
|
|
11
11
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
12
|
-
import PropertyLabel from "../../../components/PropertyLabel";
|
|
13
12
|
import CompanyMemberHead from "../CompanyMemberHead";
|
|
14
13
|
const CompanyMemberProperties = (props) => {
|
|
15
14
|
/** 加class name 为了方便做integration tests */
|
|
16
15
|
const classId = "companyMember-properties";
|
|
17
16
|
const { id, companyMemberTitle, orgContactTitle, companyMemberProperties, orgContactProperties, headerVisible, } = props;
|
|
18
17
|
const { user } = useApplicationContext();
|
|
19
|
-
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
20
18
|
const member = useMember(id, { reload: true, includes: "permissions" });
|
|
21
19
|
const store = useMemberStore();
|
|
22
20
|
const filterPro = companyMemberProperties === null || companyMemberProperties === void 0 ? void 0 : companyMemberProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
@@ -25,29 +23,24 @@ const CompanyMemberProperties = (props) => {
|
|
|
25
23
|
return (React.createElement("div", { className: "properties-list" },
|
|
26
24
|
headerVisible && React.createElement(CompanyMemberHead, { id: id }),
|
|
27
25
|
React.createElement(Scrollbars, { autoHide: true },
|
|
28
|
-
React.createElement(PropertiesSection, { title: companyMemberTitle, properties: (
|
|
29
|
-
|
|
30
|
-
return (React.createElement(Form, { labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true, className: classId + "-form" }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))));
|
|
31
|
-
} }),
|
|
32
|
-
React.createElement(PropertyLabel, { label: "Identity", labelCol: labelColWidth },
|
|
26
|
+
React.createElement(PropertiesSection, { title: companyMemberTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
27
|
+
React.createElement(Prop, { label: "Identity" },
|
|
33
28
|
React.createElement(IdentifyProperties, { identityId: (_a = member.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = member.contact) === null || _b === void 0 ? void 0 : _b.id, memberId: id })),
|
|
34
|
-
React.createElement(ContactProperties, {
|
|
29
|
+
React.createElement(ContactProperties, { id: (_c = member === null || member === void 0 ? void 0 : member.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
35
30
|
});
|
|
36
31
|
function renderProp(item) {
|
|
37
32
|
switch (item.name) {
|
|
38
33
|
case "Representative":
|
|
39
|
-
return (React.createElement(
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
} })));
|
|
34
|
+
return (React.createElement(MentionList, { isEmptyData: true, canEdit: user.can("edit", member.p), multiple: false, contacts: member.representative ? [member.representative] : [], onChange: (list) => {
|
|
35
|
+
store.edit(id, {
|
|
36
|
+
data: { RepresentativeId: list.length ? list[0].id : "" },
|
|
37
|
+
error: "message",
|
|
38
|
+
});
|
|
39
|
+
} }));
|
|
46
40
|
case "Status":
|
|
47
|
-
return (React.createElement(
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} })));
|
|
41
|
+
return (React.createElement(MemberStatusLabel, { editable: false, status: member.status, onChange: (status) => {
|
|
42
|
+
store.edit(id, { data: { Status: status }, error: "message" });
|
|
43
|
+
} }));
|
|
51
44
|
}
|
|
52
45
|
}
|
|
53
46
|
};
|
package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AAIrD,MAAM,uBAAuB,GAAG,CAAC,KAchC,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,0BAA0B,CAAC;IAE3C,MAAM,EACL,EAAE,EACF,kBAAkB,EAClB,eAAe,EACf,uBAAuB,EACvB,oBAAoB,EACpB,aAAa,GACb,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAAC;IACxE,MAAM,KAAK,GAAG,cAAc,EAAE,CAAC;IAE/B,MAAM,SAAS,GAAG,uBAAuB,aAAvB,uBAAuB,uBAAvB,uBAAuB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD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AQ,EAAE,KAAK,EACf,QAAQ,EAAE,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,EAAE,EAC9D,QAAQ,EAAE,CACT,IAGG,EACF,EAAE;wBACH,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;4BACd,IAAI,EAAE,EAAE,gBAAgB,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE;4BACzD,KAAK,EAAE,SAAS;yBAChB,CAAC,CAAC;oBACJ,CAAC,GACA,CACF,CAAC;YACH,KAAK,QAAQ;gBACZ,OAAO,CACN,oBAAC,iBAAiB,IACjB,QAAQ,EAAE,KAAK,EACf,MAAM,EAAE,MAAM,CAAC,MAAM,EACrB,QAAQ,EAAE,CAAC,MAAM,EAAE,EAAE;wBACpB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;oBAChE,CAAC,GACA,CACF,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,kBAAkB,EAAE,mBAAmB;IACvC,eAAe,EAAE,oBAAoB;IACrC,uBAAuB,EAAE,CAAC,EAAE,IAAI,EAAE,gBAAgB,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;CACzE,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,21 +1,20 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe, InlineEdit } from "@voplus/morpho-ui";
|
|
3
3
|
import { useOfficer, useOfficerStore, } from "../../../../../../data/officer";
|
|
4
|
-
import {
|
|
4
|
+
import { Badge } from "antd";
|
|
5
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
5
6
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
6
7
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
7
8
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
8
9
|
import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
|
|
9
10
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
10
11
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
11
|
-
import PropertyLabel from "../../../components/PropertyLabel";
|
|
12
12
|
import OfficerHead from "../OfficerHead";
|
|
13
13
|
import dayjs from "dayjs";
|
|
14
14
|
const OfficerProperties = (props) => {
|
|
15
15
|
/** 加class name 为了方便做integration tests */
|
|
16
16
|
const classId = "officer-properties";
|
|
17
17
|
const { id, officerTitle, orgContactTitle, officerProperties, orgContactProperties, headerVisible, } = props;
|
|
18
|
-
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
19
18
|
const { user } = useApplicationContext();
|
|
20
19
|
const officer = useOfficer(id, { reload: true, includes: "permissions" });
|
|
21
20
|
const store = useOfficerStore();
|
|
@@ -25,38 +24,32 @@ const OfficerProperties = (props) => {
|
|
|
25
24
|
return (React.createElement("div", { className: "properties-list" },
|
|
26
25
|
headerVisible && React.createElement(OfficerHead, { id: id }),
|
|
27
26
|
React.createElement(Scrollbars, { autoHide: true },
|
|
28
|
-
React.createElement(PropertiesSection, { title: officerTitle, properties: (
|
|
29
|
-
|
|
30
|
-
return (React.createElement(Form, { labelWrap: true, labelAlign: "left", colon: false, labelCol: { span: labelCol || 10 }, scrollToFirstError: true, className: classId + "-form" }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))));
|
|
31
|
-
} }),
|
|
32
|
-
React.createElement(PropertyLabel, { label: "Identity", labelCol: labelColWidth },
|
|
27
|
+
React.createElement(PropertiesSection, { title: officerTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
28
|
+
React.createElement(Prop, { label: "Identity" },
|
|
33
29
|
React.createElement(IdentifyProperties, { identityId: (_a = officer.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: (_b = officer.contact) === null || _b === void 0 ? void 0 : _b.id, officerId: id })),
|
|
34
|
-
React.createElement(ContactProperties, {
|
|
30
|
+
React.createElement(ContactProperties, { id: (_c = officer === null || officer === void 0 ? void 0 : officer.contact) === null || _c === void 0 ? void 0 : _c.id, title: orgContactTitle, customProperties: orgContactProperties }))));
|
|
35
31
|
});
|
|
36
32
|
function renderProp(item) {
|
|
37
33
|
switch (item.name) {
|
|
38
34
|
case "Status":
|
|
39
|
-
return (officer.status &&
|
|
35
|
+
return (officer.status &&
|
|
36
|
+
(officer.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" }))));
|
|
40
37
|
case "Appointment Date":
|
|
41
|
-
return (React.createElement(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} })));
|
|
38
|
+
return (React.createElement(InlineEdit, { defaultValue: (officer === null || officer === void 0 ? void 0 : officer.appointment) ? dayjs(officer === null || officer === void 0 ? void 0 : officer.appointment) : undefined, content: (v) => (officer === null || officer === void 0 ? void 0 : officer.appointment) ? (React.createElement("span", { className: "properties-value" }, dayjs(officer === null || officer === void 0 ? void 0 : officer.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", officer.p) ? "Add Appointment Date" : "No Appointment Date")), editor: DateInputEditor, editable: user.can("edit", officer.p), onSave: (date) => {
|
|
39
|
+
if ((officer === null || officer === void 0 ? void 0 : officer.appointment) && dayjs(date).isSame(officer === null || officer === void 0 ? void 0 : officer.appointment, "day"))
|
|
40
|
+
return;
|
|
41
|
+
edit({ Appointment: date !== null && date !== void 0 ? date : "" });
|
|
42
|
+
} }));
|
|
47
43
|
case "Cease Date":
|
|
48
|
-
return (React.createElement(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} })));
|
|
44
|
+
return (React.createElement(InlineEdit, { defaultValue: (officer === null || officer === void 0 ? void 0 : officer.cease) ? dayjs(officer === null || officer === void 0 ? void 0 : officer.cease) : undefined, content: (v) => (officer === null || officer === void 0 ? void 0 : officer.cease) ? (React.createElement("span", { className: "properties-value" }, dayjs(officer === null || officer === void 0 ? void 0 : officer.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, user.can("edit", officer.p) ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: user.can("edit", officer.p), onSave: (date) => {
|
|
45
|
+
if ((officer === null || officer === void 0 ? void 0 : officer.cease) && dayjs(date).isSame(officer === null || officer === void 0 ? void 0 : officer.cease, "day"))
|
|
46
|
+
return;
|
|
47
|
+
edit({ Cease: date !== null && date !== void 0 ? date : "" });
|
|
48
|
+
} }));
|
|
54
49
|
case "Email":
|
|
55
|
-
return (React.createElement(
|
|
56
|
-
React.createElement(InlineEdit, { defaultValue: officer.email, content: (v) => officer.email ? (React.createElement("span", { className: "properties-value" }, officer.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => store.edit(id, { data: { Email: value }, error: "message" }) })));
|
|
50
|
+
return (React.createElement(InlineEdit, { defaultValue: officer.email, content: (v) => officer.email ? (React.createElement("span", { className: "properties-value" }, officer.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => store.edit(id, { data: { Email: value }, error: "message" }) }));
|
|
57
51
|
case "Phone":
|
|
58
|
-
return (React.createElement(
|
|
59
|
-
React.createElement(InlineEdit, { defaultValue: officer.phone, content: (v) => officer.phone ? (React.createElement("span", { className: "properties-value" }, officer.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => store.edit(id, { data: { Phone: value }, error: "message" }) })));
|
|
52
|
+
return (React.createElement(InlineEdit, { defaultValue: officer.phone, content: (v) => officer.phone ? (React.createElement("span", { className: "properties-value" }, officer.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => store.edit(id, { data: { Phone: value }, error: "message" }) }));
|
|
60
53
|
}
|
|
61
54
|
}
|
|
62
55
|
async function edit(data) {
|
package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,UAAU,EACV,eAAe,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,kBAAkB,MAAM,iDAAiD,CAAC;AACjF,OAAO,eAAe,MAAM,kEAAkE,CAAC;AAC/F,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,iBAAiB,GAAG,CAAC,KAc1B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MA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,CAAC,KAAU,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GACnF,CACF,CAAC;QACJ,CAAC;IACF,CAAC;IAED,KAAK,UAAU,IAAI,CAAC,IAA4B;QAC/C,MAAM,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAClD,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,YAAY,EAAE,oBAAoB;IAClC,eAAe,EAAE,oBAAoB;IACrC,iBAAiB,EAAE;QAClB,EAAE,IAAI,EAAE,QAAQ,EAAE;QAClB,EAAE,IAAI,EAAE,kBAAkB,EAAE;QAC5B,EAAE,IAAI,EAAE,YAAY,EAAE;QACtB,EAAE,IAAI,EAAE,OAAO,EAAE;QACjB,EAAE,IAAI,EAAE,OAAO,EAAE;KACjB;CACD,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { Form } from "antd";
|
|
3
2
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
4
3
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
5
4
|
import { useShareTransaction, useShareTransactionStore, } from "../../../../../../data/share-transaction";
|
|
@@ -10,6 +9,7 @@ import { useTableRefreshContext } from "../../pages/ShareTransactionDefaultView/
|
|
|
10
9
|
import CurrencyView from "../../../../../../components/CurrencyView";
|
|
11
10
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
12
11
|
import dayjs from "dayjs";
|
|
12
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
13
13
|
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
|
14
14
|
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
15
15
|
import DocumentProperties from "@voplus/morpho-document/es/components/DocumentProperties";
|
|
@@ -37,9 +37,9 @@ const ShareTransactionProperties = (props) => {
|
|
|
37
37
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
38
38
|
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
39
39
|
React.createElement(Scrollbars, { autoHide: true },
|
|
40
|
-
React.createElement(
|
|
41
|
-
React.createElement(PropertiesSection, { title: shareTransactionTitle, properties: (
|
|
42
|
-
React.createElement(DocumentProperties, { id: id,
|
|
40
|
+
React.createElement(VerificationInformation, { id: id, onChange: () => onReload() }),
|
|
41
|
+
React.createElement(PropertiesSection, { title: shareTransactionTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
42
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
43
43
|
function onReload() {
|
|
44
44
|
runInAction(() => state.load());
|
|
45
45
|
tableRefresh.refresh = false;
|
|
@@ -50,25 +50,20 @@ const ShareTransactionProperties = (props) => {
|
|
|
50
50
|
function renderProp(item) {
|
|
51
51
|
switch (item.name) {
|
|
52
52
|
case "Date":
|
|
53
|
-
return (React.createElement(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
: null })));
|
|
53
|
+
return (React.createElement(InlineEdit, { editor: DateInputEditor, editable: shareTransaction.readonly
|
|
54
|
+
? false
|
|
55
|
+
: state.verified === false && state.confirmed === false, defaultValue: shareTransaction.date ? dayjs(shareTransaction.date) : undefined, content: (v) => (React.createElement(React.Fragment, null, v.store.value ? (React.createElement("span", { className: "properties-value" }, dayjs(v.store.value).format("DD MMM YYYY"))) : (React.createElement("span", { className: "add-info-style" }, "Add DateTime")))), onSave: (v) => v
|
|
56
|
+
? store.edit(id, {
|
|
57
|
+
data: { Date: v.format("DD MMM YYYY") },
|
|
58
|
+
error: "message",
|
|
59
|
+
})
|
|
60
|
+
: null }));
|
|
62
61
|
case "TransactionType":
|
|
63
|
-
return
|
|
64
|
-
" ",
|
|
65
|
-
React.createElement("span", { className: "properties-value" }, shareTransaction.transactionType),
|
|
66
|
-
" "));
|
|
62
|
+
return React.createElement("span", { className: "properties-value" }, shareTransaction.transactionType);
|
|
67
63
|
case "Currency":
|
|
68
|
-
return
|
|
64
|
+
return state.verified || state.confirmed ? (React.createElement("span", null, shareTransaction.currency)) : (React.createElement(CurrencyView, { readonly: shareTransaction.readonly, currency: shareTransaction.currency, onChange: (currency) => store.edit(id, { data: { Currency: currency }, error: "message" }) }));
|
|
69
65
|
case "Corproate Unit":
|
|
70
|
-
return (React.createElement(
|
|
71
|
-
React.createElement(MentionList, { canEdit: false, contacts: shareTransaction.corporateUnit ? [shareTransaction.corporateUnit] : [] })));
|
|
66
|
+
return (React.createElement(MentionList, { canEdit: false, contacts: shareTransaction.corporateUnit ? [shareTransaction.corporateUnit] : [] }));
|
|
72
67
|
}
|
|
73
68
|
}
|
|
74
69
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB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