@voplus/morpho-csp 2.0.8 → 2.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +27 -0
  2. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +87 -0
  3. package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -0
  4. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +6 -18
  5. package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
  6. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.d.ts +16 -0
  7. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js +65 -0
  8. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.js.map +1 -0
  9. package/es/modules/corporate/company/identity/components/IdentifyProperties/index.less +37 -0
  10. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.d.ts +10 -0
  11. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +19 -0
  12. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -0
  13. package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.less +42 -0
  14. package/es/modules/corporate/company/identity/components/NewIdentityDialog/index.less +67 -55
  15. package/es/modules/corporate/company/identity/components/NewLegalContactDialog/index.less +72 -59
  16. package/es/modules/corporate/company/identity/components/SelectLegalContactDialog/index.less +66 -54
  17. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.d.ts +16 -0
  18. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js +27 -0
  19. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.js.map +1 -0
  20. package/es/modules/corporate/company/identity/controls/IdentifyMenu/index.less +34 -0
  21. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +27 -0
  22. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +51 -0
  23. package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -0
  24. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +10 -19
  25. package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
  26. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +27 -0
  27. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +71 -0
  28. package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -0
  29. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +8 -20
  30. package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
  31. package/es/modules/corporate/filing-record/components/FilingRecordQuickView/index.less +68 -56
  32. package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.less +1 -1
  33. package/package.json +1 -1
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ export declare type ControllerPropertiesName = "Status" | "Confimration Status" | "Confimration Date" | "Appointment Date" | "Cease Date" | "Email" | "Phone";
3
+ declare const ControllerProperties: {
4
+ (props: {
5
+ id: string;
6
+ allowEdit?: boolean;
7
+ controllerTitle?: string;
8
+ orgContactTitle?: string;
9
+ controllerProperties?: {
10
+ name: ControllerPropertiesName;
11
+ visible?: boolean;
12
+ }[];
13
+ orgContactProperties?: {
14
+ name: "Phone" | "Address" | "E-mail" | "DingId" | "Site" | "Birthday" | "Gender";
15
+ visible?: boolean;
16
+ }[];
17
+ onReloadMenu?: () => void;
18
+ }): JSX.Element;
19
+ defaultProps: {
20
+ controllerTitle: string;
21
+ orgContactTitle: string;
22
+ controllerProperties: {
23
+ name: string;
24
+ }[];
25
+ };
26
+ };
27
+ export default ControllerProperties;
@@ -0,0 +1,87 @@
1
+ import React from "react";
2
+ import { observe, InlineEdit } from "@voplus/morpho-ui";
3
+ import { useController, useControllerStore, } from "../../../../../../data/controller";
4
+ import { Form, Row, Col, Badge } from "antd";
5
+ import { Scrollbars } from "react-custom-scrollbars";
6
+ import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
7
+ import ContactProperties from "@voplus/morpho-org/es/components/ContactProperties";
8
+ import IdentifyProperties from "../../../identity/components/IdentifyProperties";
9
+ import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
10
+ import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
11
+ import dayjs from "dayjs";
12
+ const ControllerProperties = (props) => {
13
+ const { id, allowEdit, controllerTitle, orgContactTitle, controllerProperties, orgContactProperties, } = props;
14
+ const controller = useController(id);
15
+ const controllerStore = useControllerStore();
16
+ const filterPro = controllerProperties === null || controllerProperties === void 0 ? void 0 : controllerProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
17
+ return observe(() => {
18
+ var _a, _b;
19
+ return (React.createElement("div", { className: "properties-list" },
20
+ React.createElement(Scrollbars, { autoHide: true },
21
+ React.createElement(PropertiesSection, { title: controllerTitle, properties: React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true }, filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(React.Fragment, { key: i.name }, renderProp(i))))) }),
22
+ React.createElement(Row, null,
23
+ React.createElement(Col, { span: 10 }, "Identity:"),
24
+ React.createElement(Col, { span: 14 },
25
+ React.createElement(IdentifyProperties, { identityId: (_a = controller.identity) === null || _a === void 0 ? void 0 : _a.id, concatId: controller.contact.id, controllerId: id, allowEdit: allowEdit }))),
26
+ React.createElement(ContactProperties, { fromLabelRequired: true, id: (_b = controller === null || controller === void 0 ? void 0 : controller.contact) === null || _b === void 0 ? void 0 : _b.id, labelCol: 10, wrapperCol: 14, title: orgContactTitle, customProperties: orgContactProperties }))));
27
+ });
28
+ function renderProp(item) {
29
+ switch (item.name) {
30
+ case "Status":
31
+ return (controller.status && (React.createElement(Form.Item, { label: "Status" }, controller.status === "Present" ? (React.createElement(Badge, { status: "success", text: "Present" })) : (React.createElement(Badge, { status: "error", text: "Past" })))));
32
+ case "Confimration Status":
33
+ return (React.createElement(Form.Item, { label: "Confimration Status" },
34
+ React.createElement(ControllerStatusLabel, { status: controller.confirmationStatus, editable: allowEdit, onChange: (status) => controllerStore.edit(id, { data: { ConfirmationStatus: status }, error: "message" }) })));
35
+ case "Confimration Date":
36
+ return (React.createElement(Form.Item, { label: "Confimration Date" },
37
+ React.createElement(InlineEdit, { defaultValue: dayjs(controller.confimrationDate), content: (v) => controller.confimrationDate ? (React.createElement("span", null, dayjs(controller.confimrationDate).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Confimration Date" : "No Confimration Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
38
+ if ((controller === null || controller === void 0 ? void 0 : controller.confimrationDate) &&
39
+ dayjs(date).isSame(controller.confimrationDate, "day"))
40
+ return;
41
+ edit({
42
+ ConfimrationDate: (date !== null ? dayjs(date).format("YYYY-MM-DD") : ""),
43
+ });
44
+ } })));
45
+ case "Appointment Date":
46
+ return (React.createElement(Form.Item, { label: "Appointment Date" },
47
+ React.createElement(InlineEdit, { defaultValue: dayjs((controller === null || controller === void 0 ? void 0 : controller.appointment) !== "" ? controller === null || controller === void 0 ? void 0 : controller.appointment : undefined), content: (v) => (controller === null || controller === void 0 ? void 0 : controller.appointment) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.appointment).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Appointment Date" : "No Appointment Date")), editor: DateInputEditor, editable: allowEdit, onSave: (date) => {
48
+ if ((controller === null || controller === void 0 ? void 0 : controller.appointment) && dayjs(date).isSame(controller === null || controller === void 0 ? void 0 : controller.appointment, "day"))
49
+ return;
50
+ edit({
51
+ Appointment: (date !== null ? dayjs(date).format("YYYY-MM-DD") : ""),
52
+ });
53
+ } })));
54
+ case "Cease Date":
55
+ return (React.createElement(Form.Item, { label: "Cease Date" },
56
+ React.createElement(InlineEdit, { defaultValue: dayjs((controller === null || controller === void 0 ? void 0 : controller.cease) !== "" ? controller === null || controller === void 0 ? void 0 : controller.cease : undefined), content: (v) => (controller === null || controller === void 0 ? void 0 : controller.cease) ? (React.createElement("span", null, dayjs(controller === null || controller === void 0 ? void 0 : controller.cease).format("YYYY-MM-DD"))) : (React.createElement("span", { className: "add-info-style" }, allowEdit ? "Add Cease Date" : "No Cease Date")), editor: DateInputEditor, editable: allowEdit, 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 ? dayjs(date).format("YYYY-MM-DD") : "") });
60
+ } })));
61
+ case "Email":
62
+ return (React.createElement(Form.Item, { label: "Email" },
63
+ React.createElement(InlineEdit, { defaultValue: controller.email, content: (v) => controller.email ? (React.createElement("span", null, controller.email)) : (React.createElement("span", { className: "add-info-style" }, "Add Email")), onSave: (value) => controllerStore.edit(id, { data: { Email: value }, error: "message" }) })));
64
+ case "Phone":
65
+ return (React.createElement(Form.Item, { label: "Phone" },
66
+ React.createElement(InlineEdit, { defaultValue: controller.phone, content: (v) => controller.phone ? (React.createElement("span", null, controller.phone)) : (React.createElement("span", { className: "add-info-style" }, "Add Phone")), onSave: (value) => controllerStore.edit(id, { data: { Phone: value }, error: "message" }) })));
67
+ }
68
+ }
69
+ async function edit(data) {
70
+ await controllerStore.edit(id, { data, error: "message" });
71
+ }
72
+ };
73
+ ControllerProperties.defaultProps = {
74
+ controllerTitle: "Controller Properties",
75
+ orgContactTitle: "Contact Properties",
76
+ controllerProperties: [
77
+ { name: "Status" },
78
+ { name: "Confimration Status" },
79
+ { name: "Confimration Date" },
80
+ { name: "Appointment Date" },
81
+ { name: "Cease Date" },
82
+ { name: "Email" },
83
+ { name: "Phone" },
84
+ ],
85
+ };
86
+ export default ControllerProperties;
87
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
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,IAAI,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,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,KAAK,MAAM,OAAO,CAAC;AAW1B,MAAM,oBAAoB,GAAG,CAAC,KAc7B,EAAE,EAAE;IACJ,MAAM,EACL,EAAE,EACF,SAAS,EACT,eAAe,EACf,eAAe,EACf,oBAAoB,EACpB,oBAAoB,GACpB,GAAG,KAAK,CAAC;IAEV,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IACrC,MAAM,eAAe,GAAG,kBAAkB,EAAE,CAAC;IAE7C,MAAM,SAAS,GAAG,oBAAoB,aAApB,oBAAoB,uBAApB,oBAAoB,CAAE,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA,CAAC,aAAD,CAAC,uBAAD,CAAC,CAAE,OAAO,MAAK,KAAK,CAAC,CAAC;IAE5E,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,iBAAiB;YAC/B,oBAAC,UAAU,IAAC,QAAQ;gBACnB,oBAAC,iBAAi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K,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"}
@@ -2,16 +2,14 @@ import React, { useMemo } from "react";
2
2
  import { Skeleton, Tabs } from "antd";
