@voplus/morpho-csp 6.1.50 → 6.1.51
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.js +25 -42
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
- package/es/components/CorporateUnitSelectDialog/state.d.ts +2 -0
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.d.ts +5 -2
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.js +5 -26
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.d.ts +2 -0
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.js +4 -1
- package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.d.ts +2 -0
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.js +8 -28
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/index.d.ts +2 -0
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/index.js +4 -1
- package/es/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,60 +1,43 @@
|
|
|
1
1
|
import React, { useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import {
|
|
4
|
-
import { Modal, Button, Checkbox, Row, Space } from "antd";
|
|
3
|
+
import { Checkbox } from "antd";
|
|
5
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
6
5
|
import { State } from "./state";
|
|
7
|
-
import {
|
|
6
|
+
import { faUsers, faUser, faUserVneck, faUserTag } from "@fortawesome/pro-solid-svg-icons";
|
|
8
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
8
|
import MemberListInCorporateSelect from "../../modules/corporate/company/member-register/components/MemberListInCorporateSelect";
|
|
10
9
|
import OfficerListInCorporateSelect from "../../modules/corporate/company/officer-register/components/OfficerListInCorporateSelect";
|
|
11
10
|
import SubUnitList from "@voplus/morpho-org/es/components/ListInContactSelect";
|
|
12
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar";
|
|
13
11
|
import UnitTree from "@voplus/morpho-org/es/components/UnitTree";
|
|
14
|
-
import
|
|
15
|
-
import styles from "./index.less";
|
|
12
|
+
import SelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog/SelectDialog";
|
|
16
13
|
const CorporateUnitSelectDialog = (props) => {
|
|
17
14
|
const context = useApplicationContext();
|
|
18
15
|
const [state] = useState(new State(props.defaultSelection, props.multiSelect, props.defaultSelected));
|
|
19
16
|
state.props = props;
|
|
20
17
|
state.multiSelect = props.multiSelect;
|
|
21
18
|
return observe(() => {
|
|
22
|
-
var _a
|
|
23
|
-
return (React.createElement(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
React.createElement(Checkbox.Group, { value: (_a = state === null || state === void 0 ? void 0 : state.selectedLists) === null || _a === void 0 ? void 0 : _a.map((u) => u.id) }, state.current === "members" ? (React.createElement(MemberListInCorporateSelect, { corporateId: props.corporateId, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : state.current === "officers" ? (React.createElement(OfficerListInCorporateSelect, { corporateId: props.corporateId, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : (React.createElement(SubUnitList, { addAble: true, unitSelectAdd: true, parentId: state.id, type: props.type, filterType: state.filterType, onSelectUnit: (item) => state.selectOrDeleteItem(item), isShowParentItem: state.id === "c896a84e-b31a-4d10-a181-5d34a21b172d" }))),
|
|
45
|
-
React.createElement(Row, { className: "units-select-function-btn", justify: "end" },
|
|
46
|
-
React.createElement(Space, null,
|
|
47
|
-
React.createElement(Button, { onClick: () => (state.selectedLists = []) }, "Clear"),
|
|
48
|
-
React.createElement(Button, { type: "primary", onClick: () => state.handleOk() }, "Select")))),
|
|
49
|
-
state.multiSelect && (React.createElement("div", { className: "selected-contact-list" },
|
|
50
|
-
React.createElement("div", { className: "list-header" },
|
|
51
|
-
React.createElement("span", { className: "header-title" }, "SELECTED CONTACT LIST")),
|
|
52
|
-
React.createElement("div", { className: "list-body" },
|
|
53
|
-
React.createElement(Scrollbars, { autoHide: true }, (_b = state === null || state === void 0 ? void 0 : state.selectedLists) === null || _b === void 0 ? void 0 : _b.map((item) => (React.createElement("div", { className: "selected-contact-list-item", key: item.id },
|
|
54
|
-
React.createElement("div", { className: "list-item-info" },
|
|
55
|
-
React.createElement(UnitAvatar, { className: "list-item-avatar", id: item.id }),
|
|
56
|
-
React.createElement("div", { className: "list-item-name" }, item.name)),
|
|
57
|
-
React.createElement(Button, { type: "text", className: "list-item-delete-btn", icon: React.createElement(FAIcon, { className: "list-item-delete-icon", icon: faCircleXmark }), onClick: () => state.deselectUnit(item) }))))))))));
|
|
19
|
+
var _a;
|
|
20
|
+
return (React.createElement(SelectDialog, { treeView: React.createElement(UnitTree, { organization: { id: context.user.info.organizationId, name: "" }, initTreeData: [
|
|
21
|
+
{
|
|
22
|
+
key: "c896a84e-b31a-4d10-a181-5d34a21b172d",
|
|
23
|
+
title: "Everyone",
|
|
24
|
+
icon: React.createElement(FAIcon, { icon: faUsers }),
|
|
25
|
+
isLeaf: true,
|
|
26
|
+
},
|
|
27
|
+
{ key: "", title: "Users", icon: React.createElement(FAIcon, { icon: faUser }), isLeaf: true },
|
|
28
|
+
{
|
|
29
|
+
key: "members",
|
|
30
|
+
title: "Members",
|
|
31
|
+
icon: React.createElement(FAIcon, { icon: faUserVneck }),
|
|
32
|
+
isLeaf: true,
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
key: "officers",
|
|
36
|
+
title: "Officers",
|
|
37
|
+
icon: React.createElement(FAIcon, { icon: faUserTag }),
|
|
38
|
+
isLeaf: true,
|
|
39
|
+
},
|
|
40
|
+
], defaultSelectedKeys: [state.current], onSelect: (id) => state.onExpand(id) }), listView: React.createElement(Checkbox.Group, { value: (_a = state === null || state === void 0 ? void 0 : state.selectedLists) === null || _a === void 0 ? void 0 : _a.map((u) => u.id) }, state.current === "members" ? (React.createElement(MemberListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : state.current === "officers" ? (React.createElement(OfficerListInCorporateSelect, { corporateId: props.corporateId, selectedLists: state.selectedLists, onSelectCorporateUnit: (item) => state.selectOrDeleteItem(item) })) : (React.createElement(SubUnitList, { addAble: true, unitSelectAdd: true, parentId: state.id, type: props.type, filterType: state.filterType, selectedLists: state.selectedLists, maxSelections: props.maxSelections, onSelectUnit: (item) => state.selectOrDeleteItem(item), isShowParentItem: state.id === "c896a84e-b31a-4d10-a181-5d34a21b172d" }))), handleCancel: () => state.handleCancel(), handleOk: () => state.handleOk(), selectedLists: state.selectedLists, title: props.title, maxSelections: props.maxSelections, onClear: () => (state.selectedLists = []), deselectUnit: (item) => state.deselectUnit(item) }));
|
|
58
41
|
});
|
|
59
42
|
};
|
|
60
43
|
CorporateUnitSelectDialog.defaultProps = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateUnitSelectDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE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BAAyB,CAAC,YAAY,GAAG;IACxC,WAAW,EAAE,IAAI;IACjB,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,0BAA0B;IACjC,gBAAgB,EAAE,UAAU;CAC5B,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/CorporateUnitSelectDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../src/components/CorporateUnitSelectDialog/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAG1D,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAoC/B,MAAM,OAAO,KAAK;IAajB,YACS,gBAAwB,EACxB,QAAiB,EACjB,eAAsB;;QAF9B;;;;mBAAQ,gBAAgB;WAAQ;QAChC;;;;mBAAQ,QAAQ;WAAS;QACzB;;;;mBAAQ,eAAe;WAAO;QAfxB;;;;;WAAiC;QACxC,kBAAkB;QACC;;;;mBAAK,EAAE;WAAC;QAC3B,aAAa;QACM;;;;mBAAyB,EAAE;WAAC;QAC/C,WAAW;QACQ;;;;mBAAc,KAAK;WAAC;QACvC,sBAAsB;QACH;;;;;WAAuB;QAC1C,kCAAkC;QACf;;;;mBAAU,EAAE;WAAC;QAO/B,cAAc,CAAC,IAAI,CAAC,CAAC;QAErB,QAAQ,IAAI,CAAC,gBAAgB,EAAE,CAAC;YAC/B,KAAK,UAAU;gBACd,IAAI,CAAC,EAAE,GAAG,sCAAsC,CAAC;gBACjD,IAAI,CAAC,OAAO,GAAG,sCAAsC,CAAC;gBACtD,MAAM;YACP,KAAK,OAAO;gBACX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lB,UAAU;iCAAgB;AAER;IAAlB,UAAU;4CAAoC;AAE5B;IAAlB,UAAU;0CAA4B;AAEpB;IAAlB,UAAU;yCAA+B;AAEvB;IAAlB,UAAU;sCAAqB;AAqCzB;IADN,MAAM;qCAKN;AAIM;IADN,MAAM;yCAGN;AAIM;IADN,MAAM;yCAGN;AAGO;IADP,MAAM;uCAGN;AAGM;IADN,MAAM;+CAGN;AAIM;IADN,MAAM;qCAUN;AAIM;IADN,MAAM;yCASN"}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { IUnit } from "@voplus/morpho-org";
|
|
3
2
|
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.less";
|
|
4
3
|
declare const MemberItem: (props: {
|
|
5
4
|
id: string;
|
|
6
|
-
|
|
5
|
+
index?: number;
|
|
6
|
+
isSelected?: boolean;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
selectedIds?: string[];
|
|
9
|
+
onSelectUnit?: (params?: any) => void;
|
|
7
10
|
}) => React.JSX.Element;
|
|
8
11
|
export default MemberItem;
|
|
@@ -1,42 +1,21 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { Badge, Checkbox, Tooltip } from "antd";
|
|
4
3
|
import { useMember } from "../../../../../../../data/member";
|
|
5
|
-
import { faPhone, faEnvelope } from "@fortawesome/pro-solid-svg-icons";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
8
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
4
|
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.less";
|
|
5
|
+
import UnitItem from "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem";
|
|
10
6
|
const MemberItem = (props) => {
|
|
11
7
|
const { id } = props;
|
|
12
8
|
const member = useMember(id);
|
|
13
9
|
return observe(() => {
|
|
14
|
-
var _a
|
|
15
|
-
|
|
16
|
-
const email = (_c = member.email) !== null && _c !== void 0 ? _c : (_d = member.contact) === null || _d === void 0 ? void 0 : _d.email;
|
|
17
|
-
return (React.createElement("div", { className: "unit-item-in-contact-select", onClick: () => {
|
|
10
|
+
var _a;
|
|
11
|
+
return (React.createElement(UnitItem, { id: member.contact.id, index: props.index, data: member.contact, statusBgColor: !member.identity ? "red" : member.status === "Active" ? "#1890ff" : "#ee6868", isSelected: (_a = props.selectedIds) === null || _a === void 0 ? void 0 : _a.includes(member.contact.id), onSelectUnit: () => {
|
|
18
12
|
var _a;
|
|
19
|
-
return (_a = props.
|
|
13
|
+
return (_a = props.onSelectUnit) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
20
14
|
id: member.contact.id,
|
|
21
15
|
name: member.contact.name,
|
|
22
16
|
type: "MemberUnit",
|
|
23
17
|
});
|
|
24
|
-
} }
|
|
25
|
-
React.createElement("div", { className: "primary-information" },
|
|
26
|
-
React.createElement("div", { className: "primary-info-left" },
|
|
27
|
-
React.createElement(Checkbox, { className: "contact-check-box", value: member.contact.id }),
|
|
28
|
-
React.createElement(UnitAvatar, { className: "contact-avatar", unit: member.contact }),
|
|
29
|
-
React.createElement("div", { className: "contact-name" }, ((_e = member.identity) === null || _e === void 0 ? void 0 : _e.fullName) ? (member.identity.fullName) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null)),
|
|
30
|
-
React.createElement("div", { className: "contact-position" }, !member.identity ? (React.createElement(Badge, { status: "warning", text: "Need Identity Info" })) : (React.createElement(Badge, { color: member.status === "Active" ? "#1890ff" : "#ee6868", text: member.status })))),
|
|
31
|
-
React.createElement("div", { className: "communication-information" },
|
|
32
|
-
email && (React.createElement("div", { className: "communication-information-item" },
|
|
33
|
-
React.createElement(FAIcon, { className: "information-icon", icon: faEnvelope }),
|
|
34
|
-
React.createElement(Tooltip, { title: email, zIndex: 9999 },
|
|
35
|
-
React.createElement("span", { className: "information-info" }, email)))),
|
|
36
|
-
phone && (React.createElement("div", { className: "communication-information-item" },
|
|
37
|
-
React.createElement(FAIcon, { className: "information-icon", icon: faPhone }),
|
|
38
|
-
React.createElement(Tooltip, { title: phone, zIndex: 9999 },
|
|
39
|
-
React.createElement("span", { className: "information-info" }, phone)))))));
|
|
18
|
+
} }));
|
|
40
19
|
});
|
|
41
20
|
};
|
|
42
21
|
export default MemberItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/MemberItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,0EAA0E,CAAC;AAClF,OAAO,QAAQ,MAAM,+DAA+D,CAAC;AAErF,MAAM,UAAU,GAAG,CAAC,KAOnB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IACR,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE,EACrB,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,IAAI,EAAE,MAAM,CAAC,OAAc,EAC3B,aAAa,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,EAC5F,UAAU,EAAE,MAAA,KAAK,CAAC,WAAW,0CAAE,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,EAC1D,YAAY,EAAE,GAAG,EAAE;;gBAClB,OAAA,MAAA,KAAK,CAAC,YAAY,sDAAG;oBACpB,EAAE,EAAE,MAAM,CAAC,OAAO,CAAC,EAAE;oBACrB,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI;oBACzB,IAAI,EAAE,YAAY;iBACT,CAAC,CAAA;aAAA,GAEX,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { IUnit } from "@voplus/morpho-org";
|
|
|
3
3
|
import "./index.less";
|
|
4
4
|
declare const MemberListInCorporateSelect: (props: {
|
|
5
5
|
corporateId?: string;
|
|
6
|
+
/** type="select" 选中的unit list */
|
|
7
|
+
selectedLists?: IUnit[];
|
|
6
8
|
onSelectCorporateUnit?: (params: IUnit) => void;
|
|
7
9
|
}) => React.JSX.Element;
|
|
8
10
|
export default MemberListInCorporateSelect;
|
package/es/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.js
CHANGED
|
@@ -25,7 +25,10 @@ const MemberListInCorporateSelect = (props) => {
|
|
|
25
25
|
columns: [React.createElement(MemberStatusFilter, { key: "MemberStatusFilter", defaultValue: ["Active"] })],
|
|
26
26
|
onFilter: onFilter,
|
|
27
27
|
} }),
|
|
28
|
-
React.createElement(ListView, { className: "member-list-view", headerProps: { visible: false }, renderItem: ({ item }) =>
|
|
28
|
+
React.createElement(ListView, { className: "member-list-view", headerProps: { visible: false }, renderItem: ({ item, index }) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (React.createElement(CompanyMemberItem, { id: item.id, index: index, selectedIds: (_a = props.selectedLists) === null || _a === void 0 ? void 0 : _a.map((i) => i.id), onSelectUnit: props.onSelectCorporateUnit }));
|
|
31
|
+
} }))));
|
|
29
32
|
});
|
|
30
33
|
function filters() {
|
|
31
34
|
let filter = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,iBAAiB,MAAM,cAAc,CAAC;AAC7C,OAAO,cAAc,CAAC;AAEtB,MAAM,2BAA2B,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberListInCorporateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAG/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAkB,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AACpF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CA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AE,EAAE,OAAO,EAAE,KAAK,EAAE,EAC/B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAA2C,EAAE,EAAE;;wBAAC,OAAA,CACzE,oBAAC,iBAAiB,IACjB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,KAAK,EAAE,KAAK,EACZ,WAAW,EAAE,MAAA,KAAK,CAAC,aAAa,0CAAE,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAClD,YAAY,EAAE,KAAK,CAAC,qBAAqB,GACxC,CACF,CAAA;qBAAA,GACA,CACG,CACoB,CAC3B,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,IAAI,MAAM,GAAmB,EAAE,CAAC;QAEhC,IAAI,WAAW,EAAE,CAAC;YACjB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;QACtE,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { IUnit } from "@voplus/morpho-org";
|
|
|
3
3
|
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.less";
|
|
4
4
|
declare const OfficerItem: (props: {
|
|
5
5
|
id: string;
|
|
6
|
+
index?: number;
|
|
7
|
+
selectedIds?: string[];
|
|
6
8
|
onSelectCorporateUnit?: (params: IUnit) => void;
|
|
7
9
|
}) => React.JSX.Element;
|
|
8
10
|
export default OfficerItem;
|
|
@@ -1,45 +1,25 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
-
import { Badge, Checkbox, Tooltip, Tag } from "antd";
|
|
4
3
|
import { useOfficer } from "../../../../../../../data/officer";
|
|
5
|
-
import { faPhone, faEnvelope } from "@fortawesome/pro-solid-svg-icons";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
8
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
4
|
import "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem/index.less";
|
|
5
|
+
import UnitItem from "@voplus/morpho-org/es/components/ListInContactSelect/UnitItem";
|
|
10
6
|
const OfficerItem = (props) => {
|
|
11
7
|
const { id } = props;
|
|
12
8
|
const officer = useOfficer(id);
|
|
13
9
|
return observe(() => {
|
|
14
|
-
var _a
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
var _a;
|
|
11
|
+
return (React.createElement(UnitItem, { id: officer.contact.id, index: props.index, data: { ...officer.contact, stereoTypes: [officer.position] }, statusBgColor: !officer.identity
|
|
12
|
+
? "red"
|
|
13
|
+
: officer.status && officer.identity && officer.status === "Present"
|
|
14
|
+
? "#4ade80"
|
|
15
|
+
: "#ee6868", isSelected: (_a = props.selectedIds) === null || _a === void 0 ? void 0 : _a.includes(officer.contact.id), onSelectUnit: () => {
|
|
18
16
|
var _a;
|
|
19
17
|
return (_a = props.onSelectCorporateUnit) === null || _a === void 0 ? void 0 : _a.call(props, {
|
|
20
18
|
id: officer.contact.id,
|
|
21
19
|
name: officer.contact.name,
|
|
22
20
|
type: "OfficerUnit",
|
|
23
21
|
});
|
|
24
|
-
} }
|
|
25
|
-
React.createElement("div", { className: "primary-information" },
|
|
26
|
-
React.createElement("div", { className: "primary-info-left" },
|
|
27
|
-
React.createElement(Checkbox, { className: "contact-check-box", value: officer.contact.id }),
|
|
28
|
-
React.createElement(UnitAvatar, { className: "contact-avatar", unit: officer.contact }),
|
|
29
|
-
React.createElement("div", { className: "contact-name" }, ((_e = officer.identity) === null || _e === void 0 ? void 0 : _e.fullName) ? (officer.identity.fullName) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null)),
|
|
30
|
-
React.createElement("div", { className: "contact-position" },
|
|
31
|
-
!officer.identity && React.createElement(Badge, { status: "warning", text: "Need Identity Info" }),
|
|
32
|
-
officer.status && officer.identity && officer.status === "Present" && (React.createElement(Badge, { status: "success", text: "Present" })),
|
|
33
|
-
React.createElement(Tag, { color: "#E0EFFF", style: { marginLeft: "10px" } }, officer.position))),
|
|
34
|
-
React.createElement("div", { className: "communication-information" },
|
|
35
|
-
email && (React.createElement("div", { className: "communication-information-item" },
|
|
36
|
-
React.createElement(FAIcon, { className: "information-icon", icon: faEnvelope }),
|
|
37
|
-
React.createElement(Tooltip, { title: email, zIndex: 9999 },
|
|
38
|
-
React.createElement("span", { className: "information-info" }, email)))),
|
|
39
|
-
phone && (React.createElement("div", { className: "communication-information-item" },
|
|
40
|
-
React.createElement(FAIcon, { className: "information-icon", icon: faPhone }),
|
|
41
|
-
React.createElement(Tooltip, { title: phone, zIndex: 9999 },
|
|
42
|
-
React.createElement("span", { className: "information-info" }, phone)))))));
|
|
22
|
+
} }));
|
|
43
23
|
});
|
|
44
24
|
};
|
|
45
25
|
export default OfficerItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/OfficerItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/company/officer-register/components/Of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,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -3,6 +3,8 @@ import { IUnit } from "@voplus/morpho-org";
|
|
|
3
3
|
import "./index.less";
|
|
4
4
|
declare const OfficerListInCorporateSelect: (props: {
|
|
5
5
|
corporateId?: string;
|
|
6
|
+
/** type="select" 选中的unit list */
|
|
7
|
+
selectedLists?: IUnit[];
|
|
6
8
|
onSelectCorporateUnit?: (params: IUnit) => void;
|
|
7
9
|
}) => React.JSX.Element;
|
|
8
10
|
export default OfficerListInCorporateSelect;
|
|
@@ -25,7 +25,10 @@ const OfficerListInCorporateSelect = (props) => {
|
|
|
25
25
|
columns: [React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter", defaultValue: [] })],
|
|
26
26
|
onFilter: onFilter,
|
|
27
27
|
} }),
|
|
28
|
-
React.createElement(ListView, { headerProps: { visible: false }, renderItem: ({ item }) =>
|
|
28
|
+
React.createElement(ListView, { headerProps: { visible: false }, renderItem: ({ item, index }) => {
|
|
29
|
+
var _a;
|
|
30
|
+
return (React.createElement(OfficerItem, { id: item.id, index: index, selectedIds: (_a = props.selectedLists) === null || _a === void 0 ? void 0 : _a.map((i) => i.id), onSelectCorporateUnit: props.onSelectCorporateUnit }));
|
|
31
|
+
} }))));
|
|
29
32
|
});
|
|
30
33
|
function filters() {
|
|
31
34
|
const filter = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAY,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,cAAc,CAAC;AAEtB,MAAM,4BAA4B,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerListInCorporateSelect/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAY,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AAChF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,cAAc,CAAC;AAEtB,MAAM,4BAA4B,GAAG,CAAC,KAKrC,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,GAAG,KAAK,CAAC;IAE9B,MAAM,IAAI,GAAG,sBAAsB,CAClC;QACC,cAAc,EAAE;YACf,OAAO,EAAE,OAAO,EAAE;SAClB;KACD,EACD,EAAE,CACF,CAAC;IAEF,qBAAqB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,CAAC;IAEzC,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,oBAAoB,CAAC,IAAI,EAAE,CAAC,MAA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