@voplus/morpho-csp 10.0.10 → 10.0.11
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 +12 -4
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
- package/es/components/CorporateUnitSelectDialog/state.d.ts +2 -2
- package/es/components/CorporateUnitSelectDialog/state.js +9 -6
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
- 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/data/clda-form/CLDAFormContent.js +3 -1
- package/es/data/clda-form/CLDAFormContent.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js +1 -3
- 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 +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/controls/CorporateStatusLabel/index.d.ts +0 -1
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js +1 -8
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.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 +125 -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/modules/corporate/company/pages/RegisterTablePage/index.d.ts +10 -0
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js +152 -0
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +1 -0
- 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 +5 -2
- 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 +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +1 -0
- 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 +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.d.ts +10 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js +48 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.d.ts +7 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +94 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.d.ts +33 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +121 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js +9 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map +1 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.d.ts +5 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js +48 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js.map +1 -0
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js +1 -2
- package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/MailTypeSelect/index.js +10 -10
- package/es/modules/corporate/virtual-address-mail/components/MailTypeSelect/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +30 -7
- 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/package.json +2 -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/controls/CorporateStatusLabel/index.css +0 -22
- 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/page/RegisterTablePage/index.d.ts +0 -3
- package/es/page/RegisterTablePage/index.js +0 -63
- package/es/page/RegisterTablePage/index.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,gBAAgB,EAChB,oBAAoB,EACpB,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;sCAC3B,CACH;QACD,SAAS,EAAE,MAAM;QACjB,KAAK,EA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,37 +1,29 @@
|
|
|
1
|
-
import React, { useState
|
|
2
|
-
import TableCell, { columnsList } from "./TableCell";
|
|
3
|
-
import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
|
|
1
|
+
import React, { useState } from "react";
|
|
4
2
|
import { Button, Dropdown, Modal } from "antd";
|
|
5
|
-
import
|
|
3
|
+
import RegisterTable from "../../../../../../components/RegisterTable";
|
|
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";
|
|
6
7
|
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";
|
|
16
8
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
17
|
-
import
|
|
18
|
-
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
19
|
-
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
9
|
+
import { useControllerListEffect, useControllerStore, } from "../../../../../../data/controller";
|
|
20
10
|
import SelectControllerSendForm from "../SelectControllerSendForm";
|
|
21
11
|
import SelectControllerForm from "../SelectControllerForm";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import "
|
|
12
|
+
import { State } from "./state";
|
|
13
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
14
|
+
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
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";
|
|
25
19
|
const ControllerTableList = (props) => {
|
|
20
|
+
const asideContext = useAsideContentContext();
|
|
21
|
+
const controllerStore = useControllerStore();
|
|
26
22
|
const { controllerRegisterId, corporateId } = props;
|
|
23
|
+
const state = useDeepMemo(() => new State(), [controllerRegisterId]);
|
|
27
24
|
const [visible, setVisible] = useState(false);
|
|
28
25
|
const [noticeVisible, setNoticeVisible] = useState(false);
|
|
29
|
-
const [
|
|
30
|
-
const ref = useRef(null);
|
|
31
|
-
const corporateStore = useCorporateStore();
|
|
32
|
-
const controllerStore = useControllerStore();
|
|
33
|
-
const asideContext = useAsideContentContext();
|
|
34
|
-
const state = useDeepMemo(() => new State(), [controllerRegisterId]);
|
|
26
|
+
const [totalCount, setTotalCount] = useState(0);
|
|
35
27
|
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
36
28
|
const list = useCreateListDataState({
|
|
37
29
|
filterDefaults: {
|
|
@@ -47,40 +39,17 @@ const ControllerTableList = (props) => {
|
|
|
47
39
|
includes: "tags",
|
|
48
40
|
},
|
|
49
41
|
}, [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]);
|
|
79
42
|
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
80
43
|
useAutoUpdateListData(list, (d) => d.parentId === controllerRegisterId);
|
|
81
44
|
useRenderOnChange(() => list.filters.options);
|
|
82
45
|
/** 把ListDataState传给useControllerListEffect,使之可以自動更新loading, hasmore. */
|
|
83
|
-
useControllerListEffect(list, (result, total) =>
|
|
46
|
+
useControllerListEffect(list, (result, total) => {
|
|
47
|
+
list.union(result);
|
|
48
|
+
setTotalCount(total || 0);
|
|
49
|
+
}, {
|
|
50
|
+
Total: true,
|
|
51
|
+
...list.filters.options,
|
|
52
|
+
});
|
|
84
53
|
// spec:1821 — CSP: Controller list overflow menu offers Send Notice, Print and Delete
|
|
85
54
|
const items = [
|
|
86
55
|
{
|
|
@@ -109,53 +78,55 @@ const ControllerTableList = (props) => {
|
|
|
109
78
|
},
|
|
110
79
|
},
|
|
111
80
|
];
|
|
112
|
-
return observe(() =>
|
|
113
|
-
|
|
114
|
-
|
|
81
|
+
return observe(() => {
|
|
82
|
+
const columns = ((asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimpleList : columnsList).map((col) => {
|
|
83
|
+
return {
|
|
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" },
|
|
115
97
|
// spec:1822 — CSP: Controller list filter has Unconfirmed, ConfirmedController, ConfirmedNotController
|
|
116
98
|
filterViewProps: {
|
|
99
|
+
icon: (React.createElement(Button, null,
|
|
100
|
+
React.createElement(FAIcon, { icon: faFilterSolid }))),
|
|
117
101
|
columns: [
|
|
118
102
|
React.createElement(ControllerStatusFilter, { key: "ControllerStatusFilter", defaultValue: ["Unconfirmed", "ConfirmedController"] }),
|
|
119
103
|
],
|
|
120
104
|
}, rightExtra: () => (React.createElement(React.Fragment, null,
|
|
121
|
-
React.createElement(Button, { className: "
|
|
122
|
-
React.createElement(Button, { className: "
|
|
105
|
+
React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-font-primary font-semibold uppercase", onClick: () => setVisible(true) }, "Send Form"),
|
|
106
|
+
React.createElement(Button, { className: "text-font-primary font-semibold uppercase", icon: React.createElement(FAIcon, { icon: faUploadSolid }), onClick: async () => await controllerStore
|
|
123
107
|
.importController(controllerRegisterId, { error: "message" })
|
|
124
|
-
.then(() => props.onReload && props.onReload()) }, "
|
|
125
|
-
React.createElement(
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
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) })))));
|
|
108
|
+
.then(() => props.onReload && props.onReload()) }, "SYNC"),
|
|
109
|
+
React.createElement(Button, { className: "primary-button", onClick: () => (state.addAble = true) }, "+ NEW ENTRY"),
|
|
110
|
+
React.createElement(Dropdown, { trigger: ["click", "hover"], menu: { items } },
|
|
111
|
+
React.createElement(Button, { className: "w-[45px]" },
|
|
112
|
+
React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }),
|
|
113
|
+
React.createElement(RegisterTable, { columns: columns, dataSource: list.data.map((e, i) => {
|
|
114
|
+
return { key: i, ...e };
|
|
115
|
+
}), loading: list.loading, onLoadMore: () => list.triggerNextPage(), hasMore: list.data.length < totalCount, components: {
|
|
116
|
+
body: {
|
|
117
|
+
cell: TableCell,
|
|
118
|
+
},
|
|
119
|
+
}, onRowClick: (record) => {
|
|
120
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ControllerPropertiesView, { id: record.id }), {
|
|
121
|
+
span: 12,
|
|
122
|
+
});
|
|
123
|
+
} })),
|
|
124
|
+
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
|
|
125
|
+
state.addAble = false;
|
|
126
|
+
} })),
|
|
127
|
+
visible && (React.createElement(SelectControllerSendForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })),
|
|
128
|
+
noticeVisible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setNoticeVisible(false) }))));
|
|
129
|
+
});
|
|
159
130
|
/** 新增controllerItem */
|
|
160
131
|
async function onSave(unit) {
|
|
161
132
|
/** 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,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,iBAAiB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AC,KAAK,CAAC,GACtC,CACF,CACyB,CAC3B,CAAC;IACH,CAAC,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,20 +1,30 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
// import "./index.css";
|
|
2
|
+
import StatusLabel from "../../../../../../components/StatusLabel";
|
|
4
3
|
import { observe } from "@voplus/morpho-ui";
|
|
5
4
|
const ControllerStatusLabel = (props) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
5
|
+
const { status, className } = props;
|
|
6
|
+
return observe(() => {
|
|
7
|
+
const getColors = () => {
|
|
8
|
+
switch (status === null || status === void 0 ? void 0 : status.replace(/\s+/g, "")) {
|
|
9
|
+
case "ConfirmedController":
|
|
10
|
+
return { bg: "bg-bg-green-data", text: "text-green-data", dot: "bg-green-data" };
|
|
11
|
+
case "ConfirmedNotController":
|
|
12
|
+
return { bg: "bg-bg-red-data", text: "text-bg-red", dot: "bg-bg-red" };
|
|
13
|
+
case "NeedIdentity":
|
|
14
|
+
return { bg: "bg-bg-brown-data", text: "text-brown-data", dot: "bg-brown-data" };
|
|
15
|
+
case "Unconfirmed":
|
|
16
|
+
default:
|
|
17
|
+
return { bg: "bg-bg-grey", text: "text-font-grey", dot: "bg-font-grey" };
|
|
18
|
+
}
|
|
16
19
|
};
|
|
17
|
-
|
|
20
|
+
const colors = getColors();
|
|
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
|
+
});
|
|
18
28
|
};
|
|
19
29
|
export default ControllerStatusLabel;
|
|
20
30
|
//# 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,WAAW,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE;IAChF,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,qBAAqB;oBACzB,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF,KAAK,wBAAwB;oBAC5B,OAAO,EAAE,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gBACxE,KAAK,cAAc;oBAClB,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF,KAAK,aAAa,CAAC;gBACnB;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,MAAM,IAAI,GACT,MAAM,KAAK,wBAAwB;YAClC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,MAAM,KAAK,qBAAqB;gBACjC,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,MAAM,CAAC;QAEZ,OAAO,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAC1F,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,16 +1,9 @@
|
|
|
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";
|
|
6
4
|
const CorporateStatusLabel = (props) => {
|
|
7
5
|
// spec:1863 — CSP: Corporate status label includes unknown status as a fourth option
|
|
8
|
-
|
|
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 }))));
|
|
6
|
+
return observe(() => (React.createElement(DocumentStatusLabel, { className: "corporate-status", editable: props.editable, status: props.status, list: [{ name: "Live" }, { name: "Dormant" }, { name: "Closed" }], onChange: props.onChange })));
|
|
14
7
|
};
|
|
15
8
|
export default CorporateStatusLabel;
|
|
16
9
|
//# 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;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAE1F,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,qFAAqF;IACrF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,IACnB,SAAS,EAAC,kBAAkB,EAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EACjE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,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/member-register/components/MemberTableList/TableCellDetail.js
ADDED
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
import { faEllipsisVerticalSolid, faEnvelopeSolid, faPhoneSolid, faBarsProgressSolid, faUserGroupSolid, faSignalSolid, 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 classnames from "classnames";
|
|
8
|
+
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
|
|
9
|
+
import React from "react";
|
|
10
|
+
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
11
|
+
import TagView from "@voplus/morpho-org/es/modules/tag/TagView/TagView2";
|
|
12
|
+
import { useMemberStore, useMember } from "../../../../../../data/member";
|
|
13
|
+
import MemberStatusLabel from "../../controls/MemberStatusLabel/MemberStatusLabel2";
|
|
14
|
+
export const columnsSimpleList = [
|
|
15
|
+
{
|
|
16
|
+
title: (React.createElement(React.Fragment, null,
|
|
17
|
+
React.createElement(FAIcon, { icon: faUserGroupSolid }),
|
|
18
|
+
" Controller Details")),
|
|
19
|
+
dataIndex: "details",
|
|
20
|
+
width: "40%",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: (React.createElement(React.Fragment, null,
|
|
24
|
+
React.createElement(FAIcon, { icon: faSignalSolid }),
|
|
25
|
+
" Status")),
|
|
26
|
+
dataIndex: "status",
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
title: (React.createElement(React.Fragment, null,
|
|
30
|
+
React.createElement(FAIcon, { icon: faCertificateSolid }),
|
|
31
|
+
" Identity Status")),
|
|
32
|
+
dataIndex: "identity",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
title: " ",
|
|
36
|
+
dataIndex: "menu",
|
|
37
|
+
width: "72px",
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
export const columnsListDetail = [
|
|
41
|
+
{
|
|
42
|
+
title: (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement(FAIcon, { icon: faUserGroupSolid }),
|
|
44
|
+
" Members Name")),
|
|
45
|
+
dataIndex: "name",
|
|
46
|
+
width: "32%",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement(FAIcon, { icon: faBarsProgressSolid }),
|
|
51
|
+
" Tags")),
|
|
52
|
+
dataIndex: "tags",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
title: (React.createElement(React.Fragment, null,
|
|
56
|
+
React.createElement(FAIcon, { icon: faSignalSolid }),
|
|
57
|
+
" Status")),
|
|
58
|
+
dataIndex: "status",
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
title: (React.createElement(React.Fragment, null,
|
|
62
|
+
React.createElement(FAIcon, { icon: faCertificateSolid }),
|
|
63
|
+
" Identity Status")),
|
|
64
|
+
dataIndex: "identity",
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
title: " ",
|
|
68
|
+
dataIndex: "menu",
|
|
69
|
+
width: "72px",
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
const TableCellDetail = (props) => {
|
|
73
|
+
var _a;
|
|
74
|
+
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
75
|
+
const isAside = (_a = useAsideContentContext()) === null || _a === void 0 ? void 0 : _a.asideContent;
|
|
76
|
+
const store = useMemberStore();
|
|
77
|
+
return observe(() => {
|
|
78
|
+
const member = useMember(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
79
|
+
const renderContent = () => {
|
|
80
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
81
|
+
switch (dataIndex) {
|
|
82
|
+
case "name":
|
|
83
|
+
return (React.createElement("div", { className: "flex items-center gap-3.5" },
|
|
84
|
+
React.createElement(UnitAvatar, { unit: member.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
|
|
85
|
+
React.createElement("div", { className: "flex flex-col gap-1" },
|
|
86
|
+
((_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, member.identity.fullName)) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null,
|
|
87
|
+
React.createElement("div", { className: "flex items-center gap-4 text-xs text-font-grey font-medium" },
|
|
88
|
+
React.createElement("div", null,
|
|
89
|
+
React.createElement(FAIcon, { icon: faEnvelopeSolid }),
|
|
90
|
+
member.email || ((_b = member.contact) === null || _b === void 0 ? void 0 : _b.email) ? (React.createElement("span", { className: "ml-1" }, member.email || ((_c = member.contact) === null || _c === void 0 ? void 0 : _c.email))) : (" -")),
|
|
91
|
+
React.createElement("div", null,
|
|
92
|
+
React.createElement(FAIcon, { icon: faPhoneSolid }),
|
|
93
|
+
member.phone || ((_d = member.contact) === null || _d === void 0 ? void 0 : _d.phone) ? (React.createElement("span", { className: "ml-1" }, member.phone || ((_e = member.contact) === null || _e === void 0 ? void 0 : _e.phone))) : (" -"))))));
|
|
94
|
+
case "details":
|
|
95
|
+
return (React.createElement("div", { className: "flex items-center gap-3.5" },
|
|
96
|
+
React.createElement(UnitAvatar, { unit: member.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
|
|
97
|
+
React.createElement("div", { className: "flex flex-col gap-1" },
|
|
98
|
+
((_f = member.identity) === null || _f === void 0 ? void 0 : _f.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, member.identity.fullName)) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null,
|
|
99
|
+
React.createElement("div", { className: "flex items-center gap-2 text-xs text-font-grey font-medium" }, "tags"))));
|
|
100
|
+
case "identity":
|
|
101
|
+
return ((_g = member.identity) === null || _g === void 0 ? void 0 : _g.id) ? (React.createElement(IdentityStatus, { id: member.identity.id, className: isAside ? "gap-2.5!" : undefined })) : null;
|
|
102
|
+
case "status":
|
|
103
|
+
return (React.createElement("div", { style: { display: "flex" } },
|
|
104
|
+
React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
|
|
105
|
+
"need-identity": !member.identity,
|
|
106
|
+
}), status: !member.identity ? "Need Identity" : member.status })));
|
|
107
|
+
case "tags":
|
|
108
|
+
return ((_h = member.tags) === null || _h === void 0 ? void 0 : _h.length) ? (React.createElement(TagView, { id: record.id, tags: member.tags, editable: false, items: store.items, maxCount: 1, className: "[&_.ant-tag]:h-5! [&_.ant-tag]:mr-1.5! [&_.ant-tag]:mt-0! [&_.ant-tag]:px-2.5! [&_.ant-tag]:text-[10px]! [&_.ant-tag]:font-bold! [&_.ant-tag]:text-font-primary! [&_.ant-tag]:bg-bg-grey! [&_.ant-tag]:border-border! [&_.maxCount]:text-font-primary! [&_.maxCount]:text-xs! [&_.maxCount]:mr-0!" })) : ("__");
|
|
109
|
+
case "menu":
|
|
110
|
+
return (React.createElement("div", { className: "opacity-0 group-hover/row:opacity-100 transition-opacity" },
|
|
111
|
+
React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
112
|
+
React.createElement(Open, { url: `/member/${record.id}` }),
|
|
113
|
+
React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_j = member.contact) === null || _j === void 0 ? void 0 : _j.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
|
|
114
|
+
data: { ContactId: unitId },
|
|
115
|
+
error: "message",
|
|
116
|
+
}) }))));
|
|
117
|
+
default:
|
|
118
|
+
return children;
|
|
119
|
+
}
|
|
120
|
+
};
|
|
121
|
+
return React.createElement("td", { ...restProps }, renderContent());
|
|
122
|
+
});
|
|
123
|
+
};
|
|
124
|
+
export default TableCellDetail;
|
|
125
|
+
//# sourceMappingURL=TableCellDetail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,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,oDAAo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Q,EAAE,KAAK;4BACtC,oBAAC,IAAI,IAAC,GAAG,EAAE,WAAW,MAAM,CAAC,EAAE,EAAE,GAAI;4BACrC,oBAAC,iBAAiB,IACjB,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,KAAK,EAAC,aAAa,EACnB,MAAM,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAC1B,KAAK,EAAE,KAAK,EACZ,UAAU,QACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,uBAAuB,GAAI,EAC/C,eAAe,EAAE,CAAC,MAAM,EAAE,EAAE,CAC3B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;oCACrB,IAAI,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"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
declare const MemberTableList: (props: React.ComponentProps<typeof MemberTableListCard>) => React.JSX.Element;
|
|
2
|
+
import { MemberListProps } from "../MemberTableListCard";
|
|
3
|
+
declare const MemberTableList: (props: MemberListProps) => React.JSX.Element;
|
|
5
4
|
export default MemberTableList;
|