3
3
  import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
4
4
  import { useController, useControllerStore } from "../../../../../../data/controller";
5
+ import { observe } from "@voplus/morpho-ui";
6
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
5
7
  import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
6
8
  import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
7
- import ContactInformation from "@voplus/morpho-org/es/components/ContactInformation";
8
- import ControllerInformation from "../ControllerInformation";
9
+ import ControllerProperties from "../ControllerProperties";
9
10
  import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
10
- import IdentifyDetail from "../../../identity/components/IdentifyDetail";
11
- import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
12
11
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
13
12
  import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
14
- import { observe } from "@voplus/morpho-ui";
15
13
  import styles from "./index.less";
16
14
  const ControllerPropertiesView = (props) => {
17
15
  const { id, allowEdit, toolbar } = props;
@@ -19,7 +17,7 @@ const ControllerPropertiesView = (props) => {
19
17
  const store = useControllerStore();
20
18
  const view = useMemo(() => new ViewContextData("QuickView"), []);
21
19
  return observe(() => {
22
- var _a, _b, _c, _d;
20
+ var _a, _b, _c;
23
21
  return (React.createElement(ViewContext.Provider, { value: view },
24
22
  React.createElement("div", { className: styles["controller-properties-view-content"] },
25
23
  controller.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
@@ -32,18 +30,8 @@ const ControllerPropertiesView = (props) => {
32
30
  React.createElement(Tabs, { defaultActiveKey: "Controller", items: [
33
31
  {
34
32
  key: "Controller",
35
- label: "Controller Details",
36
- children: React.createElement(ControllerInformation, { id: id, allowEdit: allowEdit }),
37
- },
38
- {
39
- key: "Contact",
40
- label: "Contact Details",
41
- children: React.createElement(ContactInformation, { id: controller.contact.id, allowEdit: allowEdit }),
42
- },
43
- {
44
- key: "Identify",
45
- label: "Identify Details",
46
- children: (React.createElement(IdentifyDetail, { identityId: (_d = controller.identity) === null || _d === void 0 ? void 0 : _d.id, concatId: controller.contact.id, controllerId: id, allowEdit: allowEdit })),
33
+ label: "Details",
34
+ children: React.createElement(ControllerProperties, { id: id, allowEdit: allowEdit }),
47
35
  },
48
36
  {
49
37
  key: "Documents",
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AAEtF,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,O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E,YAAY;4BACnB,QAAQ,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAI;yBAC7E;qBACD,GACA,CACG,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAIjC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACzC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IACvD,MAAM,KAAK,GAAG,kB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AAW;4BAChB,KAAK,EAAE,WAAW;4BAClB,QAAQ,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI;yBACjD;wBACD;4BACC,GAAG,EAAE,YAAY;4BACjB,KAAK,EAAE,YAAY;4BACnB,QAAQ,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,KAAK,GAAI;yBAC7E;qBACD,GACA,CACG,CACgB,CACvB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
@@ -0,0 +1,16 @@
1
+ /// <reference types="react" />
2
+ declare const IdentifyProperties: (props: {
3
+ /** 用于请求 identity */
4
+ identityId: string;
5
+ /** 用于请求 identity 时 filter by UnitId */
6
+ concatId?: string;
7
+ /** officer-register id */
8
+ officerId?: string;
9
+ /** member-register id */
10
+ memberId?: string;
11
+ /** controller-register id */
12
+ controllerId?: string;
13
+ /** 是否允许 edit */
14
+ allowEdit?: boolean;
15
+ }) => JSX.Element;
16
+ export default IdentifyProperties;
@@ -0,0 +1,65 @@
1
+ import React, { useEffect, useState } from "react";
2
+ import { Button } from "antd";
3
+ import { InlineEdit, observe } from "@voplus/morpho-ui";
4
+ import { faEye, faEyeLowVision } from "@fortawesome/pro-light-svg-icons";
5
+ import { useIdentity, useIdentityStore } from "../../../../../../data/identity";
6
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
7
+ import { useControllerStore } from "../../../../../../data/controller";
8
+ import { useMemberStore } from "../../../../../../data/member";
9
+ import { useOfficerStore } from "../../../../../../data/officer";
10
+ import ContactIdentitySelectDialog from "../ContactIdentitySelectDialog";
11
+ import VerificationInformation from "@voplus/morpho-document/es/components/VerificationInformation";
12
+ import IdentifyQuickViewDialog from "../IdentifyQuickViewDialog";
13
+ import styles from "./index.less";
14
+ const IdentifyProperties = (props) => {
15
+ const { identityId, concatId, officerId, controllerId, memberId, allowEdit } = props;
16
+ const [number, setNumber] = useState("");
17
+ const [numberEdit, setNumberEdit] = useState(false);
18
+ const [viewIdentity, setViewIdentity] = useState(false);
19
+ const [quickView, setQuickView] = useState(false);
20
+ const identity = useIdentity(identityId);
21
+ const identityStore = useIdentityStore();
22
+ const officerStore = useOfficerStore();
23
+ const memberStore = useMemberStore();
24
+ const controllerStore = useControllerStore();
25
+ useEffect(() => {
26
+ setNumber("");
27
+ setViewIdentity(false);
28
+ }, [identityId]);
29
+ return observe(() => (React.createElement("div", { className: styles["identity-properties"] },
30
+ React.createElement("div", { className: "identity-info" },
31
+ React.createElement("h2", { className: "identity-passport" },
32
+ React.createElement("span", null, identity ? `${identity === null || identity === void 0 ? void 0 : identity.country} ${identity === null || identity === void 0 ? void 0 : identity.type}` : ""),
33
+ React.createElement(InlineEdit, { showEditIcon: (identity === null || identity === void 0 ? void 0 : identity.number) ? true : false, defaultValue: "", editable: false, content: (v) => observe(() => (React.createElement("div", null, (identity === null || identity === void 0 ? void 0 : identity.number) ? (React.createElement("span", { className: "identity-number" },
34
+ !viewIdentity ? identity.number : number,
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
+ React.createElement("div", { className: "identity-content" },
37
+ React.createElement("div", { className: "identity-verification" },
38
+ React.createElement(VerificationInformation, { id: identityId }),
39
+ React.createElement(Button, { onClick: () => setQuickView(true) }, "Open Details"))),
40
+ numberEdit && (React.createElement(ContactIdentitySelectDialog, { id: concatId, visible: true, onCancel: () => setNumberEdit(false), onSelect: onSelect })),
41
+ quickView && (React.createElement(IdentifyQuickViewDialog, { visible: true, identityId: identityId, identityName: identity.fullName, allowEdit: allowEdit, onCancel: () => setQuickView(false) })))));
42
+ function onSelect(ids) {
43
+ setNumberEdit(false);
44
+ if (ids) {
45
+ if (officerId) {
46
+ officerStore.edit(officerId, { data: { IdentityId: ids }, error: "message" });
47
+ }
48
+ if (controllerId) {
49
+ controllerStore.edit(controllerId, { data: { IdentityId: ids }, error: "message" });
50
+ }
51
+ if (memberId) {
52
+ memberStore.edit(memberId, { data: { IdentityId: ids }, error: "message" });
53
+ }
54
+ }
55
+ }
56
+ async function onReveal() {
57
+ if (!viewIdentity) {
58
+ setViewIdentity(true);
59
+ const data = await identityStore.reveal(identityId);
60
+ setNumber(data.number);
61
+ }
62
+ }
63
+ };
64
+ export default IdentifyProperties;
65
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,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,+DAA+D,CAAC;AACpG,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,kBAAkB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AE,UAAU,EACtB,YAAY,EAAE,QAAQ,CAAC,QAAQ,EAC/B,SAAS,EAAE,SAAS,EACpB,QAAQ,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,GAClC,CACF,CACI,CACN,CAAC,CAAC;IAEH,SAAS,QAAQ,CAAC,GAAW;QAC5B,aAAa,CAAC,KAAK,CAAC,CAAC;QACrB,IAAI,GAAG,EAAE;YACR,IAAI,SAAS,EAAE;gBACd,YAAY,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;aAC9E;YACD,IAAI,YAAY,EAAE;gBACjB,eAAe,CAAC,IAAI,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;aACpF;YACD,IAAI,QAAQ,EAAE;gBACb,WAAW,CAAC,IAAI,CAAC,QAAS,EAAE,EAAE,IAAI,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;aAC7E;SACD;IACF,CAAC;IAED,KAAK,UAAU,QAAQ;QACtB,IAAI,CAAC,YAAY,EAAE;YAClB,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;SACvB;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,37 @@
1
+ @import "~@voplus/morpho-theme/styles/index.less";
2
+
3
+ .identity-properties {
4
+ :global {
5
+ .identity-info {
6
+ padding-bottom: 20px;
7
+
8
+ .identity-passport {
9
+ display: flex;
10
+ line-height: 24px;
11
+
12
+ > span {
13
+ margin-right: 15px;
14
+ }
15
+
16
+ .edit-icon {
17
+ margin-left: 8px;
18
+ }
19
+
20
+ .add-identity {
21
+ text-decoration: underline;
22
+ font-size: 16px;
23
+ cursor: pointer;
24
+ }
25
+
26
+ .identity-number {
27
+ svg {
28
+ font-size: 14px;
29
+ color: @disabled-color;
30
+ cursor: pointer;
31
+ margin-left: 5px;
32
+ }
33
+ }
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ declare const IdentifyQuickViewDialog: (props: {
3
+ identityId: string;
4
+ identityName: string;
5
+ visible?: boolean;
6
+ /** 是否允许 edit */
7
+ allowEdit?: boolean;
8
+ onCancel?: () => void;
9
+ }) => JSX.Element;
10
+ export default IdentifyQuickViewDialog;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
4
+ import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
5
+ import IdentifyMenu from "../../controls/IdentifyMenu";
6
+ import IdentityInformation from "../IdentityInformation";
7
+ import styles from "./index.less";
8
+ const IdentifyQuickViewDialog = (props) => {
9
+ const { identityId, identityName, allowEdit } = props;
10
+ return observe(() => (React.createElement(QuickViewDialog, { id: props.identityId, visible: props.visible, isLinks: false, onCancel: props.onCancel, header: React.createElement("div", { className: styles["identify-quickView-dialog-header"] },
11
+ React.createElement("div", { className: "identify-quickView-title" }, `${identityName} Identity`),
12
+ React.createElement("div", { className: "tools-bar" },
13
+ React.createElement(ToolBar, { id: props.identityId, showMenu: false },
14
+ React.createElement(IdentifyMenu, { id: props.identityId, size: "middle" })))) },
15
+ React.createElement("div", { className: styles["identify-quickView-dialog-content"] },
16
+ React.createElement(IdentityInformation, { id: identityId, allowEdit: allowEdit })))));
17
+ };
18
+ export default IdentifyQuickViewDialog;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,uBAAuB,GAAG,CAAC,KAOhC,EAAE,EAAE;IACJ,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,UAAU,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EACL,6BAAK,SAAS,EAAE,MAAM,CAAC,kCAAkC,CAAC;YACzD,6BAAK,SAAS,EAAC,0BAA0B,IAAE,GAAG,YAAY,WAAW,CAAO;YAC5E,6BAAK,SAAS,EAAC,WAAW;gBACzB,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAE,KAAK;oBAC7C,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,GAAG,CAC3C,CACL,CACD;QAGP,6BAAK,SAAS,EAAE,MAAM,CAAC,mCAAmC,CAAC;YAC1D,oBAAC,mBAAmB,IAAC,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,GAAI,CACxD,CACW,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,42 @@
1
+ .identify-quickView-dialog-content {
2
+ height: 100%;
3
+
4
+ :global {
5
+ .identity-information {
6
+ height: 100%;
7
+ padding: 0 20px;
8
+
9
+ .identity-information-content {
10
+ height: 100%;
11
+
12
+ .identity-information-title {
13
+ display: flex;
14
+ justify-content: space-between;
15
+
16
+ .hover-edit-btn {
17
+ display: none;
18
+ height: auto;
19
+ }
20
+ }
21
+ }
22
+ }
23
+ }
24
+ }
25
+
26
+ .identify-quickView-dialog-header {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: space-between;
30
+ padding: 10px 38px 10px 20px;
31
+
32
+ :global {
33
+
34
+ .identify-quickView-title {
35
+ font-size: 24px;
36
+ }
37
+
38
+ .tools-bar{
39
+ align-self: center !important;
40
+ }
41
+ }
42
+ }
@@ -1,55 +1,67 @@
1
- :global {
2
- .select-legal-contact-dialog {
3
- .ant-modal-body {
4
- padding: 20px 0;
5
- }
6
- h3,
7
- h4 {
8
- margin-bottom: 0;
9
- }
10
- .select-legal-contact_title {
11
- padding: 0 20px 15px 20px;
12
- color: rgba(0, 0, 0, 0.85);
13
- font-weight: 500;
14
- font-size: 16px;
15
- line-height: 17px;
16
- border-bottom: 1px solid #f0f0f0;
17
- }
18
- .select-legal-contact_content {
19
- padding: 15px 20px;
20
- &.page5 {
21
- padding: 15px 30px;
22
- }
23
- .ant-radio-group,
24
- .ant-radio-wrapper {
25
- display: block;
26
- }
27
- .full-name-displayed {
28
- padding: 10px 0;
29
- border-bottom: 1px solid #f0f0f0;
30
- }
31
- .full-name {
32
- padding-bottom: 8px;
33
- color: rgba(0, 0, 0, 0.85);
34
- font-weight: 500;
35
- font-size: 16px;
36
- }
37
- .padding-top-15 {
38
- padding-top: 15px;
39
- }
40
- }
41
- .ant-tabs .ant-tabs-tabpane {
42
- padding: 0 20px;
43
- }
44
- .ant-form .ant-form-item {
45
- margin-bottom: 20px;
46
- }
47
- .select-legal-contact_footer {
48
- padding: 0 20px;
49
- text-align: right;
50
- & .ant-btn {
51
- margin-left: 10px;
52
- }
53
- }
54
- }
55
- }
1
+ :global {
2
+ .select-legal-contact-dialog {
3
+ .ant-modal-body {
4
+ padding: 20px 0 !important;
5
+ }
6
+
7
+ h3,
8
+ h4 {
9
+ margin-bottom: 0;
10
+ }
11
+
12
+ .select-legal-contact_title {
13
+ padding: 0 20px 15px 20px;
14
+ color: rgba(0, 0, 0, 0.85);
15
+ font-weight: 500;
16
+ font-size: 16px;
17
+ line-height: 17px;
18
+ border-bottom: 1px solid #f0f0f0;
19
+ }
20
+
21
+ .select-legal-contact_content {
22
+ padding: 15px 20px;
23
+
24
+ &.page5 {
25
+ padding: 15px 30px;
26
+ }
27
+
28
+ .ant-radio-group,
29
+ .ant-radio-wrapper {
30
+ display: block;
31
+ }
32
+
33
+ .full-name-displayed {
34
+ padding: 10px 0;
35
+ border-bottom: 1px solid #f0f0f0;
36
+ }
37
+
38
+ .full-name {
39
+ padding-bottom: 8px;
40
+ color: rgba(0, 0, 0, 0.85);
41
+ font-weight: 500;
42
+ font-size: 16px;
43
+ }
44
+
45
+ .padding-top-15 {
46
+ padding-top: 15px;
47
+ }
48
+ }
49
+
50
+ .ant-tabs .ant-tabs-tabpane {
51
+ padding: 0 20px;
52
+ }
53
+
54
+ .ant-form .ant-form-item {
55
+ margin-bottom: 20px;
56
+ }
57
+
58
+ .select-legal-contact_footer {
59
+ padding: 0 20px;
60
+ text-align: right;
61
+
62
+ & .ant-btn {
63
+ margin-left: 10px;
64
+ }
65
+ }
66
+ }
67
+ }