@voplus/morpho-csp 6.0.130 → 6.0.132
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/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js +6 -7
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +23 -24
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +19 -20
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js +1 -3
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +24 -27
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -1
- 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 +57 -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.js +49 -22
- 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 +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/state.d.ts +4 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/state.js +20 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/state.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +1 -3
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +27 -30
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -1
- 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 +69 -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.js +49 -22
- 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 +19 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/state.d.ts +4 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/state.js +20 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/state.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 +11 -6
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.less +40 -6
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.less +10 -2
- package/package.json +1 -1
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Switch, Radio } from "antd";
|
|
2
3
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import
|
|
4
|
-
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
4
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
5
5
|
import { useRiskMatch, useRiskMatchStore } from "../../../../../../data/risk-match";
|
|
6
|
-
import
|
|
6
|
+
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
7
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
8
|
-
import
|
|
9
|
-
import classnames from "classnames";
|
|
8
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
10
9
|
const RiskMatchProperties = (props) => {
|
|
11
10
|
/** 加class name 为了方便做integration tests */
|
|
12
11
|
const classId = "riskMatch-properties";
|
|
13
12
|
const store = useRiskMatchStore();
|
|
14
13
|
const riskMatch = useRiskMatch(props.id);
|
|
15
|
-
return observe(() => (React.createElement("div", { className:
|
|
14
|
+
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
16
15
|
React.createElement("div", { className: "properties-header" },
|
|
17
16
|
React.createElement("div", { className: "title" }, riskMatch.name)),
|
|
18
17
|
React.createElement(Scrollbars, { autoHide: true },
|
|
19
|
-
React.createElement(PropertiesSection, { properties: () => (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(PropertiesSection, { title: "RISK MATCH PROPERTIES", properties: () => (React.createElement(React.Fragment, null,
|
|
20
19
|
React.createElement(Prop, { label: "Create Date", className: classId + "-createDate" },
|
|
21
20
|
React.createElement(UTCShortDate, { value: riskMatch.createDate })),
|
|
22
21
|
React.createElement(Prop, { label: "Channel", className: classId + "-channel" }, "Acuris"),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,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QAAQ,EAAE,QAAQ,GAAI,CACpE;oBACP,oBAAC,IAAI,IAAC,KAAK,EAAC,QAAQ,EAAC,SAAS,EAAE,OAAO,GAAG,SAAS;wBAClD,oBAAC,KAAK,CAAC,KAAK,IAAC,KAAK,EAAE,SAAS,CAAC,MAAM;4BACnC,oBAAC,KAAK,IAAC,KAAK,EAAC,MAAM,WAAa;4BAChC,oBAAC,KAAK,IAAC,KAAK,EAAC,QAAQ,aAAe,CACvB,CACR,CACL,CACH,GACA,CACU,CACR,CACN,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ,CAAC,OAAgB;QACvC,MAAM,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC/E,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js
CHANGED
|
@@ -59,30 +59,29 @@ const TableCell = (props) => {
|
|
|
59
59
|
return observe(() => {
|
|
60
60
|
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
61
61
|
const controller = useController(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
62
|
-
return (React.createElement(
|
|
63
|
-
React.createElement(
|
|
64
|
-
|
|
65
|
-
React.createElement(
|
|
66
|
-
|
|
67
|
-
React.createElement("div",
|
|
68
|
-
|
|
69
|
-
React.createElement(
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
React.createElement(
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
React.createElement(
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
React.createElement(CompanyControllerMenu, { id: record.id, title: "Controller Menu", unitId: (_h = controller.contact) === null || _h === void 0 ? void 0 : _h.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))) : (children))));
|
|
62
|
+
return controller ? (controller.loaded ? (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement("div", { className: "controller-table-item-info" },
|
|
63
|
+
React.createElement(UnitAvatar, { unit: controller.contact }),
|
|
64
|
+
React.createElement("div", { className: "controller-table-item-name" },
|
|
65
|
+
((_a = controller.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (controller.identity.fullName) : controller.contact ? (React.createElement(UnitNameNoteAlert, { id: controller.contact.id, name: controller.contact.name })) : null,
|
|
66
|
+
React.createElement("div", { className: "controller-table-item-contact" },
|
|
67
|
+
(controller.email || ((_b = controller.contact) === null || _b === void 0 ? void 0 : _b.email)) && (React.createElement("div", null,
|
|
68
|
+
React.createElement("span", null,
|
|
69
|
+
React.createElement(FAIcon, { icon: faEnvelope })),
|
|
70
|
+
controller.email || ((_c = controller.contact) === null || _c === void 0 ? void 0 : _c.email))),
|
|
71
|
+
(controller.phone || ((_d = controller.contact) === null || _d === void 0 ? void 0 : _d.phone)) && (React.createElement("div", null,
|
|
72
|
+
React.createElement("span", null,
|
|
73
|
+
React.createElement(FAIcon, { icon: faPhone })),
|
|
74
|
+
controller.phone || ((_e = controller.contact) === null || _e === void 0 ? void 0 : _e.phone))))))) : dataIndex === "identity" ? (((_f = controller.identity) === null || _f === void 0 ? void 0 : _f.id) ? (React.createElement(IdentityStatus, { id: controller.identity.id })) : null) : dataIndex === "appointment" ? (React.createElement(UTCShortDate, { value: controller.appointment, format: "DD MMM YYYY" })) : dataIndex === "cease" ? (React.createElement(UTCShortDate, { value: controller.cease, format: "DD MMM YYYY" })) : dataIndex === "confirmation" ? (React.createElement(React.Fragment, null,
|
|
75
|
+
React.createElement(Tooltip, { title: controller.confimrationDate ? (React.createElement(React.Fragment, null,
|
|
76
|
+
"Confimration Date:",
|
|
77
|
+
" ",
|
|
78
|
+
React.createElement(UTCShortDate, { value: controller.confimrationDate, format: "DD MMM YYYY" }))) : null, color: "#868686" },
|
|
79
|
+
React.createElement("div", { className: "controller-table-status-label" },
|
|
80
|
+
React.createElement(ControllerStatusLabel, { className: classnames({ "need-identity": !controller.identity }), status: !controller.identity ? "Need Identity" : controller.confirmationStatus }))))) : dataIndex === "tags" ? (React.createElement(React.Fragment, null,
|
|
81
|
+
((_g = controller.identity) === null || _g === void 0 ? void 0 : _g.id) ? (React.createElement(IdentityStatus, { id: controller.identity.id, className: "controller-table-item-identity" })) : null,
|
|
82
|
+
React.createElement(TagView, { id: record.id, tags: controller.tags, editable: false, items: store.items, maxCount: 1 }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
83
|
+
React.createElement(Open, { url: `/controller/${record.id}` }),
|
|
84
|
+
React.createElement(CompanyControllerMenu, { id: record.id, title: "Controller Menu", unitId: (_h = controller.contact) === null || _h === void 0 ? void 0 : _h.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))) : (children))) : (React.createElement(Skeleton, { active: true, loading: true }))) : null;
|
|
86
85
|
});
|
|
87
86
|
};
|
|
88
87
|
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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,cAAc,GACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,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AAE;IAChC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtE,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3F,OAAO,
|
|
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,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,WAAW,EACX,cAAc,GACd,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,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,6DAA6D,CAAC;AACzF,OAAO,OAAO,MAAM,wDAAwD,CAAC;AAC7E,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,6DAA6D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AAU,CAAC,QAAQ,CAAC,EAAE,EAC1B,SAAS,EAAC,gCAAgC,GACzC,CACF,CAAC,CAAC,CAAC,IAAI;YACR,oBAAC,OAAO,IACP,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,IAAI,EAAE,UAAU,CAAC,IAAI,EACrB,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,GACV,CACA,CACH,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,oBAAC,OAAO,IAAC,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACtC,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,MAAM,CAAC,EAAE,EAAE,GAAI;YACzC,oBAAC,qBAAqB,IACrB,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,KAAK,EAAC,iBAAiB,EACvB,MAAM,EAAE,MAAA,UAAU,CAAC,OAAO,0CAAE,EAAE,EAC9B,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,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,SAAG,CAC3B,CACD,CAAC,CAAC,CAAC,IAAI,CAAC;IACV,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -39,26 +39,25 @@ const TableCellSimple = (props) => {
|
|
|
39
39
|
return observe(() => {
|
|
40
40
|
var _a, _b, _c;
|
|
41
41
|
const controller = useController(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
42
|
-
return (React.createElement(
|
|
43
|
-
React.createElement("
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
React.createElement(
|
|
50
|
-
|
|
51
|
-
React.createElement("
|
|
52
|
-
|
|
53
|
-
React.createElement(
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
React.createElement(
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
React.createElement(CompanyControllerMenu, { id: record.id, title: "Controller Menu", unitId: (_c = controller.contact) === null || _c === void 0 ? void 0 : _c.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))) : (children))));
|
|
42
|
+
return controller ? (controller.loaded ? (React.createElement("td", { ...restProps }, dataIndex === "details" ? (React.createElement("div", { className: "controller-table-item-details" },
|
|
43
|
+
React.createElement("div", null, ((_a = controller.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (controller.identity.fullName) : controller.contact ? (React.createElement(UnitNameNoteAlert, { id: controller.contact.id, name: controller.contact.name })) : null),
|
|
44
|
+
React.createElement(Tooltip, { title: controller.confimrationDate ? (React.createElement(React.Fragment, null,
|
|
45
|
+
"Confimration Date:",
|
|
46
|
+
" ",
|
|
47
|
+
React.createElement(UTCShortDate, { value: controller.confimrationDate, format: "DD MMM YYYY" }))) : null, color: "#868686" },
|
|
48
|
+
React.createElement("div", { className: "controller-table-status-label" },
|
|
49
|
+
React.createElement(ControllerStatusLabel, { className: classnames({ "need-identity": !controller.identity }), status: !controller.identity ? "Need Identity" : controller.confirmationStatus }))),
|
|
50
|
+
React.createElement("div", { className: "controller-table-item-date" },
|
|
51
|
+
controller.appointment && (React.createElement(Tooltip, { title: "Appointment Date", color: "#868686", className: "appointment" },
|
|
52
|
+
React.createElement("span", { className: "date-icon" },
|
|
53
|
+
React.createElement(FAIcon, { icon: faCalendarCheck })),
|
|
54
|
+
React.createElement(UTCShortDate, { value: controller.appointment, format: "DD MMM YYYY" }))),
|
|
55
|
+
controller.cease && (React.createElement(Tooltip, { title: "Cease Date", color: "#868686" },
|
|
56
|
+
React.createElement("span", { className: "date-icon" },
|
|
57
|
+
React.createElement(FAIcon, { icon: faCalendarDays })),
|
|
58
|
+
React.createElement(UTCShortDate, { value: controller.cease, format: "DD MMM YYYY" })))))) : dataIndex === "identity" ? (((_b = controller.identity) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(IdentityStatus, { id: controller.identity.id })) : null) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
59
|
+
React.createElement(Open, { url: `/controller/${record.id}` }),
|
|
60
|
+
React.createElement(CompanyControllerMenu, { id: record.id, title: "Controller Menu", unitId: (_c = controller.contact) === null || _c === void 0 ? void 0 : _c.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) }))) : (children))) : (React.createElement(Skeleton, { active: true, loading: true }))) : null;
|
|
62
61
|
});
|
|
63
62
|
};
|
|
64
63
|
export default TableCellSimple;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellSimple.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAAe,GACf,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,cAAc,MAAM,6DAA6D,CAAC;AACzF,OAAO,qBAAqB,MAAM,uCAAuC,CAAC;AAC1E,OAAO,qBAAqB,MAAM,6DAA6D,CAAC;AAChG,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;kCAC3B,CACH;QACD,SAAS,EAAE,SAAS;QACpB,gBAAgB;KAChB;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,cAAc,GAAI;+BAC9B,CACH;QACD,SAAS,EAAE,UAAU;KACrB;IACD;QACC,KAAK,EAAE,GAAG;QACV,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,MAAM;KACb;CACD,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAU,EAAE,EAAE;IACtC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,SAAS,EAAE,GAAG,KAAK,CAAC;IAEtE,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE;;QACnB,MAAM,UAAU,GAAG,aAAa,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;QAE3F,OAAO,
|
|
1
|
+
{"version":3,"file":"TableCellSimple.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,kBAAkB,EAClB,cAAc,EACd,WAAW,EACX,cAAc,EACd,eAA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C9B,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,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,SAAG,CAC3B,CACD,CAAC,CAAC,CAAC,IAAI,CAAC;IACV,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js
CHANGED
|
@@ -2,7 +2,6 @@ import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faReceipt, faT
|
|
|
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";
|
|
5
|
-
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
8
7
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
@@ -11,7 +10,6 @@ import React from "react";
|
|
|
11
10
|
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
12
11
|
import { useMemberStore } from "../../../../../../data/member";
|
|
13
12
|
import MemberStatusLabel from "../../controls/MemberStatusLabel";
|
|
14
|
-
import MemberQuickViewDialog from "../CompanyMemberQuickView";
|
|
15
13
|
import "./index.less";
|
|
16
14
|
export const columnsList = [
|
|
17
15
|
{
|
|
@@ -45,7 +43,7 @@ const TableCell = (props) => {
|
|
|
45
43
|
const store = useMemberStore();
|
|
46
44
|
return observe(() => {
|
|
47
45
|
var _a, _b, _c, _d, _e, _f;
|
|
48
|
-
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(
|
|
46
|
+
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement("div", { className: "member-table-item-info" },
|
|
49
47
|
React.createElement(UnitAvatar, { unit: record.contact }),
|
|
50
48
|
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 === "contact" ? (React.createElement("div", { className: "member-table-item-contact" },
|
|
51
49
|
((_b = record.contact) === null || _b === void 0 ? void 0 : _b.email) && (React.createElement("div", null,
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,WAAW,GACX,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,
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,kBAAkB,EAClB,UAAU,EACV,OAAO,EACP,cAAc,EACd,SAAS,EACT,WAAW,GACX,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qD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AAQ,CAAC,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,GAC9D,CACG,CACN,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;YACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,WAAW,MAAM,CAAC,EAAE,EAAE,GAAI;YACrC,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,kBAAkB,GAAI,EAC1C,eAAe,EAAE,GAAG,EAAE;;oBACrB,OAAA,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;wBACrB,IAAI,EAAE,EAAE,SAAS,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAAE;wBACvC,KAAK,EAAE,SAAS;qBAChB,CAAC,CAAA;iBAAA,GAEF,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -2,7 +2,6 @@ import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faUserGroup, f
|
|
|
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";
|
|
5
|
-
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
8
7
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
@@ -14,7 +13,6 @@ import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
|
14
13
|
import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
|
|
15
14
|
import { useMemberStore, useMember } from "../../../../../../data/member";
|
|
16
15
|
import MemberStatusLabel from "../../controls/MemberStatusLabel/MemberStatusLabel2";
|
|
17
|
-
import MemberPropertiesView from "../CompanyMemberPropertiesView";
|
|
18
16
|
import "./index.less";
|
|
19
17
|
export const columnsListDetail = [
|
|
20
18
|
{
|
|
@@ -54,31 +52,30 @@ const TableCellDetail = (props) => {
|
|
|
54
52
|
return observe(() => {
|
|
55
53
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
56
54
|
const member = useMember(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
57
|
-
return
|
|
58
|
-
React.createElement(
|
|
59
|
-
|
|
60
|
-
React.createElement(
|
|
61
|
-
|
|
62
|
-
React.createElement("div",
|
|
63
|
-
|
|
64
|
-
React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
React.createElement(
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
} }))) : (children))));
|
|
55
|
+
return member ? ((member === null || member === void 0 ? void 0 : member.loaded) ? (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement("div", { className: "member-table-item-info" },
|
|
56
|
+
React.createElement(UnitAvatar, { unit: member.contact }),
|
|
57
|
+
React.createElement("div", { className: "member-table-item-name" },
|
|
58
|
+
((_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (member.identity.fullName) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null,
|
|
59
|
+
React.createElement("div", { className: "member-table-item-contact2" },
|
|
60
|
+
(member.email || ((_b = member.contact) === null || _b === void 0 ? void 0 : _b.email)) && (React.createElement("div", null,
|
|
61
|
+
React.createElement("span", null,
|
|
62
|
+
React.createElement(FAIcon, { icon: faEnvelope })),
|
|
63
|
+
member.email || ((_c = member.contact) === null || _c === void 0 ? void 0 : _c.email))),
|
|
64
|
+
(member.phone || ((_d = member.contact) === null || _d === void 0 ? void 0 : _d.phone)) && (React.createElement("div", null,
|
|
65
|
+
React.createElement("span", null,
|
|
66
|
+
React.createElement(FAIcon, { icon: faPhone })),
|
|
67
|
+
member.phone || ((_e = member.contact) === null || _e === void 0 ? void 0 : _e.phone))))))) : dataIndex === "identity" ? (((_f = member.identity) === null || _f === void 0 ? void 0 : _f.id) ? (React.createElement(IdentityStatus, { id: member.identity.id })) : null) : dataIndex === "status" ? (React.createElement("div", { style: { display: "flex" } },
|
|
68
|
+
React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
|
|
69
|
+
"need-identity": !member.identity,
|
|
70
|
+
}), status: !member.identity ? "Need Identity" : member.status }))) : dataIndex === "tags" ? (React.createElement(TagView, { id: record.id, tags: member.tags, editable: false, items: store.items, maxCount: 1 })) : dataIndex === "menu" ? (React.createElement(ToolBar, { showMenu: false },
|
|
71
|
+
React.createElement(Open, { url: `/member/${record.id}` }),
|
|
72
|
+
React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_g = member.contact) === null || _g === void 0 ? void 0 : _g.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
|
|
73
|
+
var _a;
|
|
74
|
+
return store.edit(record.id, {
|
|
75
|
+
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
76
|
+
error: "message",
|
|
77
|
+
});
|
|
78
|
+
} }))) : (children))) : (React.createElement(Skeleton, { active: true, loading: true }))) : null;
|
|
82
79
|
});
|
|
83
80
|
};
|
|
84
81
|
export default TableCellDetail;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.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,
|
|
1
|
+
{"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.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,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,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,OAAO,MAAM,wDAAwD,CAAC;AAC7E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AAE,EAAE,SAAS,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAAE;wBACvC,KAAK,EAAE,SAAS;qBAChB,CAAC,CAAA;iBAAA,GAEF,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,SAAG,CAC3B,CACD,CAAC,CAAC,CAAC,IAAI,CAAC;IACV,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import "./index.less";
|
|
3
|
+
export declare const columnsSimpleList: ({
|
|
4
|
+
title: React.JSX.Element;
|
|
5
|
+
dataIndex: string;
|
|
6
|
+
width?: undefined;
|
|
7
|
+
} | {
|
|
8
|
+
title: string;
|
|
9
|
+
dataIndex: string;
|
|
10
|
+
width: string;
|
|
11
|
+
})[];
|
|
12
|
+
declare const TableCellSimple: (props: any) => React.JSX.Element;
|
|
13
|
+
export default TableCellSimple;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { faEllipsisVertical, faBarsProgress, faUserGroup } from "@fortawesome/pro-solid-svg-icons";
|
|
3
|
+
import { Skeleton } from "antd";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
|
+
import { useMemberStore, useMember } from "../../../../../../data/member";
|
|
8
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
9
|
+
import IdentityStatus from "../../../../../../components/IdentityStatus";
|
|
10
|
+
import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
|
|
11
|
+
import MemberStatusLabel from "../../controls/MemberStatusLabel/MemberStatusLabel2";
|
|
12
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
export const columnsSimpleList = [
|
|
16
|
+
{
|
|
17
|
+
title: (React.createElement(React.Fragment, null,
|
|
18
|
+
React.createElement(FAIcon, { icon: faUserGroup }),
|
|
19
|
+
" Members Details")),
|
|
20
|
+
dataIndex: "details",
|
|
21
|
+
// width: "32%",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
title: (React.createElement(React.Fragment, null,
|
|
25
|
+
React.createElement(FAIcon, { icon: faBarsProgress }),
|
|
26
|
+
" Identity Status")),
|
|
27
|
+
dataIndex: "identity",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
title: " ",
|
|
31
|
+
dataIndex: "menu",
|
|
32
|
+
width: "68px",
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
const TableCellSimple = (props) => {
|
|
36
|
+
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
37
|
+
const store = useMemberStore();
|
|
38
|
+
return observe(() => {
|
|
39
|
+
var _a, _b, _c;
|
|
40
|
+
const member = useMember(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
|
|
41
|
+
return member ? ((member === null || member === void 0 ? void 0 : member.loaded) ? (React.createElement("td", { ...restProps }, dataIndex === "details" ? (React.createElement("div", { className: "member-table-item-details" },
|
|
42
|
+
React.createElement("div", null, ((_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (member.identity.fullName) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null),
|
|
43
|
+
React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
|
|
44
|
+
"need-identity": !member.identity,
|
|
45
|
+
}), status: !member.identity ? "Need Identity" : member.status }))) : dataIndex === "identity" ? (((_b = member.identity) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(IdentityStatus, { id: member.identity.id })) : null) : dataIndex === "menu" ? (React.createElement(ToolBar, { showMenu: false },
|
|
46
|
+
React.createElement(Open, { url: `/member/${record.id}` }),
|
|
47
|
+
React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_c = member.contact) === null || _c === void 0 ? void 0 : _c.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
|
|
48
|
+
var _a;
|
|
49
|
+
return store.edit(record.id, {
|
|
50
|
+
data: { ContactId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id },
|
|
51
|
+
error: "message",
|
|
52
|
+
});
|
|
53
|
+
} }))) : (children))) : (React.createElement(Skeleton, { active: true, loading: true }))) : null;
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
export default TableCellSimple;
|
|
57
|
+
//# sourceMappingURL=TableCellSimple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCellSimple.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,cAAc,MAAM,6CAA6C,CAAC;AACzE,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,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BACrB,IAAI,EAAE,EAAE,SAAS,EAAE,MAAA,MAAM,CAAC,OAAO,0CAAE,EAAE,EAAE;wBACvC,KAAK,EAAE,SAAS;qBAChB,CAAC,CAAA;iBAAA,GAEF,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,SAAG,CAC3B,CACD,CAAC,CAAC,CAAC,IAAI,CAAC;IACV,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React, { useState, useRef, useEffect } from "react";
|
|
2
|
+
import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
|
|
2
3
|
import TableCellDetail, { columnsListDetail } from "./TableCellDetail";
|
|
3
4
|
import TableCell, { columnsList } from "./TableCell";
|
|
4
5
|
import { Badge, Button } from "antd";
|
|
@@ -11,12 +12,14 @@ import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
|
|
|
11
12
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
12
13
|
import { useMemberListEffect, useMemberStore } from "../../../../../../data/member";
|
|
13
14
|
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
14
|
-
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
15
|
+
import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
|
|
15
16
|
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
16
17
|
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
17
18
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
18
19
|
import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
19
20
|
import MemberStatusFilter from "../../controls/MemberStatusFilter";
|
|
21
|
+
import MemberQuickViewDialog from "../CompanyMemberQuickView";
|
|
22
|
+
import MemberPropertiesView from "../CompanyMemberPropertiesView";
|
|
20
23
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
21
24
|
import classnames from "classnames";
|
|
22
25
|
import "./index.less";
|
|
@@ -24,6 +27,7 @@ const MemberTableListCard = (props) => {
|
|
|
24
27
|
const { membersRegisterId, corporateId, tableDetail } = props;
|
|
25
28
|
const [memberTotal, setMemberTotal] = useState(0);
|
|
26
29
|
const [height, setHeight] = useState(0);
|
|
30
|
+
const asideContext = useAsideContentContext();
|
|
27
31
|
const { user } = useApplicationContext();
|
|
28
32
|
const memberStore = useMemberStore();
|
|
29
33
|
const ref = useRef(null);
|
|
@@ -35,24 +39,6 @@ const MemberTableListCard = (props) => {
|
|
|
35
39
|
filters: filters(),
|
|
36
40
|
},
|
|
37
41
|
}, [membersRegisterId]);
|
|
38
|
-
const components = {
|
|
39
|
-
body: {
|
|
40
|
-
// row: DragTableRow,
|
|
41
|
-
cell: tableDetail ? TableCellDetail : TableCell,
|
|
42
|
-
},
|
|
43
|
-
};
|
|
44
|
-
const columns = (tableDetail ? columnsListDetail : columnsList).map((col) => {
|
|
45
|
-
return {
|
|
46
|
-
...col,
|
|
47
|
-
onCell: (record, rowIndex) => {
|
|
48
|
-
return {
|
|
49
|
-
record,
|
|
50
|
-
dataIndex: col.dataIndex,
|
|
51
|
-
rowIndex: rowIndex,
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
};
|
|
55
|
-
});
|
|
56
42
|
useEffect(() => {
|
|
57
43
|
if (ref.current) {
|
|
58
44
|
setHeight(ref.current.offsetHeight);
|
|
@@ -88,11 +74,52 @@ const MemberTableListCard = (props) => {
|
|
|
88
74
|
React.createElement("div", { ref: ref, className: "member-table-list-card", style: { height: props.type === "card" ? 298 : "100%" } },
|
|
89
75
|
React.createElement(Scrollbars, { autoHide: true },
|
|
90
76
|
React.createElement(TableListCard, { tableListProps: {
|
|
91
|
-
columns:
|
|
92
|
-
|
|
77
|
+
columns: (tableDetail
|
|
78
|
+
? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
79
|
+
? columnsSimpleList
|
|
80
|
+
: columnsListDetail
|
|
81
|
+
: columnsList).map((col) => {
|
|
82
|
+
return {
|
|
83
|
+
...col,
|
|
84
|
+
onCell: (record, rowIndex) => {
|
|
85
|
+
return {
|
|
86
|
+
record,
|
|
87
|
+
dataIndex: col.dataIndex,
|
|
88
|
+
rowIndex: rowIndex,
|
|
89
|
+
};
|
|
90
|
+
},
|
|
91
|
+
};
|
|
92
|
+
}),
|
|
93
|
+
components: {
|
|
94
|
+
body: {
|
|
95
|
+
cell: tableDetail
|
|
96
|
+
? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
97
|
+
? TableCellSimple
|
|
98
|
+
: TableCellDetail
|
|
99
|
+
: TableCell,
|
|
100
|
+
},
|
|
101
|
+
},
|
|
93
102
|
scrollH: props.type === "card" ? 240 : height - 72,
|
|
103
|
+
tableProps: {
|
|
104
|
+
onRow: (record) => {
|
|
105
|
+
return {
|
|
106
|
+
onClick: (e) => {
|
|
107
|
+
if (tableDetail) {
|
|
108
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(MemberPropertiesView, { id: record.id }), {
|
|
109
|
+
span: 12,
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
else {
|
|
113
|
+
state.quickId = record.id;
|
|
114
|
+
state.visibleQuickView = true;
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
},
|
|
119
|
+
},
|
|
94
120
|
}, ...props.tableCardProps }))))),
|
|
95
|
-
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) }))
|
|
121
|
+
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })),
|
|
122
|
+
state.visibleQuickView && (React.createElement(MemberQuickViewDialog, { id: state.quickId, visible: true, onCancel: () => (state.visibleQuickView = false) })))));
|
|
96
123
|
function filters() {
|
|
97
124
|
let filter = [];
|
|
98
125
|
if (membersRegisterId) {
|