@voplus/morpho-csp 10.0.9 → 10.0.10
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/CorporateUnitSelectDialog/index.d.ts +1 -1
- package/es/components/CorporateUnitSelectDialog/index.js +4 -12
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
- package/es/components/CorporateUnitSelectDialog/state.d.ts +2 -2
- package/es/components/CorporateUnitSelectDialog/state.js +6 -9
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js +3 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateList/index.js +1 -1
- package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +1 -13
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +39 -94
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +63 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css +122 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +95 -66
- 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 +13 -23
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.css +22 -0
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.d.ts +1 -0
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js +8 -1
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +3 -2
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +9 -63
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/{MemberTableList → MemberTableListCard}/TableCellDetail.d.ts +1 -13
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +77 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js +52 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +16 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +133 -17
- 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 +12 -15
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +3 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +11 -74
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/{OfficerTableList → OfficerTableListCard}/TableCellDetail.d.ts +1 -13
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +87 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js +65 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +24 -3
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +140 -22
- 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 +2 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +37 -20
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.css +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +2 -5
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.css +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +7 -29
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
- package/es/page/RegisterTablePage/Controller.d.ts +3 -0
- package/es/page/RegisterTablePage/Controller.js +134 -0
- package/es/page/RegisterTablePage/Controller.js.map +1 -0
- package/es/page/RegisterTablePage/index.d.ts +3 -0
- package/es/page/RegisterTablePage/index.js +63 -0
- package/es/page/RegisterTablePage/index.js.map +1 -0
- package/package.json +1 -2
- package/es/components/RegisterTable/index.d.ts +0 -31
- package/es/components/RegisterTable/index.js +0 -55
- package/es/components/RegisterTable/index.js.map +0 -1
- package/es/components/StatusLabel/index.d.ts +0 -36
- package/es/components/StatusLabel/index.js +0 -16
- package/es/components/StatusLabel/index.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +0 -125
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.d.ts +0 -21
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +0 -86
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +0 -140
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.d.ts +0 -23
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +0 -87
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +0 -1
- package/es/modules/corporate/company/pages/RegisterTablePage/index.d.ts +0 -10
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js +0 -151
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.d.ts +0 -10
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js +0 -52
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.d.ts +0 -7
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +0 -94
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.d.ts +0 -22
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +0 -92
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js +0 -9
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.d.ts +0 -5
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js +0 -52
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js.map +0 -1
package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
@import "../../../../../../style/common.css";
|
|
2
|
+
|
|
3
|
+
.controller-table-list-card {
|
|
4
|
+
height: 100%;
|
|
5
|
+
|
|
6
|
+
.tools-card-content .ant-table-wrapper {
|
|
7
|
+
.tool-bar .ant-btn {
|
|
8
|
+
padding: 0;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.ant-table-cell {
|
|
12
|
+
color: #5d5d5d;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.controller-table-item-info {
|
|
18
|
+
color: #5d5d5d;
|
|
19
|
+
font-weight: 500;
|
|
20
|
+
padding: 1px 0;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
display: flex;
|
|
23
|
+
align-items: center;
|
|
24
|
+
|
|
25
|
+
.ant-avatar {
|
|
26
|
+
width: 30px;
|
|
27
|
+
height: 30px;
|
|
28
|
+
line-height: 28px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.controller-table-item-name {
|
|
32
|
+
flex: 1;
|
|
33
|
+
margin-left: 8px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.controller-table-status-label {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
|
|
40
|
+
.controller-status-button {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.controller-table-item-contact {
|
|
46
|
+
color: #868686;
|
|
47
|
+
|
|
48
|
+
div {
|
|
49
|
+
display: inline-block;
|
|
50
|
+
|
|
51
|
+
&:first-child {
|
|
52
|
+
margin-right: 8px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
span {
|
|
57
|
+
float: left;
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: 15px;
|
|
60
|
+
color: #cbcbcb;
|
|
61
|
+
margin-right: 5px;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
.controller-table-item-email,
|
|
66
|
+
.controller-table-item-phone {
|
|
67
|
+
color: #5d5d5d;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.controller-table-item-identity {
|
|
71
|
+
.verification {
|
|
72
|
+
margin-right: 10px;
|
|
73
|
+
margin-left: 0;
|
|
74
|
+
|
|
75
|
+
&:last-child {
|
|
76
|
+
margin-right: 0;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.controller-table-list-header.list-view-header-tool {
|
|
82
|
+
padding: 0;
|
|
83
|
+
flex: 1;
|
|
84
|
+
|
|
85
|
+
.header-tool-space {
|
|
86
|
+
display: flex;
|
|
87
|
+
|
|
88
|
+
.title {
|
|
89
|
+
flex: 1;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.send-form-btn {
|
|
93
|
+
color: var(--purple-primary-color);
|
|
94
|
+
border-color: var(--purple-primary-color);
|
|
95
|
+
padding-left: 10px;
|
|
96
|
+
padding-right: 10px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.import-btn,
|
|
100
|
+
.print-btn,
|
|
101
|
+
.send-notice-btn {
|
|
102
|
+
color: var(--purple-primary-color);
|
|
103
|
+
border-color: var(--purple-primary-color);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
.controller-table-item-details {
|
|
109
|
+
.controller-table-item-date {
|
|
110
|
+
display: flex;
|
|
111
|
+
color: #868686;
|
|
112
|
+
margin-top: 4px;
|
|
113
|
+
.appointment {
|
|
114
|
+
margin-right: 10px;
|
|
115
|
+
}
|
|
116
|
+
.date-icon {
|
|
117
|
+
color: #cbcbcb;
|
|
118
|
+
display: inline-block;
|
|
119
|
+
margin-right: 5px;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js
CHANGED
|
@@ -1,29 +1,37 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
1
|
+
import React, { useState, useRef, useEffect } from "react";
|
|
2
|
+
import TableCell, { columnsList } from "./TableCell";
|
|
3
|
+
import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
|
|
2
4
|
import { Button, Dropdown, Modal } from "antd";
|
|
3
|
-
import
|
|
4
|
-
import { faTrashSolid, faPrintSolid, faFileImportSolid, faEllipsisVerticalSolid, faFilterSolid, faPaperPlaneSolid, faUploadSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
-
import TableCell, { columnsList, columnsSimpleList } from "./TableCell";
|
|
6
|
-
import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
|
|
5
|
+
import { State } from "./state";
|
|
7
6
|
import { useDeepMemo } from "@voplus/morpho-data";
|
|
7
|
+
import { faPrintSolid, faEllipsisVerticalSolid, faFileImportSolid, faTrashSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
+
import { useCorporateStore } from "../../../../../../data/corporate";
|
|
9
|
+
import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
|
|
10
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
11
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
12
|
+
import { useControllerListEffect, useControllerStore } from "../../../../../../data/controller";
|
|
13
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
14
|
+
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
15
|
+
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
8
16
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
9
|
-
import
|
|
17
|
+
import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
|
|
18
|
+
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
19
|
+
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
10
20
|
import SelectControllerSendForm from "../SelectControllerSendForm";
|
|
11
21
|
import SelectControllerForm from "../SelectControllerForm";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
16
|
-
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
17
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
18
|
-
import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
|
|
22
|
+
import Scrollbars from "react-custom-scrollbars-2";
|
|
23
|
+
import classnames from "classnames";
|
|
24
|
+
import "./index.css";
|
|
19
25
|
const ControllerTableList = (props) => {
|
|
20
|
-
const asideContext = useAsideContentContext();
|
|
21
|
-
const controllerStore = useControllerStore();
|
|
22
26
|
const { controllerRegisterId, corporateId } = props;
|
|
23
|
-
const state = useDeepMemo(() => new State(), [controllerRegisterId]);
|
|
24
27
|
const [visible, setVisible] = useState(false);
|
|
25
28
|
const [noticeVisible, setNoticeVisible] = useState(false);
|
|
26
|
-
const [
|
|
29
|
+
const [height, setHeight] = useState(0);
|
|
30
|
+
const ref = useRef(null);
|
|
31
|
+
const corporateStore = useCorporateStore();
|
|
32
|
+
const controllerStore = useControllerStore();
|
|
33
|
+
const asideContext = useAsideContentContext();
|
|
34
|
+
const state = useDeepMemo(() => new State(), [controllerRegisterId]);
|
|
27
35
|
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
28
36
|
const list = useCreateListDataState({
|
|
29
37
|
filterDefaults: {
|
|
@@ -39,17 +47,40 @@ const ControllerTableList = (props) => {
|
|
|
39
47
|
includes: "tags",
|
|
40
48
|
},
|
|
41
49
|
}, [controllerRegisterId]);
|
|
50
|
+
const columns = columnsList.map((col) => {
|
|
51
|
+
return {
|
|
52
|
+
...col,
|
|
53
|
+
onCell: (record, rowIndex) => {
|
|
54
|
+
return {
|
|
55
|
+
record,
|
|
56
|
+
dataIndex: col.dataIndex,
|
|
57
|
+
rowIndex: rowIndex,
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
const columnsSimple = columnsSimpleList.map((col) => {
|
|
63
|
+
return {
|
|
64
|
+
...col,
|
|
65
|
+
onCell: (record, rowIndex) => {
|
|
66
|
+
return {
|
|
67
|
+
record,
|
|
68
|
+
dataIndex: col.dataIndex,
|
|
69
|
+
rowIndex: rowIndex,
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
};
|
|
73
|
+
});
|
|
74
|
+
useEffect(() => {
|
|
75
|
+
if (ref.current) {
|
|
76
|
+
setHeight(ref.current.offsetHeight);
|
|
77
|
+
}
|
|
78
|
+
}, [ref]);
|
|
42
79
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
43
80
|
useAutoUpdateListData(list, (d) => d.parentId === controllerRegisterId);
|
|
44
81
|
useRenderOnChange(() => list.filters.options);
|
|
45
82
|
/** 把ListDataState传给useControllerListEffect,使之可以自動更新loading, hasmore. */
|
|
46
|
-
useControllerListEffect(list, (result, total) =>
|
|
47
|
-
list.union(result);
|
|
48
|
-
setTotalCount(total || 0);
|
|
49
|
-
}, {
|
|
50
|
-
Total: true,
|
|
51
|
-
...list.filters.options,
|
|
52
|
-
});
|
|
83
|
+
useControllerListEffect(list, (result, total) => list.union(result), list.filters.options);
|
|
53
84
|
// spec:1821 — CSP: Controller list overflow menu offers Send Notice, Print and Delete
|
|
54
85
|
const items = [
|
|
55
86
|
{
|
|
@@ -78,55 +109,53 @@ const ControllerTableList = (props) => {
|
|
|
78
109
|
},
|
|
79
110
|
},
|
|
80
111
|
];
|
|
81
|
-
return observe(() => {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
...col,
|
|
85
|
-
onCell: (record, rowIndex) => {
|
|
86
|
-
return {
|
|
87
|
-
record,
|
|
88
|
-
dataIndex: col.dataIndex,
|
|
89
|
-
rowIndex: rowIndex,
|
|
90
|
-
};
|
|
91
|
-
},
|
|
92
|
-
};
|
|
93
|
-
});
|
|
94
|
-
return (React.createElement(ListDataContext.Provider, { value: list },
|
|
95
|
-
React.createElement("div", { className: "h-full flex flex-col" },
|
|
96
|
-
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 controller" },
|
|
112
|
+
return observe(() => (React.createElement("div", { className: "registers-page-item" },
|
|
113
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
|
114
|
+
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: classnames("controller-table-list-header"), searchOptions: { placeholder: "Search in register controller" },
|
|
97
115
|
// spec:1822 — CSP: Controller list filter has Unconfirmed, ConfirmedController, ConfirmedNotController
|
|
98
116
|
filterViewProps: {
|
|
99
|
-
icon: (React.createElement(Button, null,
|
|
100
|
-
React.createElement(FAIcon, { icon: faFilterSolid }))),
|
|
101
117
|
columns: [
|
|
102
118
|
React.createElement(ControllerStatusFilter, { key: "ControllerStatusFilter", defaultValue: ["Unconfirmed", "ConfirmedController"] }),
|
|
103
119
|
],
|
|
104
120
|
}, rightExtra: () => (React.createElement(React.Fragment, null,
|
|
105
|
-
React.createElement(Button, {
|
|
106
|
-
React.createElement(Button, { className: "
|
|
121
|
+
React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form"),
|
|
122
|
+
React.createElement(Button, { className: "import-btn", onClick: async () => await controllerStore
|
|
107
123
|
.importController(controllerRegisterId, { error: "message" })
|
|
108
|
-
.then(() => props.onReload && props.onReload()) }, "
|
|
109
|
-
React.createElement(
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
124
|
+
.then(() => props.onReload && props.onReload()) }, "Import"),
|
|
125
|
+
React.createElement(AddDropDown2, { btnType: "text", onClick: () => {
|
|
126
|
+
state.addAble = true;
|
|
127
|
+
} }),
|
|
128
|
+
React.createElement(Dropdown, { classNames: { root: "controller-table-list-dropdown" }, trigger: ["click", "hover"], menu: { items } },
|
|
129
|
+
React.createElement(Button, null,
|
|
130
|
+
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }) },
|
|
131
|
+
React.createElement("div", { ref: ref, className: "controller-table-list-card" },
|
|
132
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
133
|
+
React.createElement(TableListCard, { tableListProps: {
|
|
134
|
+
columns: (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimple : columns,
|
|
135
|
+
components: {
|
|
136
|
+
body: {
|
|
137
|
+
// row: DragTableRow,
|
|
138
|
+
cell: (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? TableCellSimple : TableCell,
|
|
139
|
+
},
|
|
140
|
+
},
|
|
141
|
+
scrollH: height - 72,
|
|
142
|
+
tableProps: {
|
|
143
|
+
onRow: (record) => {
|
|
144
|
+
return {
|
|
145
|
+
onClick: (e) => {
|
|
146
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ControllerPropertiesView, { id: record.id }), {
|
|
147
|
+
span: 12,
|
|
148
|
+
});
|
|
149
|
+
},
|
|
150
|
+
};
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
}, ...props.tableCardProps }))))),
|
|
154
|
+
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
|
|
155
|
+
state.addAble = false;
|
|
156
|
+
} })),
|
|
157
|
+
visible && (React.createElement(SelectControllerSendForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })),
|
|
158
|
+
noticeVisible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setNoticeVisible(false) })))));
|
|
130
159
|
/** 新增controllerItem */
|
|
131
160
|
async function onSave(unit) {
|
|
132
161
|
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACN,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8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X,oBAAC,wBAAwB,IACxB,QAAQ,EAAE,oBAAqB,EAC/B,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAChC,CACF;QACA,aAAa,IAAI,CACjB,oBAAC,oBAAoB,IACpB,QAAQ,EAAE,oBAAoB,EAC9B,QAAQ,EAAE,GAAG,EAAE,CAAC,gBAAgB,CAAC,KAAK,CAAC,GACtC,CACF,CACI,CACN,CAAC,CAAC;IAEH,uBAAuB;IACvB,KAAK,UAAU,MAAM,CAAC,IAAmD;QACxE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,oBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC/D,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QACD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,30 +1,20 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
2
|
+
import classnames from "classnames";
|
|
3
|
+
// import "./index.css";
|
|
3
4
|
import { observe } from "@voplus/morpho-ui";
|
|
4
5
|
const ControllerStatusLabel = (props) => {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
case "Unconfirmed":
|
|
16
|
-
default:
|
|
17
|
-
return { bg: "bg-bg-grey", text: "text-font-grey", dot: "bg-font-grey" };
|
|
18
|
-
}
|
|
6
|
+
var _a;
|
|
7
|
+
const item = transformStatus((_a = props.status) !== null && _a !== void 0 ? _a : "");
|
|
8
|
+
return observe(() => (React.createElement("span", { className: classnames("inline-flex items-center gap-1 px-2.5 py-1 rounded-xl bg-gray-200 text-xs font-medium uppercase", props.className, item.colorName) }, item.displayName ? (React.createElement(React.Fragment, null,
|
|
9
|
+
React.createElement("i", { className: "inline-block w-1.5 h-1.5 rounded-full bg-bg-grey" }),
|
|
10
|
+
React.createElement("span", null, item.displayName))) : null)));
|
|
11
|
+
function transformStatus(name, displayName) {
|
|
12
|
+
return {
|
|
13
|
+
name: name,
|
|
14
|
+
displayName: displayName || (name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join(" ")),
|
|
15
|
+
colorName: `${name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join("-").toLowerCase()}`,
|
|
19
16
|
};
|
|
20
|
-
|
|
21
|
-
const text = status === "ConfirmedNotController"
|
|
22
|
-
? "Not Controller"
|
|
23
|
-
: status === "ConfirmedController"
|
|
24
|
-
? "Confirmed"
|
|
25
|
-
: status;
|
|
26
|
-
return React.createElement(StatusLabel, { status: status, text: text, className: className, colors: colors });
|
|
27
|
-
});
|
|
17
|
+
}
|
|
28
18
|
};
|
|
29
19
|
export default ControllerStatusLabel;
|
|
30
20
|
//# sourceMappingURL=ControllerStatusLabel2.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ControllerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"ControllerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,wBAAwB;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE;;IAChF,MAAM,IAAI,GAAG,eAAe,CAAC,MAAA,KAAK,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC;IAEjD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,8BACC,SAAS,EAAE,UAAU,CACpB,iGAAiG,EACjG,KAAK,CAAC,SAAS,EACf,IAAI,CAAC,SAAS,CACd,IAEA,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CACnB;QACC,2BAAG,SAAS,EAAC,kDAAkD,GAAG;QAClE,kCAAO,IAAI,CAAC,WAAW,CAAQ,CAC7B,CACH,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,IAAY,EAAE,WAAoB;QAC1D,OAAO;YACN,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,WAAW,KAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;YAC9D,SAAS,EAAE,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CACf,KAAK,CAAC,WAAW,EAClB,IAAI,CAAC,GAAG,EACR,WAAW,EAAE,EAAE;SACjB,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
.corporate-status {
|
|
2
|
+
&.dormant,
|
|
3
|
+
&.dormant:hover {
|
|
4
|
+
background: var(--rejected-color);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
&.live,
|
|
8
|
+
&.live:hover {
|
|
9
|
+
background: var(--active-color);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&.closed,
|
|
13
|
+
&.closed:hover {
|
|
14
|
+
background: #ff4d4f;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.corporate-status-label {
|
|
19
|
+
.ant-dropdown-menu-item:last-child {
|
|
20
|
+
display: none;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import "./index.css";
|
|
4
6
|
const CorporateStatusLabel = (props) => {
|
|
5
7
|
// spec:1863 — CSP: Corporate status label includes unknown status as a fourth option
|
|
6
|
-
|
|
8
|
+
const list = [{ name: "Live" }, { name: "Dormant" }, { name: "Closed" }];
|
|
9
|
+
if ((props.status && list.findIndex((i) => i.name === props.status) === -1) || !props.status) {
|
|
10
|
+
list.push({ name: props.status || "" });
|
|
11
|
+
}
|
|
12
|
+
return observe(() => (React.createElement("div", { className: classnames({ "corporate-status-label": !props.status }, props.className) },
|
|
13
|
+
React.createElement(DocumentStatusLabel, { className: "corporate-status", editable: props.editable, list: list, status: props.status, onChange: props.onChange }))));
|
|
7
14
|
};
|
|
8
15
|
export default CorporateStatusLabel;
|
|
9
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,CAAC;AAErB,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,qFAAqF;IACrF,MAAM,IAAI,GAAG,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAC;IACzE,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;QAC9F,IAAI,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,CAAC,MAAM,IAAI,EAAE,EAAE,CAAC,CAAC;IACzC,CAAC;IAED,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,EAAE,wBAAwB,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,EAAE,KAAK,CAAC,SAAS,CAAC;QACvF,oBAAC,mBAAmB,IACnB,SAAS,EAAC,kBAAkB,EAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,IAAI,EAAE,IAAI,EACV,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
2
|
+
import MemberTableListCard from "../MemberTableListCard";
|
|
3
|
+
import "../../../../../../style/common.css";
|
|
4
|
+
declare const MemberTableList: (props: React.ComponentProps<typeof MemberTableListCard>) => React.JSX.Element;
|
|
4
5
|
export default MemberTableList;
|
|
@@ -1,68 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
6
|
-
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
7
|
-
import MemberStatusFilter from "../../controls/MemberStatusFilter";
|
|
8
|
-
import MemberPropertiesView from "../CompanyMemberPropertiesView";
|
|
9
|
-
import RegisterTable from "../../../../../../components/RegisterTable";
|
|
10
|
-
import MemberRegisterContainer from "../MemberTableListCard/MemberRegisterContainer";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import MemberTableListCard from "../MemberTableListCard";
|
|
4
|
+
import "../../../../../../style/common.css";
|
|
11
5
|
const MemberTableList = (props) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
label: (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: window.location.origin + `/member/print/${props.corporateId}` }, "Print")),
|
|
19
|
-
icon: React.createElement(FAIcon, { icon: faPrintSolid }),
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
key: "delete-register",
|
|
23
|
-
label: React.createElement("span", null, "Delete"),
|
|
24
|
-
icon: React.createElement(FAIcon, { icon: faTrashSolid }),
|
|
25
|
-
onClick: handleDelete,
|
|
26
|
-
},
|
|
27
|
-
];
|
|
28
|
-
// spec:1759 — CSP: Members register adapts column set based on detail mode and aside availability
|
|
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 controller" },
|
|
43
|
-
// spec:1755 — CSP: Members register list filters by parent register and optional Active status
|
|
44
|
-
filterViewProps: {
|
|
45
|
-
icon: (React.createElement(Button, null,
|
|
46
|
-
React.createElement(FAIcon, { icon: faFilterSolid }))),
|
|
47
|
-
columns: [
|
|
48
|
-
React.createElement(MemberStatusFilter, { key: "MemberStatusFilter", defaultValue: props.active ? ["Active"] : [] }),
|
|
49
|
-
],
|
|
50
|
-
}, rightExtra: () => (React.createElement(React.Fragment, null,
|
|
51
|
-
user.can("edit", corporate.p) && (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-font-primary font-semibold uppercase", onClick: () => setVisible(true) }, "Send Form")),
|
|
52
|
-
React.createElement(Button, { className: "primary-button", onClick: () => (state.addAble = true) }, "+ NEW ENTRY"),
|
|
53
|
-
React.createElement(Dropdown, { trigger: ["click", "hover"], menu: { items } },
|
|
54
|
-
React.createElement(Button, { className: "w-[45px]" },
|
|
55
|
-
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }),
|
|
56
|
-
React.createElement(RegisterTable, { columns: columns, dataSource: dataSource, loading: list.loading, onLoadMore: () => list.triggerNextPage(), hasMore: dataSource.length < totalCount, components: {
|
|
57
|
-
body: {
|
|
58
|
-
cell: TableCellDetail,
|
|
59
|
-
},
|
|
60
|
-
}, onRowClick: (record) => {
|
|
61
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(MemberPropertiesView, { id: record.id }), {
|
|
62
|
-
span: 12,
|
|
63
|
-
});
|
|
64
|
-
} })));
|
|
65
|
-
})));
|
|
6
|
+
return observe(() => (React.createElement("div", { className: "registers-page-item" },
|
|
7
|
+
React.createElement(MemberTableListCard, { ...props, tableDetail: true, listHeaderToolProps: {
|
|
8
|
+
searchHeader: true,
|
|
9
|
+
preExtra: () => React.createElement(React.Fragment, null),
|
|
10
|
+
searchOptions: { placeholder: "Search in register member" },
|
|
11
|
+
} }))));
|
|
66
12
|
};
|
|
67
13
|
export default MemberTableList;
|
|
68
14
|
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,oCAAoC,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAAuD,EAAE,EAAE;IACnF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,qBAAqB;QACnC,oBAAC,mBAAmB,OACf,KAAK,EACT,WAAW,QACX,mBAAmB,EAAE;gBACpB,YAAY,EAAE,IAAI;gBAClB,QAAQ,EAAE,GAAG,EAAE,CAAC,yCAAK;gBACrB,aAAa,EAAE,EAAE,WAAW,EAAE,2BAA2B,EAAE;aAC3D,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,17 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
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
|
-
})[];
|
|
2
|
+
import "./index.css";
|
|
15
3
|
export declare const columnsListDetail: ({
|
|
16
4
|
title: React.JSX.Element;
|
|
17
5
|
dataIndex: string;
|