@voplus/morpho-csp 6.0.117 → 6.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components/CorporateNavMenu/CorporateNavMenu.js +7 -54
- package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -1
- package/es/components/IdentityStatus/IdentityStatus2.d.ts +6 -0
- package/es/components/IdentityStatus/IdentityStatus2.js +35 -0
- package/es/components/IdentityStatus/IdentityStatus2.js.map +1 -0
- package/es/components/IdentityStatus/index.less +12 -0
- package/es/data/controller/interfaces.d.ts +2 -1
- package/es/data/corporate/interfaces.d.ts +8 -1
- package/es/modules/corporate/company/components/CapitalCard/index.less +1 -1
- package/es/modules/corporate/company/components/CompanyPageHead/index.d.ts +2 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.js +8 -4
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +4 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +29 -21
- 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 +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +13 -13
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +12 -0
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +15 -8
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +8 -2
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +15 -8
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +8 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +0 -1
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +5 -18
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/RegisteresPage/index.d.ts +11 -0
- package/es/modules/corporate/company/pages/RegisteresPage/index.js +114 -0
- package/es/modules/corporate/company/pages/RegisteresPage/index.js.map +1 -0
- package/es/modules/corporate/company/pages/{RegistersPage → RegisteresPage}/index.less +10 -8
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +3 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.d.ts +6 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js +51 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js +56 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.less +161 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.d.ts +8 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +88 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.less +20 -0
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.less +4 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js +9 -34
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.less +2 -7
- package/package.json +1 -1
- package/es/modules/corporate/company/pages/RegistersPage/index.d.ts +0 -4
- package/es/modules/corporate/company/pages/RegistersPage/index.js +0 -41
- package/es/modules/corporate/company/pages/RegistersPage/index.js.map +0 -1
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { faUserEdit,
|
|
3
|
-
import { Menu,
|
|
2
|
+
import { faUserEdit, faTableRows, faChartNetwork, faFolder, faScrollOld, faShareNodes, faVrCardboard, faGear, faBell, } from "@fortawesome/pro-solid-svg-icons";
|
|
3
|
+
import { Menu, Badge } from "antd";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import NavMenuItem from "./NavMenuItem";
|
|
7
6
|
import { useCorporateStore, useCorporate } from "../../data/corporate";
|
|
8
7
|
import { State } from "./state";
|
|
9
8
|
import { useLayout } from "@voplus/morpho-data";
|
|
@@ -20,7 +19,6 @@ const CorporateNavMenu = (props) => {
|
|
|
20
19
|
state.update(corporate);
|
|
21
20
|
}, [corporate.registers]);
|
|
22
21
|
return observe(() => {
|
|
23
|
-
var _a;
|
|
24
22
|
return (React.createElement(Menu, { className: "company-menu", mode: "inline", defaultSelectedKeys: defaultSelectedKeys, onClick: ({ key }) => onClick(key), items: [
|
|
25
23
|
{
|
|
26
24
|
key: "/dashboard",
|
|
@@ -59,33 +57,10 @@ const CorporateNavMenu = (props) => {
|
|
|
59
57
|
type: "group",
|
|
60
58
|
children: [
|
|
61
59
|
{
|
|
62
|
-
key: "
|
|
63
|
-
label: "Registeres",
|
|
60
|
+
key: "/registeres",
|
|
64
61
|
icon: React.createElement(FAIcon, { icon: faUserEdit }),
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
return {
|
|
68
|
-
key: `/registers/${r.type}`,
|
|
69
|
-
label: (React.createElement(React.Fragment, null,
|
|
70
|
-
React.createElement("span", { className: "item-name" }, r.type.replace(/.(?=[A-Z])/g, "$& ")),
|
|
71
|
-
React.createElement(Badge, { count: r.type === "OfficersRegister"
|
|
72
|
-
? totals.officers.total
|
|
73
|
-
: r.type === "MembersRegister"
|
|
74
|
-
? totals.members.total
|
|
75
|
-
: r.type === "ControllerRegister"
|
|
76
|
-
? totals.controllers.total
|
|
77
|
-
: r.type === "ShareTransactionsRegister"
|
|
78
|
-
? totals.shareTransactions.total
|
|
79
|
-
: null }))),
|
|
80
|
-
icon: getIcon(r.type),
|
|
81
|
-
className: `/registers/${r.type}`,
|
|
82
|
-
};
|
|
83
|
-
}),
|
|
84
|
-
{
|
|
85
|
-
key: "add",
|
|
86
|
-
label: observe(() => (React.createElement(NavMenuItem, { id: id, addRegister: state.addRegister, onAdd: onAdd }))),
|
|
87
|
-
},
|
|
88
|
-
],
|
|
62
|
+
label: "Registeres",
|
|
63
|
+
className: `${classId}-registeres`,
|
|
89
64
|
},
|
|
90
65
|
...[
|
|
91
66
|
showShareClass
|
|
@@ -103,8 +78,8 @@ const CorporateNavMenu = (props) => {
|
|
|
103
78
|
key: "/filings",
|
|
104
79
|
icon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
105
80
|
label: (React.createElement(React.Fragment, null,
|
|
106
|
-
React.createElement("span", { className: "item-name" }, "
|
|
107
|
-
React.createElement(Badge, { count: totals.
|
|
81
|
+
React.createElement("span", { className: "item-name" }, "Filing Years"),
|
|
82
|
+
React.createElement(Badge, { count: totals.filingYears.total }))),
|
|
108
83
|
className: `${classId}-filings`,
|
|
109
84
|
},
|
|
110
85
|
{
|
|
@@ -119,29 +94,7 @@ const CorporateNavMenu = (props) => {
|
|
|
119
94
|
},
|
|
120
95
|
] }));
|
|
121
96
|
});
|
|
122
|
-
function getIcon(type) {
|
|
123
|
-
switch (type) {
|
|
124
|
-
case "ShareTransactionsRegister":
|
|
125
|
-
return React.createElement(FAIcon, { icon: faHandsUsd });
|
|
126
|
-
case "OfficersRegister":
|
|
127
|
-
return React.createElement(FAIcon, { icon: faUserTag });
|
|
128
|
-
case "MembersRegister":
|
|
129
|
-
return React.createElement(FAIcon, { icon: faUsers });
|
|
130
|
-
case "ControllerRegister":
|
|
131
|
-
return React.createElement(FAIcon, { icon: faUserVneck });
|
|
132
|
-
default:
|
|
133
|
-
return React.createElement(FAIcon, { icon: faRegistered });
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
async function onAdd(name) {
|
|
137
|
-
const data = await store.register(id, name, {
|
|
138
|
-
error: (error) => message.error(error.message),
|
|
139
|
-
});
|
|
140
|
-
state.update(data);
|
|
141
|
-
}
|
|
142
97
|
function onClick(key) {
|
|
143
|
-
if (key === "Registeres" || key === "add")
|
|
144
|
-
return;
|
|
145
98
|
layout.history.push(`${url}${key}`);
|
|
146
99
|
}
|
|
147
100
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CorporateNavMenu.js","sourceRoot":"","sources":["../../../src/components/CorporateNavMenu/CorporateNavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAA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C,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,GAAW;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { runInAction } from "mobx";
|
|
4
|
+
import styles from "./index.less";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { faCircleCheck, faBan } from "@fortawesome/pro-solid-svg-icons";
|
|
7
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
8
|
+
import { useVerificationStore } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
|
|
9
|
+
import { State } from "../../modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/state";
|
|
10
|
+
const IdentityStatus2 = (props) => {
|
|
11
|
+
const verifyStore = useVerificationStore();
|
|
12
|
+
const [state] = useState(new State(verifyStore));
|
|
13
|
+
useEffect(() => {
|
|
14
|
+
runInAction(() => {
|
|
15
|
+
state.id = props.id;
|
|
16
|
+
state.load();
|
|
17
|
+
});
|
|
18
|
+
}, [props.id]);
|
|
19
|
+
return observe(() => {
|
|
20
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
21
|
+
return (React.createElement("div", { className: classnames(styles["identity-verification"], props.className) },
|
|
22
|
+
React.createElement("span", { className: classnames("verification", {
|
|
23
|
+
checked: (_b = (_a = state.verification) === null || _a === void 0 ? void 0 : _a.verifiedBy) === null || _b === void 0 ? void 0 : _b.id,
|
|
24
|
+
}) },
|
|
25
|
+
React.createElement(FAIcon, { icon: ((_d = (_c = state.verification) === null || _c === void 0 ? void 0 : _c.verifiedBy) === null || _d === void 0 ? void 0 : _d.id) ? faCircleCheck : faBan }),
|
|
26
|
+
" Verified"),
|
|
27
|
+
React.createElement("span", { className: classnames("verification", {
|
|
28
|
+
checked: (_f = (_e = state.verification) === null || _e === void 0 ? void 0 : _e.confirmedBy) === null || _f === void 0 ? void 0 : _f.id,
|
|
29
|
+
}) },
|
|
30
|
+
React.createElement(FAIcon, { icon: ((_h = (_g = state.verification) === null || _g === void 0 ? void 0 : _g.confirmedBy) === null || _h === void 0 ? void 0 : _h.id) ? faCircleCheck : faBan }),
|
|
31
|
+
" Confirm")));
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
export default IdentityStatus2;
|
|
35
|
+
//# sourceMappingURL=IdentityStatus2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityStatus2.js","sourceRoot":"","sources":["../../../src/components/IdentityStatus/IdentityStatus2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sFAAsF,CAAC;AAC5H,OAAO,EAAE,KAAK,EAAE,MAAM,yGAAyG,CAAC;AAEhI,MAAM,eAAe,GAAG,CAAC,KAAyC,EAAE,EAAE;IACrE,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;YACpB,KAAK,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;YAC3E,8BACC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE;oBACrC,OAAO,EAAE,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,0CAAE,EAAE;iBAC3C,CAAC;gBAEF,oBAAC,MAAM,IAAC,IAAI,EAAE,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,0CAAE,EAAE,EAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,GAAI;4BACtE;YACP,8BACC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE;oBACrC,OAAO,EAAE,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,0CAAE,EAAE;iBAC5C,CAAC;gBAEF,oBAAC,MAAM,IAAC,IAAI,EAAE,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,0CAAE,EAAE,EAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,KAAK,GAAI;2BACvE,CACF,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAddress } from "@voplus/morpho-org";
|
|
2
2
|
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
import { INode } from "@voplus/morpho-document-core";
|
|
3
|
+
import { INode, ITag } from "@voplus/morpho-document-core";
|
|
4
4
|
export interface IController extends ILoadable, INode {
|
|
5
5
|
/** id of corporate */
|
|
6
6
|
id: string;
|
|
@@ -28,4 +28,5 @@ export interface IController extends ILoadable, INode {
|
|
|
28
28
|
email?: string;
|
|
29
29
|
phone?: string;
|
|
30
30
|
lastNotice?: string;
|
|
31
|
+
tags?: ITag[];
|
|
31
32
|
}
|
|
@@ -66,6 +66,11 @@ export interface ICorporate extends ILoadable, INode {
|
|
|
66
66
|
registerOfMembersReport?: ICompanyMember[];
|
|
67
67
|
registerOfControllersReport?: IController[];
|
|
68
68
|
totals: Itotal;
|
|
69
|
+
notificationLayout?: {
|
|
70
|
+
id: string;
|
|
71
|
+
name: string;
|
|
72
|
+
body: string;
|
|
73
|
+
};
|
|
69
74
|
}
|
|
70
75
|
export interface Itotal {
|
|
71
76
|
controllers: {
|
|
@@ -75,9 +80,11 @@ export interface Itotal {
|
|
|
75
80
|
total: number;
|
|
76
81
|
};
|
|
77
82
|
filings: {
|
|
78
|
-
total: number;
|
|
79
83
|
due: number;
|
|
80
84
|
};
|
|
85
|
+
filingYears: {
|
|
86
|
+
total: number;
|
|
87
|
+
};
|
|
81
88
|
members: {
|
|
82
89
|
total: number;
|
|
83
90
|
active: number;
|
|
@@ -33,14 +33,18 @@ const CompanyPageHead = (props) => {
|
|
|
33
33
|
{
|
|
34
34
|
icon: React.createElement(FAIcon, { icon: faUserGroup }),
|
|
35
35
|
figure: corporate.totals.members.active,
|
|
36
|
-
name: "Members",
|
|
37
|
-
url:
|
|
36
|
+
name: "Active Members",
|
|
37
|
+
url: props.membersRegisterId
|
|
38
|
+
? `/corporates/unit/${unitId}/registeres/MembersRegister`
|
|
39
|
+
: undefined,
|
|
38
40
|
},
|
|
39
41
|
{
|
|
40
42
|
icon: React.createElement(FAIcon, { icon: faUserTie }),
|
|
41
43
|
figure: corporate.totals.officers.active,
|
|
42
|
-
name: "Officers",
|
|
43
|
-
url:
|
|
44
|
+
name: "Active Officers",
|
|
45
|
+
url: props.officersRegisterId
|
|
46
|
+
? `/corporates/unit/${unitId}/registeres/OfficersRegister`
|
|
47
|
+
: undefined,
|
|
44
48
|
},
|
|
45
49
|
]
|
|
46
50
|
: undefined })));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyPageHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACN,WAAW,EACX,WAAW,EACX,SAAS,EACT,kBAAkB,GAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,eAAe,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyPageHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,O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,GAAI,GAAI,CACnF,EAEJ,WAAW,EAAE;;YAAc,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAI,EACtF,MAAM,EACL,UAAU;YACT,CAAC,CAAC;gBACA;oBACC,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;oBACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG;oBACpC,IAAI,EAAE,aAAa;oBACnB,GAAG,EAAE,oBAAoB,MAAM,UAAU;iBACzC;gBACD;oBACC,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;oBACnC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM;oBACvC,IAAI,EAAE,gBAAgB;oBACtB,GAAG,EAAE,KAAK,CAAC,iBAAiB;wBAC3B,CAAC,CAAC,oBAAoB,MAAM,6BAA6B;wBACzD,CAAC,CAAC,SAAS;iBACZ;gBACD;oBACC,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;oBACjC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM;oBACxC,IAAI,EAAE,iBAAiB;oBACvB,GAAG,EAAE,KAAK,CAAC,kBAAkB;wBAC5B,CAAC,CAAC,oBAAoB,MAAM,8BAA8B;wBAC1D,CAAC,CAAC,SAAS;iBACZ;aACA;YACH,CAAC,CAAC,SAAS,GAEZ,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress,
|
|
1
|
+
import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faUserGroup, faCircleCheck, } from "@fortawesome/pro-solid-svg-icons";
|
|
2
2
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
3
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
4
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
@@ -6,30 +6,22 @@ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
8
8
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
9
|
+
import { useControllerStore, useController } from "../../../../../../data/controller";
|
|
9
10
|
import classnames from "classnames";
|
|
10
11
|
import IdentityStatus from "../../../../../../components/IdentityStatus";
|
|
11
12
|
import React from "react";
|
|
13
|
+
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
14
|
+
import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
|
|
12
15
|
import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
|
|
13
16
|
import ControllerPropertiesView from "../ControllerPropertiesView";
|
|
14
17
|
import "./index.less";
|
|
15
18
|
export const columnsList = [
|
|
16
19
|
{
|
|
17
20
|
title: (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(FAIcon, { icon:
|
|
21
|
+
React.createElement(FAIcon, { icon: faUserGroup }),
|
|
19
22
|
" Controllers Name")),
|
|
20
23
|
dataIndex: "name",
|
|
21
|
-
|
|
22
|
-
{
|
|
23
|
-
title: (React.createElement(React.Fragment, null,
|
|
24
|
-
React.createElement(FAIcon, { icon: faEnvelope }),
|
|
25
|
-
" Email")),
|
|
26
|
-
dataIndex: "email",
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
title: (React.createElement(React.Fragment, null,
|
|
30
|
-
React.createElement(FAIcon, { icon: faPhone }),
|
|
31
|
-
" Contact Number")),
|
|
32
|
-
dataIndex: "phone",
|
|
24
|
+
width: "32%",
|
|
33
25
|
},
|
|
34
26
|
{
|
|
35
27
|
title: (React.createElement(React.Fragment, null,
|
|
@@ -43,6 +35,12 @@ export const columnsList = [
|
|
|
43
35
|
" Status")),
|
|
44
36
|
dataIndex: "status",
|
|
45
37
|
},
|
|
38
|
+
{
|
|
39
|
+
title: (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement(FAIcon, { icon: faBarsProgress }),
|
|
41
|
+
" Tags")),
|
|
42
|
+
dataIndex: "tags",
|
|
43
|
+
},
|
|
46
44
|
{
|
|
47
45
|
title: " ",
|
|
48
46
|
dataIndex: "menu",
|
|
@@ -51,18 +49,28 @@ export const columnsList = [
|
|
|
51
49
|
];
|
|
52
50
|
const TableCell = (props) => {
|
|
53
51
|
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
52
|
+
const store = useControllerStore();
|
|
54
53
|
return observe(() => {
|
|
55
|
-
var _a, _b, _c, _d;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
55
|
+
const controller = useController(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
56
56
|
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(ItemFunction, { className: "controller-table-item-info", onClick: props.onClick, propertiesView: React.createElement(ControllerPropertiesView, { id: record.id }) },
|
|
57
57
|
React.createElement(UnitAvatar, { unit: record.contact }),
|
|
58
|
-
React.createElement("div", { className: "controller-table-item-name" },
|
|
58
|
+
React.createElement("div", { className: "controller-table-item-name" },
|
|
59
|
+
((_a = record.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (record.identity.fullName) : record.contact ? (React.createElement(UnitNameNoteAlert, { id: record.contact.id, name: record.contact.name })) : null,
|
|
60
|
+
React.createElement("div", { className: "controller-table-item-contact" },
|
|
61
|
+
((_b = record.contact) === null || _b === void 0 ? void 0 : _b.email) && (React.createElement("div", null,
|
|
62
|
+
React.createElement("span", null,
|
|
63
|
+
React.createElement(FAIcon, { icon: faEnvelope })), (_c = record.contact) === null || _c === void 0 ? void 0 :
|
|
64
|
+
_c.email)),
|
|
65
|
+
((_d = record.contact) === null || _d === void 0 ? void 0 : _d.phone) && (React.createElement("div", null,
|
|
66
|
+
React.createElement("span", null,
|
|
67
|
+
React.createElement(FAIcon, { icon: faPhone })), (_e = record.contact) === null || _e === void 0 ? void 0 :
|
|
68
|
+
_e.phone)))))) : dataIndex === "identity" ? (React.createElement(IdentityStatus, { id: (_f = record.identity) === null || _f === void 0 ? void 0 : _f.id })) : dataIndex === "status" ? (React.createElement("div", { style: { display: "flex" } },
|
|
59
69
|
React.createElement(ControllerStatusLabel, { className: classnames("controller-table-status-label", {
|
|
60
70
|
"need-identity": !record.identity,
|
|
61
|
-
}), editable: false, status: !record.identity ? "Need Identity Info" : record.confirmationStatus }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
} },
|
|
65
|
-
React.createElement(Open, { size: "middle", url: `/controller/${record.id}` }))) : (children)));
|
|
71
|
+
}), editable: false, status: !record.identity ? "Need Identity Info" : record.confirmationStatus }))) : dataIndex === "tags" ? (React.createElement(TagView, { id: record.id, tags: controller.tags, editable: true, items: store.items })) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
72
|
+
React.createElement(Open, { url: `/controller/${record.id}` }),
|
|
73
|
+
React.createElement(CompanyControllerMenu, { id: record.id, title: "Controller Menu", unitId: (_g = record.contact) === null || _g === void 0 ? void 0 : _g.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))) : (children)));
|
|
66
74
|
});
|
|
67
75
|
};
|
|
68
76
|
export default TableCell;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,qBAAqB,MAAM,sCAAsC,CAAC;AACzE,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;gCAC3B,CACH;QACD,SAAS,EAAE,MAAM;
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OA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AM,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAC1B,KAAK,EAAE,KAAK,EACZ,UAAU,QACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,GACzC,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { ReactNode } from "react";
|
|
2
2
|
import { ControllerListProps } from "../ControllerList";
|
|
3
|
-
import "../../../pages/
|
|
3
|
+
import "../../../pages/RegisteresPage/index.less";
|
|
4
4
|
import "./index.less";
|
|
5
5
|
declare const ControllerTableList: {
|
|
6
6
|
(props: ControllerListProps & {
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { useDeepMemo
|
|
1
|
+
import { useDeepMemo } from "@voplus/morpho-data";
|
|
2
2
|
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
3
3
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
4
4
|
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
@@ -10,13 +10,13 @@ import { Button } from "antd";
|
|
|
10
10
|
import SelectControllerForm from "../SelectControllerForm";
|
|
11
11
|
import React, { useState, useRef, useEffect } from "react";
|
|
12
12
|
import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
|
|
13
|
-
import { useCorporate } from "../../../../../../data/corporate";
|
|
14
13
|
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
15
14
|
import { useControllerListEffect, useControllerStore } from "../../../../../../data/controller";
|
|
16
15
|
import TableCell, { columnsList } from "./TableCell";
|
|
16
|
+
import Scrollbars from "react-custom-scrollbars-2";
|
|
17
17
|
import { State } from "../ControllerList/state";
|
|
18
18
|
import classnames from "classnames";
|
|
19
|
-
import "../../../pages/
|
|
19
|
+
import "../../../pages/RegisteresPage/index.less";
|
|
20
20
|
import "./index.less";
|
|
21
21
|
import dayjs from "dayjs";
|
|
22
22
|
const ControllerTableList = (props) => {
|
|
@@ -26,21 +26,20 @@ const ControllerTableList = (props) => {
|
|
|
26
26
|
const controllerStore = useControllerStore();
|
|
27
27
|
const [height, setHeight] = useState(0);
|
|
28
28
|
const ref = useRef(null);
|
|
29
|
-
const { user } = useApplicationContext();
|
|
30
|
-
const corporate = useCorporate(corporateId !== null && corporateId !== void 0 ? corporateId : "", { includes: "permissions" });
|
|
31
29
|
const state = useDeepMemo(() => new State(), [controllerRegisterId]);
|
|
32
30
|
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
33
31
|
const list = useCreateListDataState({
|
|
34
32
|
filterDefaults: {
|
|
35
33
|
filters: [
|
|
36
34
|
{ c: "ParentNodeId", o: "=", l: "And", v1: controllerRegisterId },
|
|
37
|
-
{
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
35
|
+
// {
|
|
36
|
+
// c: "ConfirmationStatus",
|
|
37
|
+
// o: "contains",
|
|
38
|
+
// v1: JSON.stringify(["Unconfirmed", "ConfirmedController"]),
|
|
39
|
+
// l: "And",
|
|
40
|
+
// },
|
|
43
41
|
],
|
|
42
|
+
includes: "tags",
|
|
44
43
|
},
|
|
45
44
|
}, [controllerRegisterId]);
|
|
46
45
|
const components = {
|
|
@@ -95,8 +94,9 @@ const ControllerTableList = (props) => {
|
|
|
95
94
|
.importController(controllerRegisterId, { error: "message" })
|
|
96
95
|
.then(() => props.onReload && props.onReload()) }, "Import"))), rightExtra: () => (React.createElement(React.Fragment, null,
|
|
97
96
|
React.createElement(AddDropDown2, { btnType: "text", onClick: () => (state.addAble = true) }))) })) },
|
|
98
|
-
React.createElement("div", { ref: ref,
|
|
99
|
-
React.createElement(
|
|
97
|
+
React.createElement("div", { ref: ref, className: "controller-table-list-card" },
|
|
98
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
99
|
+
React.createElement(TableListCard, { tableListProps: { columns: columns, components: components, scrollH: height - 72 }, ...props.tableCardProps }))))),
|
|
100
100
|
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })),
|
|
101
101
|
visible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })))));
|
|
102
102
|
/** 新增controllerItem */
|
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,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,aAAa,MAAM,+CAA+C,CAAC;AAC1E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE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|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
:global {
|
|
2
|
+
.controller-table-list-card {
|
|
3
|
+
height: 100%;
|
|
4
|
+
.tools-card-content .ant-table-wrapper .tool-bar .ant-btn {
|
|
5
|
+
padding: 0;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
2
8
|
.controller-table-item-info {
|
|
3
9
|
color: #5d5d5d;
|
|
4
10
|
font-weight: 500;
|
|
@@ -23,6 +29,12 @@
|
|
|
23
29
|
}
|
|
24
30
|
.controller-table-item-contact {
|
|
25
31
|
color: #868686;
|
|
32
|
+
div {
|
|
33
|
+
display: inline-block;
|
|
34
|
+
&:first-child {
|
|
35
|
+
margin-right: 8px;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
26
38
|
span {
|
|
27
39
|
float: left;
|
|
28
40
|
display: inline-block;
|
|
@@ -2,7 +2,7 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import MemberTableListCard from "../MemberTableListCard";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
|
-
import "../../../pages/
|
|
5
|
+
import "../../../pages/RegisteresPage/index.less";
|
|
6
6
|
const MemberTableList = (props) => {
|
|
7
7
|
return observe(() => (React.createElement("div", { className: "registers-page-item" },
|
|
8
8
|
React.createElement(MemberTableListCard, { corporateId: props.corporateId, membersRegisterId: props.membersRegisterId, tableDetail: true, headerTitle: React.createElement("div", { className: "registers-item-info" },
|
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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,0CAA0C,CAAC;AAElD,MAAM,eAAe,GAAG,CAAC,KAAyD,EAAE,EAAE;IACrF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,qBAAqB;QACnC,oBAAC,mBAAmB,IACnB,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,iBAAiB,EAAE,KAAK,CAAC,iBAAiB,EAC1C,WAAW,QACX,WAAW,EACV,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,6BAAK,SAAS,EAAC,OAAO,4BAA4B;gBAClD,6BAAK,SAAS,EAAC,mBAAmB;;oBAAkB,KAAK,EAAE,CAAC,MAAM,CAAC,aAAa,CAAC,CAAO,CACnF,EAEP,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,4 +1,4 @@
|
|
|
1
|
-
import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress,
|
|
1
|
+
import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faUserGroup, faCircleCheck, } from "@fortawesome/pro-solid-svg-icons";
|
|
2
2
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
3
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
4
4
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
@@ -9,13 +9,15 @@ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAler
|
|
|
9
9
|
import classnames from "classnames";
|
|
10
10
|
import IdentityStatus from "../../../../../../components/IdentityStatus";
|
|
11
11
|
import React from "react";
|
|
12
|
+
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
13
|
+
import { useMemberStore } from "../../../../../../data/member";
|
|
12
14
|
import MemberStatusLabel from "../../controls/MemberStatusLabel";
|
|
13
15
|
import MemberPropertiesView from "../CompanyMemberPropertiesView";
|
|
14
16
|
import "./index.less";
|
|
15
17
|
export const columnsListDetail = [
|
|
16
18
|
{
|
|
17
19
|
title: (React.createElement(React.Fragment, null,
|
|
18
|
-
React.createElement(FAIcon, { icon:
|
|
20
|
+
React.createElement(FAIcon, { icon: faUserGroup }),
|
|
19
21
|
" Members Name")),
|
|
20
22
|
dataIndex: "name",
|
|
21
23
|
},
|
|
@@ -51,18 +53,23 @@ export const columnsListDetail = [
|
|
|
51
53
|
];
|
|
52
54
|
const TableCellDetail = (props) => {
|
|
53
55
|
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
56
|
+
const store = useMemberStore();
|
|
54
57
|
return observe(() => {
|
|
55
|
-
var _a, _b, _c, _d;
|
|
58
|
+
var _a, _b, _c, _d, _e;
|
|
56
59
|
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(ItemFunction, { className: "member-table-item-info", onClick: props.onClick, propertiesView: React.createElement(MemberPropertiesView, { id: record.id }) },
|
|
57
60
|
React.createElement(UnitAvatar, { unit: record.contact }),
|
|
58
61
|
React.createElement("div", { className: "member-table-item-name" }, ((_a = record.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (record.identity.fullName) : record.contact ? (React.createElement(UnitNameNoteAlert, { id: record.contact.id, name: record.contact.name })) : null))) : dataIndex === "email" ? (React.createElement("span", { className: "member-table-item-email" }, (_b = record.contact) === null || _b === void 0 ? void 0 : _b.email)) : dataIndex === "phone" ? (React.createElement("span", { className: "member-table-item-phone" }, (_c = record.contact) === null || _c === void 0 ? void 0 : _c.phone)) : dataIndex === "identity" ? (React.createElement(IdentityStatus, { id: (_d = record.identity) === null || _d === void 0 ? void 0 : _d.id })) : dataIndex === "status" ? (React.createElement("div", { style: { display: "flex" } },
|
|
59
62
|
React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
|
|
60
63
|
"need-identity": !record.identity,
|
|
61
|
-
}), editable: false, status: !record.identity ? "Need Identity Info" : record.status }))) : dataIndex === "menu" ? (React.createElement(ToolBar, {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
}), editable: false, status: !record.identity ? "Need Identity Info" : record.status }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { showMenu: false },
|
|
65
|
+
React.createElement(Open, { url: `/member/${record.id}` }),
|
|
66
|
+
React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_e = record.contact) === null || _e === void 0 ? void 0 : _e.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
|
|
67
|
+
var _a;
|
|
68
|
+
return store.edit(record.id, {
|
|
69
|
+
data: { ContactId: (_a = record.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
70
|
+
error: "message",
|
|
71
|
+
});
|
|
72
|
+
} }))) : (children)));
|
|
66
73
|
});
|
|
67
74
|
};
|
|
68
75
|
export default TableCellDetail;
|