@voplus/morpho-csp 6.0.112 → 6.0.114
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/CorporateNavMenu/CorporateNavMenu.js +47 -17
- package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -1
- package/es/components/CorporateNavMenu/index.js +1 -11
- package/es/components/CorporateNavMenu/index.js.map +1 -1
- package/es/components/CorporateNavMenu/state.d.ts +22 -2
- package/es/components/CorporateNavMenu/state.js +197 -3
- package/es/components/CorporateNavMenu/state.js.map +1 -1
- package/es/data/corporate/interfaces.d.ts +6 -5
- package/es/data/officer/interfaces.d.ts +8 -0
- package/es/modules/corporate/company/components/CapitalCard/index.d.ts +7 -0
- package/es/modules/corporate/company/components/CapitalCard/index.js +40 -0
- package/es/modules/corporate/company/components/CapitalCard/index.js.map +1 -0
- package/es/modules/corporate/company/components/CapitalCard/index.less +54 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.d.ts +11 -4
- package/es/modules/corporate/company/components/CompanyPageHead/index.js +30 -22
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.d.ts +7 -0
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js +31 -0
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js.map +1 -0
- package/es/modules/corporate/company/components/SharesCard2/index.d.ts +7 -0
- package/es/modules/corporate/company/components/SharesCard2/index.js +58 -0
- package/es/modules/corporate/company/components/SharesCard2/index.js.map +1 -0
- package/es/modules/corporate/company/components/SharesCard2/index.less +58 -0
- package/es/modules/corporate/company/components/SharesCard2/state.d.ts +15 -0
- package/es/modules/corporate/company/components/SharesCard2/state.js +74 -0
- package/es/modules/corporate/company/components/SharesCard2/state.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +3 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.d.ts +4 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js +43 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +14 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +130 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +60 -0
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/index.d.ts +2 -2
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/index.less +8 -2
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js +6 -3
- package/es/modules/corporate/company/officer-register/components/OfficerHead/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +6 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +0 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +23 -24
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +14 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js +1 -2
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.less +8 -2
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +19 -11
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +23 -21
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +7 -4
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +34 -20
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CorporateClientView/index.js +57 -57
- package/es/modules/corporate/company/pages/CorporateClientView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CorporateClientView/index.less +13 -16
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.d.ts +6 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js +66 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js.map +1 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.less +67 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/state.d.ts +11 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/state.js +42 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/state.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import { faBarsProgress, faReceipt, faThumbtack } from "@fortawesome/pro-solid-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
5
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
|
+
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
7
|
+
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
8
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
9
|
+
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
10
|
+
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
11
|
+
import { Badge } from "antd";
|
|
12
|
+
import React, { useState } from "react";
|
|
13
|
+
import MemberStatusFilter from "../../controls/MemberStatusFilter";
|
|
14
|
+
import { useCorporate } from "../../../../../../data/corporate";
|
|
15
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
16
|
+
import { useMemberListEffect, useMemberStore } from "../../../../../../data/member";
|
|
17
|
+
import TableCell from "./TableCell";
|
|
18
|
+
import { State } from "../CompanyMemberList/state";
|
|
19
|
+
import "./index.less";
|
|
20
|
+
const MemberTableListCard = (props) => {
|
|
21
|
+
const { membersRegisterId, corporateId, selectDialog } = props;
|
|
22
|
+
const [visible, setVisible] = useState(false);
|
|
23
|
+
const [memberTotal, setMemberTotal] = useState(0);
|
|
24
|
+
const memberStore = useMemberStore();
|
|
25
|
+
const { user } = useApplicationContext();
|
|
26
|
+
const corporate = useCorporate(corporateId !== null && corporateId !== void 0 ? corporateId : "", { includes: "permissions" });
|
|
27
|
+
const state = useDeepMemo(() => new State(), [membersRegisterId]);
|
|
28
|
+
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
29
|
+
const list = useCreateListDataState({
|
|
30
|
+
filterDefaults: {
|
|
31
|
+
filters: filters(),
|
|
32
|
+
},
|
|
33
|
+
}, [membersRegisterId]);
|
|
34
|
+
const columnsList = [
|
|
35
|
+
{
|
|
36
|
+
title: (React.createElement(React.Fragment, null,
|
|
37
|
+
React.createElement(FAIcon, { icon: faThumbtack }),
|
|
38
|
+
" Members Name")),
|
|
39
|
+
dataIndex: "name",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement(FAIcon, { icon: faReceipt }),
|
|
44
|
+
" Contact")),
|
|
45
|
+
dataIndex: "contact",
|
|
46
|
+
width: "30%",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement(FAIcon, { icon: faBarsProgress }),
|
|
51
|
+
" Status")),
|
|
52
|
+
dataIndex: "status",
|
|
53
|
+
width: "18%",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: " ",
|
|
57
|
+
dataIndex: "menu",
|
|
58
|
+
width: "68px",
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
const components = {
|
|
62
|
+
body: {
|
|
63
|
+
// row: DragTableRow,
|
|
64
|
+
cell: TableCell,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
const columns = columnsList.map((col) => {
|
|
68
|
+
return {
|
|
69
|
+
...col,
|
|
70
|
+
onCell: (record, rowIndex) => {
|
|
71
|
+
return {
|
|
72
|
+
record,
|
|
73
|
+
dataIndex: col.dataIndex,
|
|
74
|
+
rowIndex: rowIndex,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
80
|
+
useAutoUpdateListData(list, (d) => d.parentId === membersRegisterId);
|
|
81
|
+
useRenderOnChange(() => list.filters.options);
|
|
82
|
+
/** 把ListDataState传给useMemberListEffect,使之可以自動更新loading, hasmore. */
|
|
83
|
+
useMemberListEffect(list, (result, total) => {
|
|
84
|
+
list.union(result);
|
|
85
|
+
setMemberTotal(total);
|
|
86
|
+
}, {
|
|
87
|
+
Total: true,
|
|
88
|
+
...list.filters.options,
|
|
89
|
+
});
|
|
90
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
91
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
|
92
|
+
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: "member-table-list-header", filterViewProps: {
|
|
93
|
+
columns: [
|
|
94
|
+
React.createElement(MemberStatusFilter, { key: "MemberStatusFilter", defaultValue: ["Active"] }),
|
|
95
|
+
],
|
|
96
|
+
}, preExtra: () => (React.createElement("div", { className: "title" },
|
|
97
|
+
"Members Register",
|
|
98
|
+
" ",
|
|
99
|
+
memberTotal ? React.createElement(Badge, { count: memberTotal, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null, user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { btnType: "icon", onClick: () => (state.addAble = true) })))) }) },
|
|
100
|
+
React.createElement(TableListCard, { tableListProps: { columns: columns, components: components }, ...props.tableCardProps }))),
|
|
101
|
+
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })))));
|
|
102
|
+
function filters() {
|
|
103
|
+
let filter = [];
|
|
104
|
+
if (membersRegisterId) {
|
|
105
|
+
filter = [
|
|
106
|
+
{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId },
|
|
107
|
+
{ c: "Status", o: "=", l: "And", v1: "Active" },
|
|
108
|
+
];
|
|
109
|
+
}
|
|
110
|
+
if (selectDialog && corporateId) {
|
|
111
|
+
filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
|
|
112
|
+
}
|
|
113
|
+
return filter;
|
|
114
|
+
}
|
|
115
|
+
/** 新增memberItem */
|
|
116
|
+
async function onSave(unit) {
|
|
117
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
118
|
+
if (unit) {
|
|
119
|
+
const res = await memberStore.create({
|
|
120
|
+
data: { RegisterId: membersRegisterId, UnitId: unit[0].id },
|
|
121
|
+
error: "message",
|
|
122
|
+
});
|
|
123
|
+
list.union([res]);
|
|
124
|
+
}
|
|
125
|
+
state.addAble = false;
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
MemberTableListCard.defaultProps = {};
|
|
129
|
+
export default MemberTableListCard;
|
|
130
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/index.tsx"],"names":[],"mappings":"AA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OAAO,MAAM,CAAC;IACf,CAAC;IAED,mBAAmB;IACnB,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC;gBACpC,IAAI,EAAE,EAAE,UAAU,EAAE,iBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC5D,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,EAAE,CAAC;AAEtC,eAAe,mBAAmB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.member-table-item-info {
|
|
3
|
+
color: #5d5d5d;
|
|
4
|
+
font-weight: 500;
|
|
5
|
+
padding: 1px 0;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
.ant-avatar {
|
|
10
|
+
width: 30px;
|
|
11
|
+
height: 30px;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
}
|
|
14
|
+
.member-table-item-name {
|
|
15
|
+
flex: 1;
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.member-table-status-label {
|
|
20
|
+
&.member-status {
|
|
21
|
+
width: 100px !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.member-table-item-contact {
|
|
25
|
+
color: #868686;
|
|
26
|
+
span {
|
|
27
|
+
float: left;
|
|
28
|
+
display: inline-block;
|
|
29
|
+
width: 15px;
|
|
30
|
+
color: #cbcbcb;
|
|
31
|
+
margin-right: 5px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
.member-table-list-header.list-view-header-tool {
|
|
35
|
+
padding: 0;
|
|
36
|
+
flex: 1;
|
|
37
|
+
.header-tool-space {
|
|
38
|
+
display: flex;
|
|
39
|
+
.title {
|
|
40
|
+
flex: 1;
|
|
41
|
+
}
|
|
42
|
+
.filter-view-menu-icon {
|
|
43
|
+
font-size: 18px;
|
|
44
|
+
color: #cbcbcb;
|
|
45
|
+
border: none;
|
|
46
|
+
box-shadow: none;
|
|
47
|
+
margin-right: 7px;
|
|
48
|
+
&:hover {
|
|
49
|
+
color: #217eb2;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
.send-form-btn {
|
|
53
|
+
color: #217eb2;
|
|
54
|
+
border-color: #217eb2;
|
|
55
|
+
padding-left: 10px;
|
|
56
|
+
padding-right: 10px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -3,8 +3,8 @@ import { MemberStatus } from "../../../../../../data/member";
|
|
|
3
3
|
import "./index.less";
|
|
4
4
|
declare const MemberStatusLabel: (props: {
|
|
5
5
|
status: string;
|
|
6
|
-
editable
|
|
6
|
+
editable?: boolean;
|
|
7
7
|
className?: string;
|
|
8
|
-
onChange
|
|
8
|
+
onChange?: (status: MemberStatus) => void;
|
|
9
9
|
}) => React.JSX.Element;
|
|
10
10
|
export default MemberStatusLabel;
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
:global {
|
|
4
4
|
.member-status {
|
|
5
|
-
|
|
6
5
|
&.active,
|
|
7
6
|
&.active:hover {
|
|
8
7
|
background: @active-color;
|
|
@@ -13,5 +12,12 @@
|
|
|
13
12
|
background: @closed-color;
|
|
14
13
|
}
|
|
15
14
|
|
|
15
|
+
&.need-identity {
|
|
16
|
+
font-size: 12px;
|
|
17
|
+
background: #faad14;
|
|
18
|
+
&:hover {
|
|
19
|
+
background: #faad14;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
16
22
|
}
|
|
17
|
-
}
|
|
23
|
+
}
|
|
@@ -8,13 +8,15 @@ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAler
|
|
|
8
8
|
import PositionSelect from "../PositionSelect";
|
|
9
9
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
10
10
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
11
|
+
import { useCurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
|
11
12
|
import "./index.less";
|
|
12
13
|
const OfficerHead = (props) => {
|
|
13
14
|
const { id, open } = props;
|
|
14
|
-
const officer = useOfficer(id);
|
|
15
|
+
const officer = useOfficer(id, { includes: "corporate" });
|
|
15
16
|
const store = useOfficerStore();
|
|
17
|
+
const context = useCurrentContactContext();
|
|
16
18
|
return observe(() => {
|
|
17
|
-
var _a, _b;
|
|
19
|
+
var _a, _b, _c;
|
|
18
20
|
return (React.createElement("div", { className: "company-officer-header" },
|
|
19
21
|
React.createElement(Skeleton, { active: true, loading: !officer.loaded },
|
|
20
22
|
React.createElement("div", { className: "tool-bar-content" },
|
|
@@ -30,7 +32,8 @@ const OfficerHead = (props) => {
|
|
|
30
32
|
React.createElement(UnitAvatar, { unit: officer.contact, size: 70 }),
|
|
31
33
|
React.createElement("div", { className: "officer-name" },
|
|
32
34
|
React.createElement(PositionSelect, { id: id, position: officer.position })),
|
|
33
|
-
|
|
35
|
+
officer.corporate && officer.corporate.contact.id !== ((_b = context === null || context === void 0 ? void 0 : context.contact) === null || _b === void 0 ? void 0 : _b.id) && (React.createElement(UnitNameNoteAlert, { id: officer.corporate.contact.id, name: officer.corporate.contact.name })),
|
|
36
|
+
React.createElement("div", null, ((_c = officer.identity) === null || _c === void 0 ? void 0 : _c.fullName) ? (officer.identity.fullName) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null))));
|
|
34
37
|
});
|
|
35
38
|
};
|
|
36
39
|
export default OfficerHead;
|
|
@@ -1 +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,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,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,KAIpB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAE3B,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,CAAC,CAAC;
|
|
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,uCAA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AAK,CAAC,SAAS,GAClB,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,GAAI,CACjD;gBACL,OAAO,CAAC,SAAS,IAAI,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,MAAK,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,OAAO,0CAAE,EAAE,CAAA,IAAI,CAC9E,oBAAC,iBAAiB,IACjB,EAAE,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE,EAChC,IAAI,EAAE,OAAO,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,GACnC,CACF;gBACD,iCACE,CAAA,MAAA,OAAO,CAAC,QAAQ,0CAAE,QAAQ,EAAC,CAAC,CAAC,CAC7B,OAAO,CAAC,QAAQ,CAAC,QAAQ,CACzB,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CACrB,oBAAC,iBAAiB,IAAC,EAAE,EAAE,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,IAAI,GAAI,CACzE,CAAC,CAAC,CAAC,IAAI,CACH,CACI,CACN,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js
CHANGED
|
@@ -21,7 +21,12 @@ const TableCell = (props) => {
|
|
|
21
21
|
var _a;
|
|
22
22
|
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(ItemFunction, { className: "officer-table-item-info", onClick: props.onClick, quickViewDialog: (onCancel) => (React.createElement(OfficerQuickViewDialog, { id: record.id, visible: true, onCancel: onCancel })) },
|
|
23
23
|
React.createElement(UnitAvatar, { unit: record.contact }),
|
|
24
|
-
React.createElement("div", { className: "officer-table-item-name" }, ((_a = record.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (record.identity.fullName) : record.contact ? (React.createElement(UnitNameNoteAlert, { id: record.contact.id, name: record.contact.name })) : null))) : dataIndex === "position" ? (React.createElement("div", { className: "officer-table-item-
|
|
24
|
+
React.createElement("div", { className: "officer-table-item-name" }, ((_a = record.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (record.identity.fullName) : record.contact ? (React.createElement(UnitNameNoteAlert, { id: record.contact.id, name: record.contact.name })) : null))) : dataIndex === "position" ? (React.createElement("div", { className: "officer-table-item-position" }, record.position)) : dataIndex === "status" ? (React.createElement("div", { style: { display: "flex" } },
|
|
25
|
+
React.createElement(OfficerStatusLabel, { className: classnames("officer-table-status-label", {
|
|
26
|
+
"need-identity": !record.identity,
|
|
27
|
+
}), status: !record.identity
|
|
28
|
+
? "Need Identity Info"
|
|
29
|
+
: record.status && record.identity && "Present" }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, moreProps: {
|
|
25
30
|
buttonProps: { size: "middle" },
|
|
26
31
|
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
27
32
|
} },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6CAA6C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AAC,CACpB,oBAAC,iBAAiB,IAAC,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,GAAI,CACvE,CAAC,CAAC,CAAC,IAAI,CACH,CACQ,CACf,CAAC,CAAC,CAAC,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAC9B,6BAAK,SAAS,EAAC,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,sBAAsB,MAAM,qBAAqB,CAAC;AACzD,OAAO,cAAc,CAAC;AAEtB,MAAM,SAAS,GAAG,CAAC,KAAU,EAAE,EAAE;IAChC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IACtE,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAChC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C,QAAQ;oBACf,CAAC,CAAC,oBAAoB;oBACtB,CAAC,CAAC,MAAM,CAAC,MAAM,IAAI,MAAM,CAAC,QAAQ,IAAI,SAAS,GAEhD,CACG,CACN,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,oBAAC,OAAO,IACP,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,SAAS,EAAE;gBACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;aAC1C;YAED,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,YAAY,MAAM,CAAC,EAAE,EAAE,GAAI,CAC3C,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js
CHANGED
|
@@ -1,16 +1,18 @@
|
|
|
1
|
-
import { faBarsProgress, faReceipt, faThumbtack
|
|
1
|
+
import { faBarsProgress, faReceipt, faThumbtack } from "@fortawesome/pro-solid-svg-icons";
|
|
2
2
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
-
import { useDeepMemo,
|
|
4
|
-
import { useAutoUpdateListData
|
|
3
|
+
import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
|
|
4
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
5
5
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
6
|
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
7
7
|
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
8
8
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
9
9
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
10
|
+
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
10
11
|
import { Badge, Button, Menu } from "antd";
|
|
11
12
|
import React, { useState } from "react";
|
|
12
13
|
import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
|
|
13
14
|
import SelectOfficerForm from "../SelectOfficerForm";
|
|
15
|
+
import { useCorporate } from "../../../../../../data/corporate";
|
|
14
16
|
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
15
17
|
import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
|
|
16
18
|
import TableCell from "./TableCell";
|
|
@@ -21,9 +23,8 @@ const OfficerTableListCard = (props) => {
|
|
|
21
23
|
const [visible, setVisible] = useState(false);
|
|
22
24
|
const [officerTotal, setOfficerTotal] = useState(0);
|
|
23
25
|
const officerStore = useOfficerStore();
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const store = useOfficerStore();
|
|
26
|
+
const { user } = useApplicationContext();
|
|
27
|
+
const corporate = useCorporate(corporateId !== null && corporateId !== void 0 ? corporateId : "", { includes: "permissions" });
|
|
27
28
|
const state = useDeepMemo(() => new State(), [officersRegisterId]);
|
|
28
29
|
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
29
30
|
const list = useCreateListDataState({
|
|
@@ -43,14 +44,14 @@ const OfficerTableListCard = (props) => {
|
|
|
43
44
|
React.createElement(FAIcon, { icon: faReceipt }),
|
|
44
45
|
" Position")),
|
|
45
46
|
dataIndex: "position",
|
|
46
|
-
width: "
|
|
47
|
+
width: "30%",
|
|
47
48
|
},
|
|
48
49
|
{
|
|
49
50
|
title: (React.createElement(React.Fragment, null,
|
|
50
51
|
React.createElement(FAIcon, { icon: faBarsProgress }),
|
|
51
52
|
" Status")),
|
|
52
53
|
dataIndex: "status",
|
|
53
|
-
width: "
|
|
54
|
+
width: "18%",
|
|
54
55
|
},
|
|
55
56
|
{
|
|
56
57
|
title: " ",
|
|
@@ -89,21 +90,7 @@ const OfficerTableListCard = (props) => {
|
|
|
89
90
|
});
|
|
90
91
|
return observe(() => (React.createElement(React.Fragment, null,
|
|
91
92
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
92
|
-
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { sortable: false, searchHeader: false, className: "officer-table-list-header",
|
|
93
|
-
trigger: ["click"],
|
|
94
|
-
overlay: (React.createElement(Menu, { onClick: state.onSelect, items: [
|
|
95
|
-
{ key: "Director", label: "Director" },
|
|
96
|
-
{ key: "Managing Director", label: "Managing Director" },
|
|
97
|
-
{ key: "Nominee Director", label: "Nominee Director" },
|
|
98
|
-
{ key: "Secretary", label: "Secretary" },
|
|
99
|
-
{ key: "DPO", label: "DPO" },
|
|
100
|
-
{ key: "CEO", label: "CEO" },
|
|
101
|
-
{ key: "Partner", label: "Partner" },
|
|
102
|
-
{ key: "Owner", label: "Owner" },
|
|
103
|
-
{ key: "Auditor", label: "Auditor" },
|
|
104
|
-
{ key: "Manager", label: "Manager" },
|
|
105
|
-
] })),
|
|
106
|
-
}, filterViewProps: {
|
|
93
|
+
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: "officer-table-list-header", filterViewProps: {
|
|
107
94
|
columns: [
|
|
108
95
|
React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter", defaultValue: isFilterPresent ? ["Yes"] : [] }),
|
|
109
96
|
],
|
|
@@ -111,7 +98,19 @@ const OfficerTableListCard = (props) => {
|
|
|
111
98
|
"Officers Register",
|
|
112
99
|
" ",
|
|
113
100
|
officerTotal ? React.createElement(Badge, { count: officerTotal, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null,
|
|
114
|
-
React.createElement(
|
|
101
|
+
user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { trigger: ["click"], btnType: "icon", overlay: React.createElement(Menu, { onClick: state.onSelect, items: [
|
|
102
|
+
{ key: "Director", label: "Director" },
|
|
103
|
+
{ key: "Managing Director", label: "Managing Director" },
|
|
104
|
+
{ key: "Nominee Director", label: "Nominee Director" },
|
|
105
|
+
{ key: "Secretary", label: "Secretary" },
|
|
106
|
+
{ key: "DPO", label: "DPO" },
|
|
107
|
+
{ key: "CEO", label: "CEO" },
|
|
108
|
+
{ key: "Partner", label: "Partner" },
|
|
109
|
+
{ key: "Owner", label: "Owner" },
|
|
110
|
+
{ key: "Auditor", label: "Auditor" },
|
|
111
|
+
{ key: "Manager", label: "Manager" },
|
|
112
|
+
] }) })),
|
|
113
|
+
user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")))) }) },
|
|
115
114
|
React.createElement(TableListCard, { tableListProps: { columns: columns, components: components }, ...props.tableCardProps }))),
|
|
116
115
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })),
|
|
117
116
|
visible && (React.createElement(SelectOfficerForm, { parentId: officersRegisterId, onCancel: () => setVisible(false) })))));
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAgB,WAAW,EAAE,qBAAqB,EAAE,MA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,kBAAmB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBACvF,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,oBAAoB,CAAC,YAAY,GAAG,EAAE,CAAC;AAEvC,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less
CHANGED
|
@@ -17,10 +17,13 @@
|
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
.officer-table-status-label {
|
|
20
|
-
|
|
20
|
+
&.officer-status-button {
|
|
21
21
|
width: 100px !important;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
.officer-table-item-position {
|
|
25
|
+
color: #5d5d5d;
|
|
26
|
+
}
|
|
24
27
|
.officer-table-list-header.list-view-header-tool {
|
|
25
28
|
padding: 0;
|
|
26
29
|
flex: 1;
|
|
@@ -29,6 +32,16 @@
|
|
|
29
32
|
.title {
|
|
30
33
|
flex: 1;
|
|
31
34
|
}
|
|
35
|
+
.filter-view-menu-icon {
|
|
36
|
+
font-size: 18px;
|
|
37
|
+
color: #cbcbcb;
|
|
38
|
+
border: none;
|
|
39
|
+
box-shadow: none;
|
|
40
|
+
margin-right: 7px;
|
|
41
|
+
&:hover {
|
|
42
|
+
color: #217eb2;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
32
45
|
.send-form-btn {
|
|
33
46
|
color: #217eb2;
|
|
34
47
|
border-color: #217eb2;
|
|
@@ -2,7 +2,6 @@ import React from "react";
|
|
|
2
2
|
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
|
3
3
|
import classnames from "classnames";
|
|
4
4
|
import "./index.less";
|
|
5
|
-
const OfficerStatusButton = (props) => (React.createElement(
|
|
6
|
-
React.createElement(DocumentStatusLabel, { className: classnames("officer-status-button"), editable: false, list: [], status: props.status })));
|
|
5
|
+
const OfficerStatusButton = (props) => (React.createElement(DocumentStatusLabel, { className: classnames("officer-status-button", props.className), editable: false, list: [], status: props.status }));
|
|
7
6
|
export default OfficerStatusButton;
|
|
8
7
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,mBAAmB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CAC/E,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,mBAAmB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CAC/E,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,uBAAuB,EAAE,KAAK,CAAC,SAAS,CAAC,EAC/D,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,EAAE,EACR,MAAM,EAAE,KAAK,CAAC,MAAM,GACnB,CACF,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.less
CHANGED
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
:global {
|
|
2
2
|
.officer-status-button {
|
|
3
3
|
color: white;
|
|
4
|
-
width: 130px !important;
|
|
5
|
-
border: unset !important;
|
|
6
4
|
|
|
7
5
|
&.present,
|
|
8
6
|
&.present:hover {
|
|
9
7
|
background: #52c41a;
|
|
10
8
|
}
|
|
9
|
+
|
|
10
|
+
&.need-identity {
|
|
11
|
+
font-size: 12px;
|
|
12
|
+
background: #faad14;
|
|
13
|
+
&:hover {
|
|
14
|
+
background: #faad14;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
11
17
|
}
|
|
12
18
|
}
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef, useState } from "react";
|
|
2
2
|
import { Col, Row } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import SharesCard from "../../components/SharesCard";
|
|
5
4
|
import ActivityLogCard from "@voplus/morpho-org/es/components/ActivityLogCard";
|
|
6
5
|
import CompanyPageHead from "../../components/CompanyPageHead";
|
|
7
6
|
import CompanyProperties from "../../components/CompanyProperties/CompanyPropertiesCard";
|
|
8
7
|
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
9
|
-
import
|
|
8
|
+
import MemberTableListCard from "../../member-register/components/MemberTableListCard";
|
|
10
9
|
import ContactPropertiesCard from "@voplus/morpho-org/es/components/ContactProperties/ContactPropertiesCard";
|
|
11
10
|
import OfficerTableListCard from "../../officer-register/components/OfficerTableListCard";
|
|
12
|
-
import
|
|
11
|
+
import FilingTimeLineCard from "../../../filing-record/components/FilingTimeLineCard";
|
|
13
12
|
import OrgContactListCard from "@voplus/morpho-org/es/modules/orgContact/components/OrgContactListCard";
|
|
13
|
+
import SharesCard2 from "../../components/SharesCard2";
|
|
14
|
+
import CapitalCard from "../../components/CapitalCard";
|
|
14
15
|
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
15
16
|
import CompanyAlert from "../../components/CompanyAlert";
|
|
16
17
|
import styles from "./index.less";
|
|
@@ -36,21 +37,28 @@ const Dashboard = (props) => {
|
|
|
36
37
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
37
38
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } }))),
|
|
38
39
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: visible ? 12 : 18 },
|
|
40
|
+
React.createElement(Row, { gutter: [16, 0] },
|
|
41
|
+
React.createElement(Col, { xl: 15 },
|
|
42
|
+
React.createElement(SharesCard2, { corporateid: corporate.id, unitId: props.unitId })),
|
|
43
|
+
React.createElement(Col, { xl: 9 },
|
|
44
|
+
React.createElement(CapitalCard, { corporateid: corporate.id, unitId: props.unitId }))),
|
|
39
45
|
officersRegisterId && (React.createElement(OfficerTableListCard, { isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
40
|
-
membersRegisterId && (React.createElement(
|
|
41
|
-
React.createElement(SharesCard, { corporateid: corporate.id }),
|
|
42
|
-
((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(FilingRecordTimeLine, { filingYearId: (_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id, title: "Latest Filing Year Time Line" }))),
|
|
46
|
+
membersRegisterId && (React.createElement(MemberTableListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id }))),
|
|
43
47
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: visible ? 6 : 0 },
|
|
44
|
-
React.createElement(
|
|
45
|
-
|
|
48
|
+
((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id })),
|
|
49
|
+
React.createElement(ActivityLogCard, { id: corporate.id })),
|
|
46
50
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 0 },
|
|
47
51
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
48
52
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
49
53
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } })),
|
|
54
|
+
React.createElement(Row, { gutter: [16, 0] },
|
|
55
|
+
React.createElement(Col, { xl: 15 },
|
|
56
|
+
React.createElement(SharesCard2, { corporateid: corporate.id, unitId: props.unitId })),
|
|
57
|
+
React.createElement(Col, { xl: 9 },
|
|
58
|
+
React.createElement(CapitalCard, { corporateid: corporate.id, unitId: props.unitId }))),
|
|
50
59
|
officersRegisterId && (React.createElement(OfficerTableListCard, { officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
51
|
-
membersRegisterId && (React.createElement(
|
|
52
|
-
React.createElement(
|
|
53
|
-
((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement(FilingRecordTimeLine, { filingYearId: (_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id, title: "Latest Filing Year Time Line" })),
|
|
60
|
+
membersRegisterId && (React.createElement(MemberTableListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id })),
|
|
61
|
+
((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id })),
|
|
54
62
|
React.createElement("div", { style: { height: `${activitiesHeight - 120}px` } },
|
|
55
63
|
React.createElement(ActivityLogCard, { id: corporate.id })))))));
|
|
56
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;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