@voplus/morpho-csp 10.0.5 → 10.0.6
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/RegisterTable/index.d.ts +31 -0
- package/es/components/RegisterTable/index.js +55 -0
- package/es/components/RegisterTable/index.js.map +1 -0
- package/es/components/StatusLabel/index.d.ts +36 -0
- package/es/components/StatusLabel/index.js +16 -0
- package/es/components/StatusLabel/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +13 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +94 -39
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +66 -95
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js +23 -13
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/{MemberTableListCard → MemberTableList}/TableCellDetail.d.ts +13 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +127 -0
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +2 -3
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +63 -9
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.d.ts +21 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +86 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +1 -16
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +17 -133
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js +15 -12
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/{OfficerTableListCard → OfficerTableList}/TableCellDetail.d.ts +13 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +140 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +2 -3
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +74 -11
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.d.ts +23 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +87 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +3 -24
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +22 -140
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.d.ts +0 -2
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +20 -37
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
- package/es/page/RegisterTablePage/index.d.ts +8 -1
- package/es/page/RegisterTablePage/index.js +117 -32
- package/es/page/RegisterTablePage/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.d.ts +0 -13
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +0 -63
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +0 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css +0 -122
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +0 -77
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.d.ts +0 -13
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js +0 -52
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +0 -87
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.d.ts +0 -13
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js +0 -65
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js.map +0 -1
- package/es/page/RegisterTablePage/Controller.d.ts +0 -3
- package/es/page/RegisterTablePage/Controller.js +0 -134
- package/es/page/RegisterTablePage/Controller.js.map +0 -1
package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js
CHANGED
|
@@ -1,87 +1,19 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
|
|
3
|
-
import TableCellDetail, { columnsListDetail } from "./TableCellDetail";
|
|
1
|
+
import React from "react";
|
|
4
2
|
import TableCell, { columnsList } from "./TableCell";
|
|
5
|
-
import { Badge, Button
|
|
6
|
-
import { State } from "./state";
|
|
7
|
-
import { useCorporate } from "../../../../../../data/corporate";
|
|
8
|
-
import { faPrintSolid, faEllipsisVerticalSolid, faTrashSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
3
|
+
import { Badge, Button } from "antd";
|
|
9
4
|
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
10
|
-
import {
|
|
11
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
12
|
-
import { useMemberListEffect, useMemberStore } from "../../../../../../data/member";
|
|
13
|
-
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
14
|
-
import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
|
|
5
|
+
import { observe } from "@voplus/morpho-ui";
|
|
15
6
|
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
16
7
|
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
17
|
-
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
18
8
|
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
19
9
|
import MemberStatusFilter from "../../controls/MemberStatusFilter";
|
|
20
|
-
import MemberQuickViewDialog from "../CompanyMemberQuickView";
|
|
21
|
-
import MemberPropertiesView from "../CompanyMemberPropertiesView";
|
|
22
|
-
import SelectMemberForm from "../SelectMemberSendForm";
|
|
23
10
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
24
11
|
import classnames from "classnames";
|
|
25
12
|
import "./index.css";
|
|
13
|
+
import MemberRegisterContainer from "./MemberRegisterContainer";
|
|
26
14
|
const MemberTableListCard = (props) => {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const [visible, setVisible] = useState(false);
|
|
30
|
-
const [memberTotal, setMemberTotal] = useState(0);
|
|
31
|
-
const [height, setHeight] = useState(0);
|
|
32
|
-
const ref = useRef(null);
|
|
33
|
-
const asideContext = useAsideContentContext();
|
|
34
|
-
const memberStore = useMemberStore();
|
|
35
|
-
const corporate = useCorporate(corporateId, { includes: "permissions" });
|
|
36
|
-
const state = useDeepMemo(() => new State(), [membersRegisterId]);
|
|
37
|
-
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
38
|
-
const list = useCreateListDataState({
|
|
39
|
-
filterDefaults: {
|
|
40
|
-
filters: filters(),
|
|
41
|
-
includes: "permissions",
|
|
42
|
-
},
|
|
43
|
-
}, [membersRegisterId]);
|
|
44
|
-
useEffect(() => {
|
|
45
|
-
if (ref.current) {
|
|
46
|
-
setHeight(ref.current.offsetHeight);
|
|
47
|
-
}
|
|
48
|
-
}, [ref]);
|
|
49
|
-
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
50
|
-
useAutoUpdateListData(list, (d) => d.parentId === membersRegisterId);
|
|
51
|
-
useRenderOnChange(() => list.filters.options);
|
|
52
|
-
/** 把ListDataState传给useMemberListEffect,使之可以自動更新loading, hasmore. */
|
|
53
|
-
useMemberListEffect(list, (result, total) => {
|
|
54
|
-
list.union(result);
|
|
55
|
-
setMemberTotal(total !== null && total !== void 0 ? total : 0);
|
|
56
|
-
}, {
|
|
57
|
-
Total: true,
|
|
58
|
-
...list.filters.options,
|
|
59
|
-
});
|
|
60
|
-
// spec:1756 — CSP: Members register Add, Send Form, and ellipsis actions require corporate edit permission
|
|
61
|
-
const items = [
|
|
62
|
-
{
|
|
63
|
-
key: "print",
|
|
64
|
-
label: (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: window.location.origin + `/member/print/${corporateId}` }, "Print")),
|
|
65
|
-
icon: React.createElement(FAIcon, { icon: faPrintSolid }),
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
key: "delete-register",
|
|
69
|
-
label: React.createElement("span", null, "Delete"),
|
|
70
|
-
icon: React.createElement(FAIcon, { icon: faTrashSolid }),
|
|
71
|
-
onClick: () => {
|
|
72
|
-
Modal.confirm({
|
|
73
|
-
title: "Confirm Delete",
|
|
74
|
-
content: "Are you sure you want to delete this register?",
|
|
75
|
-
okText: "Delete",
|
|
76
|
-
cancelText: "Cancel",
|
|
77
|
-
onOk: () => { var _a; return (_a = props.onDelete) === null || _a === void 0 ? void 0 : _a.call(props, corporateId, membersRegisterId); },
|
|
78
|
-
});
|
|
79
|
-
},
|
|
80
|
-
},
|
|
81
|
-
];
|
|
82
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
83
|
-
React.createElement(ListDataContext.Provider, { value: list },
|
|
84
|
-
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: classnames("member-table-list-header", { card: props.type === "card" }),
|
|
15
|
+
return observe(() => (React.createElement(MemberRegisterContainer, { ...props, children: ({ state, totalCount, setVisible, handleDelete, corporate, user }) => {
|
|
16
|
+
return (React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: classnames("member-table-list-header card"),
|
|
85
17
|
// spec:1755 — CSP: Members register list filters by parent register and optional Active status
|
|
86
18
|
filterViewProps: {
|
|
87
19
|
columns: [
|
|
@@ -90,27 +22,19 @@ const MemberTableListCard = (props) => {
|
|
|
90
22
|
}, preExtra: () => (React.createElement("div", { className: "title" },
|
|
91
23
|
"Members Register",
|
|
92
24
|
" ",
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { btnType: props.type === "card" ? "icon" : "text", onClick: () => {
|
|
25
|
+
totalCount ? React.createElement(Badge, { count: totalCount, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null,
|
|
26
|
+
user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { btnType: "icon", onClick: () => {
|
|
96
27
|
state.addAble = true;
|
|
97
28
|
} })),
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid })))),
|
|
101
|
-
props.type === "card" && user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")))), ...props.listHeaderToolProps }) },
|
|
102
|
-
React.createElement("div", { ref: ref, className: "member-table-list-card", style: { height: props.type === "card" ? 298 : "100%" } },
|
|
29
|
+
user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")))) }) },
|
|
30
|
+
React.createElement("div", { className: "member-table-list-card", style: { height: 298 } },
|
|
103
31
|
React.createElement(Scrollbars, { autoHide: true },
|
|
104
32
|
React.createElement(TableListCard
|
|
105
33
|
// spec:1759 — CSP: Members register adapts column set based on detail mode and aside availability
|
|
106
34
|
, {
|
|
107
35
|
// spec:1759 — CSP: Members register adapts column set based on detail mode and aside availability
|
|
108
36
|
tableListProps: {
|
|
109
|
-
columns: (
|
|
110
|
-
? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
111
|
-
? columnsSimpleList
|
|
112
|
-
: columnsListDetail
|
|
113
|
-
: columnsList).map((col) => {
|
|
37
|
+
columns: columnsList.map((col) => {
|
|
114
38
|
return {
|
|
115
39
|
...col,
|
|
116
40
|
onCell: (record, rowIndex) => {
|
|
@@ -123,62 +47,22 @@ const MemberTableListCard = (props) => {
|
|
|
123
47
|
};
|
|
124
48
|
}),
|
|
125
49
|
components: {
|
|
126
|
-
body: {
|
|
127
|
-
cell: tableDetail
|
|
128
|
-
? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
129
|
-
? TableCellSimple
|
|
130
|
-
: TableCellDetail
|
|
131
|
-
: TableCell,
|
|
132
|
-
},
|
|
50
|
+
body: { cell: TableCell },
|
|
133
51
|
},
|
|
134
|
-
scrollH:
|
|
52
|
+
scrollH: 240,
|
|
135
53
|
// spec:1758 — CSP: Members register row click opens quick view, or aside properties view in detail mode
|
|
136
54
|
tableProps: {
|
|
137
55
|
onRow: (record) => {
|
|
138
56
|
return {
|
|
139
57
|
onClick: (e) => {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
span: 12,
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
state.quickId = record.id;
|
|
147
|
-
state.visibleQuickView = true;
|
|
148
|
-
}
|
|
58
|
+
state.quickId = record.id;
|
|
59
|
+
state.visibleQuickView = true;
|
|
149
60
|
},
|
|
150
61
|
};
|
|
151
62
|
},
|
|
152
63
|
},
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
state.addAble = false;
|
|
156
|
-
} })),
|
|
157
|
-
visible && (React.createElement(SelectMemberForm, { parentId: membersRegisterId, onCancel: () => setVisible(false) })),
|
|
158
|
-
state.visibleQuickView && (React.createElement(MemberQuickViewDialog, { id: state.quickId, visible: true, onCancel: () => {
|
|
159
|
-
state.visibleQuickView = false;
|
|
160
|
-
} })))));
|
|
161
|
-
// spec:1755 — CSP: Members register list filters by parent register and optional Active status
|
|
162
|
-
function filters() {
|
|
163
|
-
let filter = [{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId }];
|
|
164
|
-
if (props.active) {
|
|
165
|
-
filter.push({ c: "Status", o: "=", l: "And", v1: "Active" });
|
|
166
|
-
}
|
|
167
|
-
return filter;
|
|
168
|
-
}
|
|
169
|
-
// spec:1757 — CSP: Adding a member from the company register selects a unit and creates a member record
|
|
170
|
-
/** 新增memberItem */
|
|
171
|
-
async function onSave(unit) {
|
|
172
|
-
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
173
|
-
if (unit) {
|
|
174
|
-
const res = await memberStore.create({
|
|
175
|
-
data: { RegisterId: membersRegisterId, UnitId: unit[0].id },
|
|
176
|
-
error: "message",
|
|
177
|
-
});
|
|
178
|
-
list.union([res]);
|
|
179
|
-
}
|
|
180
|
-
state.addAble = false;
|
|
181
|
-
}
|
|
64
|
+
} })))));
|
|
65
|
+
} })));
|
|
182
66
|
};
|
|
183
67
|
export default MemberTableListCard;
|
|
184
68
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAC1E,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,CAAC;AACrB,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAShE,MAAM,mBAAmB,GAAG,CAAC,KAAsB,EAAE,EAAE;IACtD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,QAAQ,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE;YAC9E,OAAO,CACN,oBAAC,qBAAqB,IACrB,QAAQ,QACR,MAAM,EACL,oBAAC,cAAc,IACd,OAAO,EAAE,KAAK,EACd,QAAQ,EAAE,KAAK,EACf,YAAY,EAAE,KAAK,EACnB,SAAS,EAAE,UAAU,CAAC,+BAA+B,CAAC;oBAC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C,OAAO;gDACN,MAAM;gDACN,SAAS,EAAE,GAAG,CAAC,SAAS;gDACxB,QAAQ,EAAE,QAAQ;6CAClB,CAAC;wCACH,CAAC;qCACD,CAAC;gCACH,CAAC,CAAC;gCACF,UAAU,EAAE;oCACX,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iCACzB;gCACD,OAAO,EAAE,GAAG;gCACZ,wGAAwG;gCACxG,UAAU,EAAE;oCACX,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE;wCACjB,OAAO;4CACN,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gDACd,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC;gDAC1B,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;4CAC/B,CAAC;yCACD,CAAC;oCACH,CAAC;iCACD;6BACD,GACA,CACU,CACR,CACiB,CACxB,CAAC;QACH,CAAC,GACA,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,20 +1,23 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import classnames from "classnames";
|
|
3
2
|
import "./index.css";
|
|
3
|
+
import StatusLabel from "../../../../../../components/StatusLabel";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
const MemberStatusLabel = (props) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
const { status, className } = props;
|
|
7
|
+
return observe(() => {
|
|
8
|
+
const getColors = () => {
|
|
9
|
+
switch (status === null || status === void 0 ? void 0 : status.replace(/\s+/g, "")) {
|
|
10
|
+
case "Active":
|
|
11
|
+
return { bg: "bg-bg-green-data", text: "text-green-data", dot: "bg-green-data" };
|
|
12
|
+
case "NeedIdentity":
|
|
13
|
+
return { bg: "bg-bg-brown-data", text: "text-brown-data", dot: "bg-brown-data" };
|
|
14
|
+
default:
|
|
15
|
+
return { bg: "bg-bg-grey", text: "text-font-grey", dot: "bg-font-grey" };
|
|
16
|
+
}
|
|
16
17
|
};
|
|
17
|
-
|
|
18
|
+
const colors = getColors();
|
|
19
|
+
return React.createElement(StatusLabel, { status: status, className: className, colors: colors });
|
|
20
|
+
});
|
|
18
21
|
};
|
|
19
22
|
export default MemberStatusLabel;
|
|
20
23
|
//# sourceMappingURL=MemberStatusLabel2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MemberStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"MemberStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,aAAa,CAAC;AACrB,OAAO,WAAW,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,iBAAiB,GAAG,CAAC,KAA8C,EAAE,EAAE;IAC5E,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,MAAM,SAAS,GAAG,GAAG,EAAE;YACtB,QAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;gBACrC,KAAK,QAAQ;oBACZ,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF,KAAK,cAAc;oBAClB,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF;oBACC,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;YAC3E,CAAC;QACF,CAAC,CAAC;QAEF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,OAAO,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAC9E,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
export declare const columnsSimpleList: ({
|
|
3
|
+
title: React.JSX.Element;
|
|
4
|
+
dataIndex: string;
|
|
5
|
+
width: string;
|
|
6
|
+
} | {
|
|
7
|
+
title: React.JSX.Element;
|
|
8
|
+
dataIndex: string;
|
|
9
|
+
width?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
title: string;
|
|
12
|
+
dataIndex: string;
|
|
13
|
+
width: string;
|
|
14
|
+
})[];
|
|
3
15
|
export declare const columnsListDetail: ({
|
|
4
16
|
title: React.JSX.Element;
|
|
5
17
|
dataIndex: string;
|
package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js
ADDED
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import { faEllipsisVerticalSolid, faEnvelopeSolid, faPhoneSolid, faCalendarSolid, faUserGroupSolid, faCalendarDaysSolid, faCalendarXmarkSolid, faCubesSolid, faCalendarCheckSolid, faBanSolid, faCertificateSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
2
|
+
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
3
|
+
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
4
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
5
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
6
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
7
|
+
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
|
+
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import { useOfficerStore, useOfficer } from "../../../../../../data/officer";
|
|
11
|
+
import CompanOfficerMenu from "../../../controls/CompanyRegisterMenu";
|
|
12
|
+
import OfficerStatusLabel from "../../controls/OfficerStatusLabel/OfficerStatusLabel2";
|
|
13
|
+
export const columnsSimpleList = [
|
|
14
|
+
{
|
|
15
|
+
title: (React.createElement(React.Fragment, null,
|
|
16
|
+
React.createElement(FAIcon, { icon: faUserGroupSolid }),
|
|
17
|
+
" Officers Details")),
|
|
18
|
+
dataIndex: "details",
|
|
19
|
+
width: "40%",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
title: (React.createElement(React.Fragment, null,
|
|
23
|
+
React.createElement(FAIcon, { icon: faCubesSolid }),
|
|
24
|
+
" POSITION AND STATUS")),
|
|
25
|
+
dataIndex: "position",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: (React.createElement(React.Fragment, null,
|
|
29
|
+
React.createElement(FAIcon, { icon: faCertificateSolid }),
|
|
30
|
+
" Identity Status")),
|
|
31
|
+
dataIndex: "identity",
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
title: " ",
|
|
35
|
+
dataIndex: "menu",
|
|
36
|
+
width: "72px",
|
|
37
|
+
},
|
|
38
|
+
];
|
|
39
|
+
export const columnsListDetail = [
|
|
40
|
+
{
|
|
41
|
+
title: (React.createElement(React.Fragment, null,
|
|
42
|
+
React.createElement(FAIcon, { icon: faUserGroupSolid }),
|
|
43
|
+
" Officers Name")),
|
|
44
|
+
dataIndex: "name",
|
|
45
|
+
width: "32%",
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(FAIcon, { icon: faCalendarSolid }),
|
|
50
|
+
" Appointment")),
|
|
51
|
+
dataIndex: "appointment",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
title: (React.createElement(React.Fragment, null,
|
|
55
|
+
React.createElement(FAIcon, { icon: faCalendarXmarkSolid }),
|
|
56
|
+
" Cease")),
|
|
57
|
+
dataIndex: "cease",
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
title: (React.createElement(React.Fragment, null,
|
|
61
|
+
React.createElement(FAIcon, { icon: faCubesSolid }),
|
|
62
|
+
" POSITION AND STATUS")),
|
|
63
|
+
dataIndex: "position",
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
title: (React.createElement(React.Fragment, null,
|
|
67
|
+
React.createElement(FAIcon, { icon: faCertificateSolid }),
|
|
68
|
+
" Identity Status")),
|
|
69
|
+
dataIndex: "identity",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
title: " ",
|
|
73
|
+
dataIndex: "menu",
|
|
74
|
+
width: "72px",
|
|
75
|
+
},
|
|
76
|
+
];
|
|
77
|
+
const renderDate = (date) => date ? (React.createElement(UTCShortDate, { value: date, format: "DD MMM YYYY", className: "text-sm text-font-primary font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, "__"));
|
|
78
|
+
const TableCellDetail = (props) => {
|
|
79
|
+
var _a;
|
|
80
|
+
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
81
|
+
const isAside = (_a = useAsideContentContext()) === null || _a === void 0 ? void 0 : _a.asideContent;
|
|
82
|
+
const store = useOfficerStore();
|
|
83
|
+
return observe(() => {
|
|
84
|
+
const officer = useOfficer(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
85
|
+
const renderContent = () => {
|
|
86
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
87
|
+
switch (dataIndex) {
|
|
88
|
+
case "name":
|
|
89
|
+
return (React.createElement("div", { className: "flex items-center gap-3.5" },
|
|
90
|
+
React.createElement(UnitAvatar, { unit: officer.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
|
|
91
|
+
React.createElement("div", { className: "officer-table-item-name" },
|
|
92
|
+
((_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, officer.identity.fullName)) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null,
|
|
93
|
+
React.createElement("div", { className: "flex items-center gap-4 text-xs text-font-grey font-medium" },
|
|
94
|
+
React.createElement("div", null,
|
|
95
|
+
React.createElement(FAIcon, { icon: faEnvelopeSolid }),
|
|
96
|
+
((_b = officer.email) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.email) ? (React.createElement("span", { className: "ml-1" }, (_d = officer.email) !== null && _d !== void 0 ? _d : (_e = officer.contact) === null || _e === void 0 ? void 0 : _e.email)) : (" -")),
|
|
97
|
+
React.createElement("div", null,
|
|
98
|
+
React.createElement(FAIcon, { icon: faPhoneSolid }),
|
|
99
|
+
((_f = officer.phone) !== null && _f !== void 0 ? _f : (_g = officer.contact) === null || _g === void 0 ? void 0 : _g.phone) ? (React.createElement("span", { className: "ml-1" }, (_h = officer.phone) !== null && _h !== void 0 ? _h : (_j = officer.contact) === null || _j === void 0 ? void 0 : _j.phone)) : (" -"))))));
|
|
100
|
+
case "details":
|
|
101
|
+
return (React.createElement("div", { className: "flex items-center gap-3.5" },
|
|
102
|
+
React.createElement(UnitAvatar, { unit: officer.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
|
|
103
|
+
React.createElement("div", { className: "flex flex-col gap-1" },
|
|
104
|
+
((_k = officer.identity) === null || _k === void 0 ? void 0 : _k.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, officer.identity.fullName)) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null,
|
|
105
|
+
React.createElement("div", { className: "flex items-center gap-2 text-xs text-font-grey font-medium" },
|
|
106
|
+
React.createElement("div", { className: "flex items-center gap-0.5" },
|
|
107
|
+
React.createElement(FAIcon, { icon: faCalendarCheckSolid }),
|
|
108
|
+
officer.appointment ? (React.createElement(UTCShortDate, { value: officer.appointment, format: "DD MMM YYYY", className: "text-xs text-font-grey font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, " -"))),
|
|
109
|
+
React.createElement("div", { className: "flex items-center gap-0.5" },
|
|
110
|
+
React.createElement(FAIcon, { icon: faCalendarDaysSolid }),
|
|
111
|
+
officer.cease ? (React.createElement(UTCShortDate, { value: officer.cease, format: "DD MMM YYYY", className: "text-xs text-font-grey font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, " -")))))));
|
|
112
|
+
case "position":
|
|
113
|
+
return (React.createElement(React.Fragment, null,
|
|
114
|
+
React.createElement("div", { className: "text-sm font-semibold tracking-wide text-font-primary" }, officer.position),
|
|
115
|
+
React.createElement(OfficerStatusLabel, { status: !officer.identity ? "Need Identity" : officer.status })));
|
|
116
|
+
case "appointment":
|
|
117
|
+
return renderDate(officer.appointment);
|
|
118
|
+
case "cease":
|
|
119
|
+
return renderDate(officer.cease);
|
|
120
|
+
case "identity":
|
|
121
|
+
return (React.createElement(React.Fragment, null, ((_l = officer.identity) === null || _l === void 0 ? void 0 : _l.id) ? (React.createElement(IdentityStatus, { id: (_m = officer.identity) === null || _m === void 0 ? void 0 : _m.id, className: "officer-table-item-identity" })) : (React.createElement("span", { className: "flex items-center gap-1 text-font-disabled" },
|
|
122
|
+
React.createElement(FAIcon, { icon: faBanSolid, className: "text-xs" }),
|
|
123
|
+
"Need Identity"))));
|
|
124
|
+
case "menu":
|
|
125
|
+
return (React.createElement("div", { className: "opacity-0 group-hover/row:opacity-100 transition-opacity" },
|
|
126
|
+
React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
127
|
+
React.createElement(Open, { url: `/officer/${record.id}` }),
|
|
128
|
+
React.createElement(CompanOfficerMenu, { id: record.id, title: "Officer Menu", unitId: (_o = officer.contact) === null || _o === void 0 ? void 0 : _o.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
|
|
129
|
+
data: { ContactId: unitId },
|
|
130
|
+
error: "message",
|
|
131
|
+
}) }))));
|
|
132
|
+
default:
|
|
133
|
+
return children;
|
|
134
|
+
}
|
|
135
|
+
};
|
|
136
|
+
return React.createElement("td", { ...restProps }, renderContent());
|
|
137
|
+
});
|
|
138
|
+
};
|
|
139
|
+
export default TableCellDetail;
|
|
140
|
+
//# sourceMappingURL=TableCellDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,YAAY,EACZ,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;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I,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;oCAC3B,KAAK,EAAE,SAAS;iCAChB,CAAC,GAEF,CACO,CACL,CACN,CAAC;gBACH;oBACC,OAAO,QAAQ,CAAC;YAClB,CAAC;QACF,CAAC,CAAC;QAEF,OAAO,+BAAQ,SAAS,IAAG,aAAa,EAAE,CAAM,CAAC;IAClD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare const OfficerTableList: (props: React.ComponentProps<typeof OfficerTableListCard>) => React.JSX.Element;
|
|
2
|
+
import { OfficerTableListProps } from "../OfficerTableListCard/OfficerRegisterContainer";
|
|
3
|
+
declare const OfficerTableList: (props: OfficerTableListProps) => React.JSX.Element;
|
|
5
4
|
export default OfficerTableList;
|
|
@@ -1,16 +1,79 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import "
|
|
2
|
+
import TableCellDetail, { columnsListDetail, columnsSimpleList } from "./TableCellDetail";
|
|
3
|
+
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
4
|
+
import { Button, Dropdown, Menu } from "antd";
|
|
5
|
+
import { faPrintSolid, faEllipsisVerticalSolid, faTrashSolid, faFilterSolid, faPaperPlaneSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
6
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
7
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
8
|
+
import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
|
|
9
|
+
import OfficerPropertiesView from "../OfficerPropertiesView";
|
|
10
|
+
import RegisterTable from "../../../../../../components/RegisterTable";
|
|
11
|
+
import OfficerRegisterContainer from "../OfficerTableListCard/OfficerRegisterContainer";
|
|
6
12
|
const OfficerTableList = (props) => {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
13
|
+
const asideContext = useAsideContentContext();
|
|
14
|
+
return observe(() => (React.createElement(OfficerRegisterContainer, { ...props }, ({ list, state, dataSource, totalCount, setVisible, handleDelete, corporate, user }) => {
|
|
15
|
+
// spec:1777 — CSP: Officers table header offers Send Form, Print, and Delete Register actions only with edit permission
|
|
16
|
+
const items = [
|
|
17
|
+
{
|
|
18
|
+
key: "print",
|
|
19
|
+
label: (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: window.location.origin + `/officer/print/${props.corporateId}` }, "Print")),
|
|
20
|
+
icon: React.createElement(FAIcon, { icon: faPrintSolid }),
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: "delete-register",
|
|
24
|
+
label: React.createElement("span", null, "Delete"),
|
|
25
|
+
icon: React.createElement(FAIcon, { icon: faTrashSolid }),
|
|
26
|
+
onClick: handleDelete,
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
const columns = ((asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimpleList : columnsListDetail).map((col) => {
|
|
30
|
+
return {
|
|
31
|
+
...col,
|
|
32
|
+
onCell: (record, rowIndex) => {
|
|
33
|
+
return {
|
|
34
|
+
record,
|
|
35
|
+
dataIndex: col.dataIndex,
|
|
36
|
+
rowIndex: rowIndex,
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
});
|
|
41
|
+
return (React.createElement("div", { className: "h-full flex flex-col" },
|
|
42
|
+
React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: "p-5! [&_.header-tool-space]:gap-3.5 [&_button]:ml-0! [&_.ant-input-outlined]:h-auto! [&_.ant-input-outlined]:bg-bg-blue! [&_.ant-input-outlined]:border-border! [&_.ant-input-outlined:hover]:border-font-secondary! [&_.ant-input-outlined:focus]:border-font-secondary! [&_.ant-input-outlined:focus-within]:border-font-secondary! [&_button]:font-semibold!", searchOptions: { placeholder: "Search in register officer" },
|
|
43
|
+
// spec:1778 — CSP: Active officers register defaults to a Present-only filter
|
|
44
|
+
filterViewProps: {
|
|
45
|
+
icon: (React.createElement(Button, null,
|
|
46
|
+
React.createElement(FAIcon, { icon: faFilterSolid }))),
|
|
47
|
+
columns: [React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter" })],
|
|
48
|
+
}, rightExtra: () => user.can("edit", corporate.p) && (React.createElement(React.Fragment, null,
|
|
49
|
+
React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-font-primary font-semibold uppercase", onClick: () => setVisible(true) }, "Send Form"),
|
|
50
|
+
React.createElement(AddDropDown2, { trigger: ["click"], btnType: React.createElement(Button, { className: "primary-button" }, "+ NEW ENTRY"), overlay: React.createElement(Menu, { onClick: state.onSelect, items: [
|
|
51
|
+
{ key: "Director", label: "Director" },
|
|
52
|
+
{ key: "Managing Director", label: "Managing Director" },
|
|
53
|
+
{ key: "Nominee Director", label: "Nominee Director" },
|
|
54
|
+
{ key: "Secretary", label: "Secretary" },
|
|
55
|
+
{ key: "DPO", label: "DPO" },
|
|
56
|
+
{ key: "CEO", label: "CEO" },
|
|
57
|
+
{ key: "Partner", label: "Partner" },
|
|
58
|
+
{ key: "Owner", label: "Owner" },
|
|
59
|
+
{ key: "Auditor", label: "Auditor" },
|
|
60
|
+
{ key: "Manager", label: "Manager" },
|
|
61
|
+
] }) }),
|
|
62
|
+
React.createElement(Dropdown, { trigger: ["click", "hover"], menu: { items } },
|
|
63
|
+
React.createElement(Button, { className: "w-[45px]" },
|
|
64
|
+
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }),
|
|
65
|
+
React.createElement(RegisterTable, { columns: columns, dataSource: dataSource, loading: list.loading, onLoadMore: () => list.triggerNextPage(), hasMore: dataSource.length < totalCount, components: {
|
|
66
|
+
body: {
|
|
67
|
+
cell: TableCellDetail,
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
// spec:1775 — CSP: Clicking an officer row opens an aside Properties panel or a Quick View dialog
|
|
71
|
+
onRowClick: (record) => {
|
|
72
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(OfficerPropertiesView, { id: record.id }), {
|
|
73
|
+
span: 12,
|
|
74
|
+
});
|
|
75
|
+
} })));
|
|
76
|
+
})));
|
|
14
77
|
};
|
|
15
78
|
export default OfficerTableList;
|
|
16
79
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC9C,OAAO,EACN,YAAY,EACZ,uBAAuB,EACvB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,mBAAmB,MAAM,oC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AEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { IOfficer } from "../../../../../../data/officer";
|
|
3
|
+
import { State } from "./state";
|
|
4
|
+
export interface OfficerTableListProps {
|
|
5
|
+
officersRegisterId: string;
|
|
6
|
+
corporateId: string;
|
|
7
|
+
isFilterPresent?: boolean;
|
|
8
|
+
onDelete?: (corporateId: string, officerRegisterId: string) => void;
|
|
9
|
+
}
|
|
10
|
+
export interface OfficerRegisterContainerProps extends OfficerTableListProps {
|
|
11
|
+
children: (context: {
|
|
12
|
+
list: any;
|
|
13
|
+
state: State;
|
|
14
|
+
dataSource: IOfficer[];
|
|
15
|
+
totalCount: number;
|
|
16
|
+
setVisible: (v: boolean) => void;
|
|
17
|
+
handleDelete: () => void;
|
|
18
|
+
corporate: any;
|
|
19
|
+
user: any;
|
|
20
|
+
}) => ReactNode;
|
|
21
|
+
}
|
|
22
|
+
declare const OfficerRegisterContainer: (props: OfficerRegisterContainerProps) => React.JSX.Element;
|
|
23
|
+
export default OfficerRegisterContainer;
|