@voplus/morpho-csp 6.0.31 → 6.0.32
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/company/controller-register/components/ControllerHead/index.d.ts +7 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js +27 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerHead/index.less +17 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js +3 -1
- package/es/modules/corporate/company/controller-register/components/ControllerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +9 -51
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.less +7 -34
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js +34 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTabs/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +10 -13
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.less +13 -3
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js +34 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberHead/index.less +17 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js +3 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberProperties/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.d.ts +8 -12
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +9 -69
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.less +7 -34
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js +37 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +10 -13
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less +12 -2
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.d.ts +8 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +36 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.less +17 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.d.ts +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js +3 -1
- package/es/modules/corporate/company/officer-register/components/OfficerProperties/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +9 -60
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less +7 -32
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js +34 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTabs/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +10 -13
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.less +12 -2
- package/package.json +1 -1
package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js
CHANGED
|
@@ -1,76 +1,16 @@
|
|
|
1
|
-
import React, { useMemo
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
-
import { useMember, useMemberStore } from "../../../../../../data/member";
|
|
4
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
-
import { Tabs } from "antd";
|
|
6
3
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
11
|
-
import MemberShareTransactions from "../MemberShareTransactions";
|
|
12
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
14
|
-
import styles from "./index.less";
|
|
4
|
+
import CompanyMemberHead from "../CompanyMemberHead";
|
|
5
|
+
import CompanyMemberTabs from "../CompanyMemberTabs";
|
|
6
|
+
import "./index.less";
|
|
15
7
|
const CompanyMemberPropertiesView = (props) => {
|
|
16
|
-
const { id, allowEdit
|
|
17
|
-
const member = useMember(id);
|
|
18
|
-
const store = useMemberStore();
|
|
8
|
+
const { id, allowEdit } = props;
|
|
19
9
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [id]);
|
|
25
|
-
const items = [
|
|
26
|
-
{
|
|
27
|
-
key: "Details",
|
|
28
|
-
label: "Details",
|
|
29
|
-
children: React.createElement(CompanyMemberProperties, { id: id, allowEdit: allowEdit }),
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
key: "Shares",
|
|
33
|
-
label: "Shares",
|
|
34
|
-
children: React.createElement(MemberShareTransactions, { id: id }),
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
if (documentTab)
|
|
38
|
-
items.push({
|
|
39
|
-
key: "Document",
|
|
40
|
-
label: "Documents",
|
|
41
|
-
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
42
|
-
});
|
|
43
|
-
items.push({
|
|
44
|
-
key: "Activities",
|
|
45
|
-
label: "Activities",
|
|
46
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " ", bar: false }) : null)),
|
|
47
|
-
});
|
|
48
|
-
return observe(() => {
|
|
49
|
-
var _a, _b, _c, _d;
|
|
50
|
-
return (React.createElement(ViewContext.Provider, { value: view },
|
|
51
|
-
React.createElement("div", { className: styles["member-properties-view-content"] },
|
|
52
|
-
React.createElement("div", { className: "member-properties-view-header" },
|
|
53
|
-
member.contact && React.createElement(UnitAvatar, { unit: member.contact, size: 70 }),
|
|
54
|
-
React.createElement("div", { className: "member-person-name" }, (_b = (_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = member.contact) === null || _c === void 0 ? void 0 : _c.name),
|
|
55
|
-
React.createElement("div", null, "Member"),
|
|
56
|
-
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
57
|
-
React.createElement(Open, { url: `/member/${id}` }),
|
|
58
|
-
React.createElement(CompanyMemberMenu, { id: id, title: "Member Menu", unitId: (_d = member.contact) === null || _d === void 0 ? void 0 : _d.id, store: store, closeAside: true, onChangeContact: () => {
|
|
59
|
-
var _a;
|
|
60
|
-
return store.edit(id, {
|
|
61
|
-
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
62
|
-
error: "message",
|
|
63
|
-
});
|
|
64
|
-
} })))),
|
|
65
|
-
React.createElement(Tabs, { className: "element-tabs", items: items, activeKey: activeKey, onChange: onChange }))));
|
|
66
|
-
});
|
|
67
|
-
/**切换面板的回调*/
|
|
68
|
-
function onChange(activeKey) {
|
|
69
|
-
setActiveKey(activeKey);
|
|
70
|
-
}
|
|
71
|
-
};
|
|
72
|
-
CompanyMemberPropertiesView.defaultProps = {
|
|
73
|
-
documentTab: true,
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "member-properties-view-content" },
|
|
12
|
+
React.createElement(CompanyMemberHead, { id: id, open: true }),
|
|
13
|
+
React.createElement(CompanyMemberTabs, { id: id, allowEdit: allowEdit, properties: true })))));
|
|
74
14
|
};
|
|
75
15
|
export default CompanyMemberPropertiesView;
|
|
76
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,CAAC;AAEtB,MAAM,2BAA2B,GAAG,CAAC,KAMpC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,gCAAgC;YAC9C,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG;YAClC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,SAAG,CACzD,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,39 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
background-color: #fff;
|
|
9
|
-
|
|
10
|
-
:global {
|
|
11
|
-
.member-properties-view-header {
|
|
12
|
-
position: relative;
|
|
13
|
-
text-align: center;
|
|
14
|
-
padding: 20px 0 10px 0;
|
|
15
|
-
|
|
16
|
-
.member-person-name {
|
|
17
|
-
color: #000;
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
padding-top: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.tool-bar {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 20px;
|
|
26
|
-
right: 20px;
|
|
27
|
-
|
|
28
|
-
.delete {
|
|
29
|
-
color: @delete-color;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
1
|
+
:global {
|
|
2
|
+
.member-properties-view-content {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
background-color: #fff;
|
|
34
8
|
.ant-tabs {
|
|
35
9
|
height: 100%;
|
|
36
|
-
|
|
37
10
|
.member-register-details {
|
|
38
11
|
padding: 15px 20px;
|
|
39
12
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
2
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
3
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import MemberShareTransactions from "../MemberShareTransactions";
|
|
6
|
+
import CompanyMemberProperties from "../CompanyMemberProperties";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
const CompanyMemberTabs = (props) => {
|
|
9
|
+
const { id, properties, allowEdit } = props;
|
|
10
|
+
const [activeKey, setActiveKey] = useState();
|
|
11
|
+
const items = [
|
|
12
|
+
{
|
|
13
|
+
key: "Shares",
|
|
14
|
+
label: "Shares",
|
|
15
|
+
children: React.createElement(MemberShareTransactions, { id: id }),
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
key: "Document",
|
|
19
|
+
label: "Document",
|
|
20
|
+
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "Activities",
|
|
24
|
+
label: "Activities",
|
|
25
|
+
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id, title: " ", bar: false }) : null)),
|
|
26
|
+
},
|
|
27
|
+
];
|
|
28
|
+
properties &&
|
|
29
|
+
items.unshift({
|
|
30
|
+
key: "Properties",
|
|
31
|
+
label: "Properties",
|
|
32
|
+
children: React.createElement(CompanyMemberProperties, { id: id, allowEdit: allowEdit }),
|
|
33
|
+
});
|
|
34
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Shares", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
35
|
+
};
|
|
36
|
+
export default CompanyMemberTabs;
|
|
37
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/CompanyMemberTabs/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,MAAM,iBAAiB,GAAG,CAAC,KAAgE,EAAE,EAAE;IAC9F,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAC5C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,EAAU,CAAC;IAErD,MAAM,KAAK,GAAuB;QACjC;YACC,GAAG,EAAE,QAAQ;YACb,KAAK,EAAE,QAAQ;YACf,QAAQ,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,GAAI;SAC7C;QACD;YACC,GAAG,EAAE,UAAU;YACf,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,GAAI;SACjD;QACD;YACC,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,CACT,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAC,GAAG,EAAC,GAAG,EAAE,KAAK,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI,CACxF;SACD;KACD,CAAC;IAEF,UAAU;QACT,KAAK,CAAC,OAAO,CAAC;YACb,GAAG,EAAE,YAAY;YACjB,KAAK,EAAE,YAAY;YACnB,QAAQ,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI;SACnE,CAAC,CAAC;IAEJ,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,QAAQ,EAC5C,QAAQ,EAAE,KAAK,EACf,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,GACnC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,27 +1,24 @@
|
|
|
1
|
-
import React, { useEffect,
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { observe, AsideContent } from "@voplus/morpho-ui";
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
4
|
import { useTabItem } from "@voplus/morpho-data";
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
5
|
+
import CompanyMemberProperties from "../../components/CompanyMemberProperties";
|
|
6
|
+
import CompanyMemberTabs from "../../components/CompanyMemberTabs";
|
|
7
|
+
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
8
8
|
import "./index.less";
|
|
9
9
|
const CompanyMemberDefaultView = () => {
|
|
10
10
|
const { id } = useParams();
|
|
11
11
|
const [asideContext] = useState(AsideContent.createContext());
|
|
12
12
|
const tab = useTabItem();
|
|
13
|
-
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
14
13
|
useEffect(() => {
|
|
15
14
|
tab.title = "Member";
|
|
16
15
|
});
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
return observe(() => (React.createElement(AsideContent, { context: asideContext, className: "company-member-default-view" },
|
|
24
|
-
React.createElement(CompanyMemberPropertiesView, { id: id, toolbar: false, documentTab: false }))));
|
|
16
|
+
return observe(() => (React.createElement(MainContent, { className: "company-member-default-view" },
|
|
17
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
18
|
+
React.createElement(CompanyMemberProperties, { id: id, headerVisible: true })),
|
|
19
|
+
React.createElement("div", { className: "company-member-context" },
|
|
20
|
+
React.createElement(AsideContent, { context: asideContext },
|
|
21
|
+
React.createElement(CompanyMemberTabs, { id: id }))))));
|
|
25
22
|
};
|
|
26
23
|
export default CompanyMemberDefaultView;
|
|
27
24
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACd,GAAG,CAAC,KAAK,GAAG,QAAQ,CAAC;IACtB,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,IAAC,SAAS,EAAC,6BAA6B;QACnD,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;YAC3B,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CACjC;QAClB,6BAAK,SAAS,EAAC,wBAAwB;YACtC,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;gBAClC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,GAAI,CAChB,CACV,CACO,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.less
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
:global {
|
|
2
2
|
.company-member-default-view {
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
.main-content-nav {
|
|
4
|
+
width: 370px;
|
|
5
|
+
padding: 0;
|
|
6
|
+
.company-member-header {
|
|
7
|
+
margin: 0;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.company-member-context {
|
|
12
|
+
padding: 0;
|
|
13
|
+
background: #ffffff;
|
|
14
|
+
}
|
|
5
15
|
}
|
|
6
16
|
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
3
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { Skeleton } from "antd";
|
|
6
|
+
import CompanyOfficerMenu from "../../../controls/CompanyRegisterMenu";
|
|
7
|
+
import PositionSelect from "../PositionSelect";
|
|
8
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
9
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const OfficerHead = (props) => {
|
|
12
|
+
const { id, allowEdit, open } = props;
|
|
13
|
+
const officer = useOfficer(id);
|
|
14
|
+
const store = useOfficerStore();
|
|
15
|
+
return observe(() => {
|
|
16
|
+
var _a, _b, _c, _d;
|
|
17
|
+
return (React.createElement("div", { className: "company-officer-header" },
|
|
18
|
+
React.createElement(Skeleton, { active: true, loading: !officer.loaded },
|
|
19
|
+
React.createElement("div", { className: "tool-bar-content" },
|
|
20
|
+
React.createElement(ToolBar, { showMenu: false },
|
|
21
|
+
open && React.createElement(Open, { url: `/officer/${id}` }),
|
|
22
|
+
React.createElement(CompanyOfficerMenu, { id: id, title: "Officer Menu", unitId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, onChangeContact: () => {
|
|
23
|
+
var _a;
|
|
24
|
+
return store.edit(id, {
|
|
25
|
+
data: { ContactId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
26
|
+
error: "message",
|
|
27
|
+
});
|
|
28
|
+
} }))),
|
|
29
|
+
React.createElement(UnitAvatar, { unit: officer.contact, size: 70 }),
|
|
30
|
+
React.createElement("div", { className: "officer-name" },
|
|
31
|
+
React.createElement(PositionSelect, { id: id, position: officer.position, allowEdit: allowEdit })),
|
|
32
|
+
React.createElement("div", null, (_c = (_b = officer.identity) === null || _b === void 0 ? void 0 : _b.fullName) !== null && _c !== void 0 ? _c : (_d = officer.contact) === null || _d === void 0 ? void 0 : _d.name))));
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export default OfficerHead;
|
|
36
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,cAAc,CAAC;AAEtB,MAAM,WAAW,GAAG,CAAC,KAA0D,EAAE,EAAE;IAClF,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAEtC,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;IAC/B,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,wBAAwB;YACtC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;gBACxC,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;wBACtB,IAAI,IAAI,oBAAC,IAAI,IAAC,GAAG,EAAE,YAAY,EAAE,EAAE,GAAI;wBACxC,oBAAC,kBAAkB,IAClB,EAAE,EAAE,EAAE,EACN,KAAK,EAAC,cAAc,EACpB,MAAM,EAAE,MAAA,OAAO,CAAC,OAAO,0CAAE,EAAE,EAC3B,KAAK,EAAE,KAAK,EACZ,UAAU,QACV,eAAe,EAAE,GAAG,EAAE;;gCACrB,OAAA,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE;oCACd,IAAI,EAAE,EAAE,SAAS,EAAE,MAAA,OAAO,CAAC,OAAO,0CAAE,EAAE,EAAE;oCACxC,KAAK,EAAE,SAAS;iCAChB,CAAC,CAAA;6BAAA,GAEF,CACO,CACL;gBACN,oBAAC,UAAU,IAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,GAAI;gBAC/C,6BAAK,SAAS,EAAC,cAAc;oBAC5B,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAI,CACvE;gBACN,iCAAM,MAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,mCAAI,MAAA,OAAO,CAAC,OAAO,0CAAE,IAAI,CAAO,CACtD,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.company-officer-header {
|
|
3
|
+
position: relative;
|
|
4
|
+
text-align: center;
|
|
5
|
+
padding: 10px 0;
|
|
6
|
+
margin: 0 20px;
|
|
7
|
+
.tool-bar-content {
|
|
8
|
+
text-align: right;
|
|
9
|
+
}
|
|
10
|
+
.officer-name {
|
|
11
|
+
color: #000;
|
|
12
|
+
font-size: 16px;
|
|
13
|
+
font-weight: 500;
|
|
14
|
+
margin-top: 12px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -8,11 +8,12 @@ import ContactProperties from "@voplus/morpho-org/es/components/ContactPropertie
|
|
|
8
8
|
import IdentifyProperties from "../../../identity/components/IdentifyProperties";
|
|
9
9
|
import DateInputEditor from "@voplus/morpho-ui/es/controls/InlineEdit/editors/DateInputEditor";
|
|
10
10
|
import PropertyLabel from "../../../components/PropertyLabel";
|
|
11
|
+
import OfficerHead from "../OfficerHead";
|
|
11
12
|
import dayjs from "dayjs";
|
|
12
13
|
const OfficerProperties = (props) => {
|
|
13
14
|
/** 加class name 为了方便做integration tests */
|
|
14
15
|
const classId = "officer-properties";
|
|
15
|
-
const { id, allowEdit, officerTitle, orgContactTitle, officerProperties, orgContactProperties } = props;
|
|
16
|
+
const { id, allowEdit, officerTitle, orgContactTitle, officerProperties, orgContactProperties, headerVisible, } = props;
|
|
16
17
|
const [labelColWidth, setLabelColWidth] = useState(10);
|
|
17
18
|
const officer = useOfficer(id);
|
|
18
19
|
const store = useOfficerStore();
|
|
@@ -20,6 +21,7 @@ const OfficerProperties = (props) => {
|
|
|
20
21
|
return observe(() => {
|
|
21
22
|
var _a, _b, _c;
|
|
22
23
|
return (React.createElement("div", { className: "properties-list" },
|
|
24
|
+
headerVisible && React.createElement(OfficerHead, { id: id }),
|
|
23
25
|
React.createElement(Scrollbars, { autoHide: true },
|
|
24
26
|
React.createElement(PropertiesSection, { title: officerTitle, properties: (labelCol) => {
|
|
25
27
|
setLabelColWidth(labelCol);
|
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,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,UAAU,EACV,eAAe,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,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,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,iBAAiB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAEN,UAAU,EACV,eAAe,GACf,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,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,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,OAAO,CAAC;AAS1B,MAAM,iBAAiB,GAAG,CAAC,KAe1B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,oBAAoB,CAAC;IAErC,MAAM,EACL,EAAE,EACF,SAAS,EACT,YAAY,EACZ,eAAe,EACf,iBAAiB,EAC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
-
import React, { useMemo
|
|
2
|
-
import { Tabs } from "antd";
|
|
1
|
+
import React, { useMemo } from "react";
|
|
3
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
|
-
import { useOfficer, useOfficerStore } from "../../../../../../data/officer";
|
|
5
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
3
|
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import OfficerProperties from "../OfficerProperties";
|
|
11
|
-
import PositionSelect from "../PositionSelect";
|
|
12
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
14
|
-
import styles from "./index.less";
|
|
4
|
+
import OfficerHead from "../OfficerHead";
|
|
5
|
+
import OfficerTabs from "../OfficerTabs";
|
|
6
|
+
import "./index.less";
|
|
15
7
|
const OfficerPropertiesView = (props) => {
|
|
16
|
-
const { id, allowEdit
|
|
17
|
-
const officer = useOfficer(id);
|
|
18
|
-
const store = useOfficerStore();
|
|
8
|
+
const { id, allowEdit } = props;
|
|
19
9
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}, [id]);
|
|
25
|
-
return observe(() => {
|
|
26
|
-
var _a, _b, _c, _d, _e;
|
|
27
|
-
return (React.createElement(ViewContext.Provider, { value: view },
|
|
28
|
-
React.createElement("div", { className: styles["officer-properties-view-content"] },
|
|
29
|
-
React.createElement("div", { className: "officer-properties-view-header" },
|
|
30
|
-
officer.contact && React.createElement(UnitAvatar, { unit: officer.contact, size: 70 }),
|
|
31
|
-
React.createElement("div", { className: "officer-person-name" },
|
|
32
|
-
React.createElement(PositionSelect, { id: id, position: officer.position, allowEdit: allowEdit })),
|
|
33
|
-
React.createElement("div", null, (_b = (_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.name),
|
|
34
|
-
toolbar !== false && (React.createElement(ToolBar, { showMenu: false },
|
|
35
|
-
React.createElement(Open, { url: `/officer/${id}` }),
|
|
36
|
-
React.createElement(CompanyOfficerMenu, { id: id, title: "Officer Menu", unitId: (_d = officer.contact) === null || _d === void 0 ? void 0 : _d.id, store: store, closeAside: true, onChangeContact: () => {
|
|
37
|
-
var _a;
|
|
38
|
-
return store.edit(id, {
|
|
39
|
-
data: { ContactId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
40
|
-
error: "message",
|
|
41
|
-
});
|
|
42
|
-
} })))),
|
|
43
|
-
React.createElement(Tabs, { className: "element-tabs", activeKey: activeKey, onChange: onChange, items: [
|
|
44
|
-
{
|
|
45
|
-
key: "Details",
|
|
46
|
-
label: "Details",
|
|
47
|
-
children: React.createElement(OfficerProperties, { id: id, allowEdit: allowEdit }),
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
key: "Document",
|
|
51
|
-
label: "Documents",
|
|
52
|
-
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
key: "Activities",
|
|
56
|
-
label: "Activities",
|
|
57
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: id, nodes: [(_e = officer.contact) === null || _e === void 0 ? void 0 : _e.id], bar: false, title: " " })) : null)),
|
|
58
|
-
},
|
|
59
|
-
] }))));
|
|
60
|
-
});
|
|
61
|
-
/**切换面板的回调*/
|
|
62
|
-
function onChange(activeKey) {
|
|
63
|
-
setActiveKey(activeKey);
|
|
64
|
-
}
|
|
10
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
+
React.createElement("div", { className: "officer-properties-view-content" },
|
|
12
|
+
React.createElement(OfficerHead, { id: id, open: true }),
|
|
13
|
+
React.createElement(OfficerTabs, { id: id, properties: true, allowEdit: allowEdit })))));
|
|
65
14
|
};
|
|
66
15
|
export default OfficerPropertiesView;
|
|
67
16
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAA0C,EAAE,EAAE;IAC5E,MAAM,EAAE,EAAE,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEhC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,iCAAiC;YAC/C,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,SAAG;YAC5B,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,QAAC,SAAS,EAAE,SAAS,GAAI,CACnD,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.less
CHANGED
|
@@ -1,39 +1,14 @@
|
|
|
1
1
|
@import "~@voplus/morpho-theme/styles/index.less";
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
:global {
|
|
11
|
-
.officer-properties-view-header {
|
|
12
|
-
position: relative;
|
|
13
|
-
text-align: center;
|
|
14
|
-
padding: 20px 0 10px 0;
|
|
15
|
-
|
|
16
|
-
.officer-person-name {
|
|
17
|
-
color: #000;
|
|
18
|
-
font-size: 16px;
|
|
19
|
-
font-weight: 500;
|
|
20
|
-
padding-top: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.tool-bar {
|
|
24
|
-
position: absolute;
|
|
25
|
-
top: 20px;
|
|
26
|
-
right: 20px;
|
|
27
|
-
|
|
28
|
-
.delete {
|
|
29
|
-
color: @delete-color;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
3
|
+
:global {
|
|
4
|
+
.officer-properties-view-content {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
height: 100%;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
background-color: #fff;
|
|
34
10
|
.ant-tabs {
|
|
35
11
|
height: 100%;
|
|
36
|
-
|
|
37
12
|
.officer-register-details {
|
|
38
13
|
padding: 15px 20px;
|
|
39
14
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
2
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
3
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import OfficerProperties from "../OfficerProperties";
|
|
6
|
+
import { useOfficer } from "../../../../../../data/officer";
|
|
7
|
+
import React, { useState } from "react";
|
|
8
|
+
const OfficerTabs = (props) => {
|
|
9
|
+
var _a;
|
|
10
|
+
const { id, properties, allowEdit } = props;
|
|
11
|
+
const [activeKey, setActiveKey] = useState();
|
|
12
|
+
const officer = useOfficer(id);
|
|
13
|
+
const items = [
|
|
14
|
+
{
|
|
15
|
+
key: "Document",
|
|
16
|
+
label: "Document",
|
|
17
|
+
children: React.createElement(DocumentList, { id: id, header: false }),
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
key: "Activities",
|
|
21
|
+
label: "Activities",
|
|
22
|
+
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: id, nodes: [(_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id], bar: false, title: " " })) : null)),
|
|
23
|
+
},
|
|
24
|
+
];
|
|
25
|
+
properties &&
|
|
26
|
+
items.unshift({
|
|
27
|
+
key: "Properties",
|
|
28
|
+
label: "Properties",
|
|
29
|
+
children: React.createElement(OfficerProperties, { id: id, allowEdit: allowEdit }),
|
|
30
|
+
});
|
|
31
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Document", tabItems: items, onChange: (key) => setActiveKey(key) })));
|
|
32
|
+
};
|
|
33
|
+
export default OfficerTabs;
|
|
34
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,2DAA2D,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,MAAM,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