@voplus/morpho-csp 6.0.116 → 6.0.118

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.
Files changed (117) hide show
  1. package/es/components/CorporateNavMenu/CorporateNavMenu.d.ts +2 -0
  2. package/es/components/CorporateNavMenu/CorporateNavMenu.js +11 -35
  3. package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -1
  4. package/es/components/IdentityStatus/IdentityStatus2.d.ts +6 -0
  5. package/es/components/IdentityStatus/IdentityStatus2.js +36 -0
  6. package/es/components/IdentityStatus/IdentityStatus2.js.map +1 -0
  7. package/es/components/IdentityStatus/index.d.ts +5 -0
  8. package/es/components/IdentityStatus/index.js +24 -0
  9. package/es/components/IdentityStatus/index.js.map +1 -0
  10. package/es/components/IdentityStatus/index.less +31 -0
  11. package/es/data/controller/interfaces.d.ts +2 -1
  12. package/es/data/corporate/interfaces.d.ts +29 -0
  13. package/es/modules/corporate/company/components/CapitalCard/index.d.ts +2 -1
  14. package/es/modules/corporate/company/components/CapitalCard/index.js +19 -29
  15. package/es/modules/corporate/company/components/CapitalCard/index.js.map +1 -1
  16. package/es/modules/corporate/company/components/CapitalCard/index.less +50 -31
  17. package/es/modules/corporate/company/components/CompanyPageHead/index.d.ts +0 -1
  18. package/es/modules/corporate/company/components/CompanyPageHead/index.js +28 -43
  19. package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
  20. package/es/modules/corporate/company/components/SharesCapitalCard/index.d.ts +6 -0
  21. package/es/modules/corporate/company/components/SharesCapitalCard/index.js +26 -0
  22. package/es/modules/corporate/company/components/SharesCapitalCard/index.js.map +1 -0
  23. package/es/modules/corporate/company/components/SharesCapitalCard/state.d.ts +16 -0
  24. package/es/modules/corporate/company/components/SharesCapitalCard/state.js +85 -0
  25. package/es/modules/corporate/company/components/SharesCapitalCard/state.js.map +1 -0
  26. package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js +3 -22
  27. package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js.map +1 -1
  28. package/es/modules/corporate/company/components/SharesCard2/index.d.ts +3 -1
  29. package/es/modules/corporate/company/components/SharesCard2/index.js +32 -42
  30. package/es/modules/corporate/company/components/SharesCard2/index.js.map +1 -1
  31. package/es/modules/corporate/company/components/SharesCard2/index.less +58 -15
  32. package/es/modules/corporate/company/components/SharesCard2/state.d.ts +1 -0
  33. package/es/modules/corporate/company/components/SharesCard2/state.js +11 -0
  34. package/es/modules/corporate/company/components/SharesCard2/state.js.map +1 -1
  35. package/es/modules/corporate/company/controller-register/components/ControllerList/index.d.ts +3 -2
  36. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +6 -6
  37. package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -1
  38. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +17 -0
  39. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +77 -0
  40. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -0
  41. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +15 -0
  42. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +118 -0
  43. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -0
  44. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +73 -0
  45. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.d.ts +1 -1
  46. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +2 -0
  47. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +5 -5
  48. package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
  49. package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +7 -0
  50. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +19 -0
  51. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -0
  52. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.d.ts +13 -0
  53. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js +39 -9
  54. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map +1 -1
  55. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.d.ts +13 -0
  56. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +76 -0
  57. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -0
  58. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +7 -0
  59. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +26 -44
  60. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
  61. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +30 -16
  62. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +7 -0
  63. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +19 -0
  64. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -0
  65. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.d.ts +13 -0
  66. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +40 -10
  67. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -1
  68. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.d.ts +13 -0
  69. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +82 -0
  70. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -0
  71. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +7 -0
  72. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +41 -56
  73. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
  74. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +24 -10
  75. package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +7 -19
  76. package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
  77. package/es/modules/corporate/company/pages/CompanyPage/index.js +4 -4
  78. package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
  79. package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +7 -16
  80. package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js.map +1 -1
  81. package/es/modules/corporate/company/pages/RegistersPage/index.d.ts +4 -0
  82. package/es/modules/corporate/company/pages/RegistersPage/index.js +42 -0
  83. package/es/modules/corporate/company/pages/RegistersPage/index.js.map +1 -0
  84. package/es/modules/corporate/company/pages/RegistersPage/index.less +63 -0
  85. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js +1 -0
  86. package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +1 -1
  87. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +1 -0
  88. package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -1
  89. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +3 -2
  90. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
  91. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.d.ts +6 -0
  92. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js +51 -0
  93. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js.map +1 -0
  94. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.d.ts +7 -0
  95. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js +56 -0
  96. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js.map +1 -0
  97. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.less +161 -0
  98. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.d.ts +8 -0
  99. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +88 -0
  100. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -0
  101. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.less +20 -0
  102. package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js +2 -2
  103. package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js.map +1 -1
  104. package/es/modules/corporate/share-class/components/ShareClassCardList/index.d.ts +7 -0
  105. package/es/modules/corporate/share-class/components/ShareClassCardList/index.js +49 -0
  106. package/es/modules/corporate/share-class/components/ShareClassCardList/index.js.map +1 -0
  107. package/es/modules/corporate/share-class/components/ShareClassCardList/index.less +49 -0
  108. package/es/modules/corporate/share-class/components/ShareClassItemCard/index.d.ts +6 -0
  109. package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js +34 -0
  110. package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js.map +1 -0
  111. package/es/modules/corporate/share-class/components/ShareClassItemCard/index.less +78 -0
  112. package/es/modules/corporate/share-class/pages/ShareClassListPage/index.d.ts +6 -0
  113. package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js +17 -0
  114. package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js.map +1 -0
  115. package/es/modules/corporate/share-class/pages/ShareClassListPage/index.less +8 -0
  116. package/package.json +1 -1
  117. package/es/modules/corporate/company/components/CompanyPageHead/index.less +0 -80
@@ -0,0 +1,77 @@
1
+ import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faUserGroup, faCircleCheck, } from "@fortawesome/pro-solid-svg-icons";
2
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
4
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
5
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
8
+ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
9
+ import { useControllerStore, useController } from "../../../../../../data/controller";
10
+ import classnames from "classnames";
11
+ import IdentityStatus from "../../../../../../components/IdentityStatus";
12
+ import React from "react";
13
+ import TagView from "@voplus/morpho-document/es/components/TagView/TagView2";
14
+ import CompanyControllerMenu from "../../../controls/CompanyRegisterMenu";
15
+ import ControllerStatusLabel from "../../controls/ControllerStatusLabel";
16
+ import ControllerPropertiesView from "../ControllerPropertiesView";
17
+ import "./index.less";
18
+ export const columnsList = [
19
+ {
20
+ title: (React.createElement(React.Fragment, null,
21
+ React.createElement(FAIcon, { icon: faUserGroup }),
22
+ " Controllers Name")),
23
+ dataIndex: "name",
24
+ width: "32%",
25
+ },
26
+ {
27
+ title: (React.createElement(React.Fragment, null,
28
+ React.createElement(FAIcon, { icon: faCircleCheck }),
29
+ " Identity Status")),
30
+ dataIndex: "identity",
31
+ },
32
+ {
33
+ title: (React.createElement(React.Fragment, null,
34
+ React.createElement(FAIcon, { icon: faBarsProgress }),
35
+ " Status")),
36
+ dataIndex: "status",
37
+ },
38
+ {
39
+ title: (React.createElement(React.Fragment, null,
40
+ React.createElement(FAIcon, { icon: faBarsProgress }),
41
+ " Tags")),
42
+ dataIndex: "tags",
43
+ },
44
+ {
45
+ title: " ",
46
+ dataIndex: "menu",
47
+ width: "68px",
48
+ },
49
+ ];
50
+ const TableCell = (props) => {
51
+ const { dataIndex, record, rowIndex, children, ...restProps } = props;
52
+ const store = useControllerStore();
53
+ return observe(() => {
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
+ 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
+ React.createElement(UnitAvatar, { unit: record.contact }),
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" } },
69
+ React.createElement(ControllerStatusLabel, { className: classnames("controller-table-status-label", {
70
+ "need-identity": !record.identity,
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)));
74
+ });
75
+ };
76
+ export default TableCell;
77
+ //# sourceMappingURL=TableCell.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-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AI,CACrF,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,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"}
@@ -0,0 +1,15 @@
1
+ import React, { ReactNode } from "react";
2
+ import { ControllerListProps } from "../ControllerList";
3
+ import "../../../pages/RegistersPage/index.less";
4
+ import "./index.less";
5
+ declare const ControllerTableList: {
6
+ (props: ControllerListProps & {
7
+ tableCardProps?: {
8
+ className?: string;
9
+ isHeader?: boolean;
10
+ title?: ReactNode;
11
+ };
12
+ }): React.JSX.Element;
13
+ defaultProps: {};
14
+ };
15
+ export default ControllerTableList;
@@ -0,0 +1,118 @@
1
+ import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
2
+ import { useAutoUpdateListData } from "@voplus/morpho-document-core";
3
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
4
+ import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
5
+ import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
6
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
7
+ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
8
+ import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
9
+ import { Button } from "antd";
10
+ import SelectControllerForm from "../SelectControllerForm";
11
+ import React, { useState, useRef, useEffect } from "react";
12
+ import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
13
+ import { useCorporate } from "../../../../../../data/corporate";
14
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
15
+ import { useControllerListEffect, useControllerStore } from "../../../../../../data/controller";
16
+ import TableCell, { columnsList } from "./TableCell";
17
+ import { State } from "../ControllerList/state";
18
+ import classnames from "classnames";
19
+ import "../../../pages/RegistersPage/index.less";
20
+ import "./index.less";
21
+ import dayjs from "dayjs";
22
+ const ControllerTableList = (props) => {
23
+ const { controllerRegisterId, corporateId } = props;
24
+ const [controllerTotal, setControllerTotal] = useState(0);
25
+ const [visible, setVisible] = useState(false);
26
+ const controllerStore = useControllerStore();
27
+ const [height, setHeight] = useState(0);
28
+ const ref = useRef(null);
29
+ const { user } = useApplicationContext();
30
+ const corporate = useCorporate(corporateId !== null && corporateId !== void 0 ? corporateId : "", { includes: "permissions" });
31
+ const state = useDeepMemo(() => new State(), [controllerRegisterId]);
32
+ /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
33
+ const list = useCreateListDataState({
34
+ filterDefaults: {
35
+ filters: [
36
+ { c: "ParentNodeId", o: "=", l: "And", v1: controllerRegisterId },
37
+ {
38
+ c: "ConfirmationStatus",
39
+ o: "contains",
40
+ v1: JSON.stringify(["Unconfirmed", "ConfirmedController"]),
41
+ l: "And",
42
+ },
43
+ ],
44
+ includes: "tags",
45
+ },
46
+ }, [controllerRegisterId]);
47
+ const components = {
48
+ body: {
49
+ // row: DragTableRow,
50
+ cell: TableCell,
51
+ },
52
+ };
53
+ const columns = columnsList.map((col) => {
54
+ return {
55
+ ...col,
56
+ onCell: (record, rowIndex) => {
57
+ return {
58
+ record,
59
+ dataIndex: col.dataIndex,
60
+ rowIndex: rowIndex,
61
+ };
62
+ },
63
+ };
64
+ });
65
+ useEffect(() => {
66
+ if (ref.current) {
67
+ setHeight(ref.current.offsetHeight);
68
+ }
69
+ }, [ref]);
70
+ /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
71
+ useAutoUpdateListData(list, (d) => d.parentId === controllerRegisterId);
72
+ useRenderOnChange(() => list.filters.options);
73
+ /** 把ListDataState传给useControllerListEffect,使之可以自動更新loading, hasmore. */
74
+ useControllerListEffect(list, (result, total) => {
75
+ list.union(result);
76
+ setControllerTotal(total);
77
+ }, {
78
+ Total: true,
79
+ ...list.filters.options,
80
+ });
81
+ return observe(() => (React.createElement("div", { className: "registers-page-item" },
82
+ React.createElement(ListDataContext.Provider, { value: list },
83
+ React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(React.Fragment, null,
84
+ React.createElement("div", { className: "registers-item-info" },
85
+ React.createElement("div", { className: "title" }, "Controllers Register List"),
86
+ React.createElement("div", { className: "last-updated-time" },
87
+ "Lates Update on ",
88
+ dayjs().format("DD MMM YYYY"))),
89
+ React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: classnames("controller-table-list-header"), filterViewProps: {
90
+ columns: [
91
+ React.createElement(ControllerStatusFilter, { key: "ControllerStatusFilter", defaultValue: ["Unconfirmed", "ConfirmedController"] }),
92
+ ],
93
+ }, preExtra: () => (React.createElement(React.Fragment, null,
94
+ React.createElement(Button, { className: "send-notice-btn", onClick: () => setVisible(true) }, "Send Notice"),
95
+ React.createElement(Button, { className: "import-btn", onClick: async () => await controllerStore
96
+ .importController(controllerRegisterId, { error: "message" })
97
+ .then(() => props.onReload && props.onReload()) }, "Import"))), rightExtra: () => (React.createElement(React.Fragment, null,
98
+ React.createElement(AddDropDown2, { btnType: "text", onClick: () => (state.addAble = true) }))) })) },
99
+ React.createElement("div", { ref: ref, className: "controller-table-list-card" },
100
+ React.createElement(TableListCard, { tableListProps: { columns: columns, components: components, scrollH: height }, ...props.tableCardProps })))),
101
+ state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })),
102
+ visible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })))));
103
+ /** 新增controllerItem */
104
+ async function onSave(unit) {
105
+ /** SelectLegalContactDialog 选择/新增有identity信息的unit */
106
+ if (unit) {
107
+ const res = await controllerStore.create({
108
+ data: { RegisterId: controllerRegisterId, UnitId: unit[0].id },
109
+ error: "message",
110
+ });
111
+ list.union([res]);
112
+ }
113
+ state.addAble = false;
114
+ }
115
+ };
116
+ ControllerTableList.defaultProps = {};
117
+ export default ControllerTableList;
118
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzE,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,EAAa,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC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C;AAEtC,eAAe,mBAAmB,CAAC"}
@@ -0,0 +1,73 @@
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
+ }
8
+ .controller-table-item-info {
9
+ color: #5d5d5d;
10
+ font-weight: 500;
11
+ padding: 1px 0;
12
+ cursor: pointer;
13
+ display: flex;
14
+ align-items: center;
15
+ .ant-avatar {
16
+ width: 30px;
17
+ height: 30px;
18
+ border-radius: 2px;
19
+ }
20
+ .controller-table-item-name {
21
+ flex: 1;
22
+ margin-left: 8px;
23
+ }
24
+ }
25
+ .controller-table-status-label {
26
+ &.controller-status {
27
+ width: 100px !important;
28
+ }
29
+ }
30
+ .controller-table-item-contact {
31
+ color: #868686;
32
+ div {
33
+ display: inline-block;
34
+ &:first-child {
35
+ margin-right: 8px;
36
+ }
37
+ }
38
+ span {
39
+ float: left;
40
+ display: inline-block;
41
+ width: 15px;
42
+ color: #cbcbcb;
43
+ margin-right: 5px;
44
+ }
45
+ }
46
+ .controller-table-item-email,
47
+ .controller-table-item-phone {
48
+ color: #5d5d5d;
49
+ }
50
+ .controller-table-list-header.list-view-header-tool {
51
+ padding: 0;
52
+ flex: 1;
53
+ .header-tool-space {
54
+ display: flex;
55
+ .title {
56
+ flex: 1;
57
+ }
58
+ .send-form-btn {
59
+ color: #217eb2;
60
+ border-color: #217eb2;
61
+ padding-left: 10px;
62
+ padding-right: 10px;
63
+ }
64
+ .import-btn,
65
+ .send-notice-btn {
66
+ color: #217eb2;
67
+ border-color: #217eb2;
68
+ margin-right: 10px;
69
+ margin-left: 0;
70
+ }
71
+ }
72
+ }
73
+ }
@@ -5,6 +5,6 @@ declare const ControllerStatusLabel: (props: {
5
5
  status: string;
6
6
  editable: boolean;
7
7
  className?: string;
8
- onChange: (status: ConfirmationStatus) => void;
8
+ onChange?: (status: ConfirmationStatus) => void;
9
9
  }) => React.JSX.Element;
10
10
  export default ControllerStatusLabel;
@@ -7,6 +7,8 @@ export type MemberListProps = {
7
7
  /** 是否在 selectDialog 中显示 */
8
8
  selectDialog?: boolean;
9
9
  /** 选中的 Corporate Unit list */
10
+ /** 是否需要filter Status active */
11
+ active?: boolean;
10
12
  selectedLists?: ICompanyMember[];
11
13
  onRedirect?: () => void;
12
14
  onSelectCorporateUnit?: (params?: any) => void;
@@ -20,7 +20,7 @@ import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialo
20
20
  import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
21
21
  import "./index.less";
22
22
  const CompanyMemberList = (props) => {
23
- const { membersRegisterId, corporateId, selectDialog } = props;
23
+ const { membersRegisterId, corporateId, selectDialog, active } = props;
24
24
  const [memberTotal, setMemberTotal] = useState();
25
25
  const view = useViewContext();
26
26
  const memberStore = useMemberStore();
@@ -80,10 +80,10 @@ const CompanyMemberList = (props) => {
80
80
  function filters() {
81
81
  let filter = [];
82
82
  if (membersRegisterId) {
83
- filter = [
84
- { c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId },
85
- { c: "Status", o: "=", l: "And", v1: "Active" },
86
- ];
83
+ filter = [{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId }];
84
+ }
85
+ if (active) {
86
+ filter.push({ c: "Status", o: "=", l: "And", v1: "Active" });
87
87
  }
88
88
  if (selectDialog && corporateId) {
89
89
  filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,eAAe,EA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,OAAO,CAAC;YACb,KAAK,EAAE,6CAA6C;YACpD,KAAK,CAAC,IAAI;gBACT,MAAM,cAAc;qBAClB,cAAc,CAAC,WAAY,EAAE,iBAAkB,EAAE;oBACjD,KAAK,EAAE,SAAS;iBAChB,CAAC;qBACD,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACtD,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAkB,mBAAmB,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACpG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2CAA2C,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,WAAW,EAAgB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,cAAc,EAAE,MAAM,0DAA0D,CAAC;AAC1F,OA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C,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC;QACzE,MAAA,KAAK,CAAC,qBAAqB,sDAAG,MAAM,CAAC,CAAC;IACvC,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED,KAAK,UAAU,MAAM,CAAC,IAAkD;QACvE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC,MAAM,CAAC;gBACpC,IAAI,EAAE;oBACL,UAAU,EAAE,iBAAkB;oBAC9B,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE;iBAClB;gBACD,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,SAAS,gBAAgB;QACxB,KAAK,CAAC,OAAO,CAAC;YACb,KAAK,EAAE,6CAA6C;YACpD,KAAK,CAAC,IAAI;gBACT,MAAM,cAAc;qBAClB,cAAc,CAAC,WAAY,EAAE,iBAAkB,EAAE;oBACjD,KAAK,EAAE,SAAS;iBAChB,CAAC;qBACD,IAAI,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,UAAU,IAAI,KAAK,CAAC,UAAU,EAAE,CAAC,CAAC;YACtD,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -0,0 +1,7 @@
1
+ import React from "react";
2
+ import "../../../pages/RegistersPage/index.less";
3
+ declare const MemberTableList: (props: {
4
+ corporateId: string;
5
+ membersRegisterId: string;
6
+ }) => React.JSX.Element;
7
+ export default MemberTableList;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import MemberTableListCard from "../MemberTableListCard";
4
+ import dayjs from "dayjs";
5
+ import "../../../pages/RegistersPage/index.less";
6
+ const MemberTableList = (props) => {
7
+ return observe(() => (React.createElement("div", { className: "registers-page-item" },
8
+ React.createElement(MemberTableListCard, { corporateId: props.corporateId, membersRegisterId: props.membersRegisterId, tableDetail: true, headerTitle: React.createElement("div", { className: "registers-item-info" },
9
+ React.createElement("div", { className: "title" }, "Members Register List"),
10
+ React.createElement("div", { className: "last-updated-time" },
11
+ "Lates Update on ",
12
+ dayjs().format("DD MMM YYYY"))), listHeaderToolProps: {
13
+ searchHeader: true,
14
+ preExtra: () => React.createElement(React.Fragment, null),
15
+ searchOptions: { placeholder: "Search in register member" },
16
+ } }))));
17
+ };
18
+ export default MemberTableList;
19
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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,yCAAyC,CAAC;AAEjD,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,17 @@
1
1
  import React from "react";
2
2
  import "./index.less";
3
+ export declare const columnsList: ({
4
+ title: React.JSX.Element;
5
+ dataIndex: string;
6
+ width?: undefined;
7
+ } | {
8
+ title: React.JSX.Element;
9
+ dataIndex: string;
10
+ width: string;
11
+ } | {
12
+ title: string;
13
+ dataIndex: string;
14
+ width: string;
15
+ })[];
3
16
  declare const TableCell: (props: any) => React.JSX.Element;
4
17
  export default TableCell;
@@ -1,6 +1,5 @@
1
- import { faEllipsisVertical, faEnvelope, faPhone } from "@fortawesome/pro-solid-svg-icons";
1
+ import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faReceipt, faThumbtack, } from "@fortawesome/pro-solid-svg-icons";
2
2
  import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
- import { useMetaStore } from "@voplus/morpho-document-core";
4
3
  import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
5
4
  import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
6
5
  import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
@@ -9,16 +8,43 @@ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAv
9
8
  import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
10
9
  import classnames from "classnames";
11
10
  import React from "react";
11
+ import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
12
12
  import { useMemberStore } from "../../../../../../data/member";
13
13
  import MemberStatusLabel from "../../controls/MemberStatusLabel";
14
14
  import MemberQuickViewDialog from "../CompanyMemberQuickView";
15
15
  import "./index.less";
16
+ export const columnsList = [
17
+ {
18
+ title: (React.createElement(React.Fragment, null,
19
+ React.createElement(FAIcon, { icon: faThumbtack }),
20
+ " Members Name")),
21
+ dataIndex: "name",
22
+ },
23
+ {
24
+ title: (React.createElement(React.Fragment, null,
25
+ React.createElement(FAIcon, { icon: faReceipt }),
26
+ " Contact")),
27
+ dataIndex: "contact",
28
+ width: "30%",
29
+ },
30
+ {
31
+ title: (React.createElement(React.Fragment, null,
32
+ React.createElement(FAIcon, { icon: faBarsProgress }),
33
+ " Status")),
34
+ dataIndex: "status",
35
+ width: "18%",
36
+ },
37
+ {
38
+ title: " ",
39
+ dataIndex: "menu",
40
+ width: "68px",
41
+ },
42
+ ];
16
43
  const TableCell = (props) => {
17
44
  const { dataIndex, record, rowIndex, children, ...restProps } = props;
18
45
  const store = useMemberStore();
19
- const meta = useMetaStore();
20
46
  return observe(() => {
21
- var _a, _b, _c, _d, _e;
47
+ var _a, _b, _c, _d, _e, _f;
22
48
  return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(ItemFunction, { className: "member-table-item-info", onClick: props.onClick, quickViewDialog: (onCancel) => (React.createElement(MemberQuickViewDialog, { id: record.id, visible: true, onCancel: onCancel })) },
23
49
  React.createElement(UnitAvatar, { unit: record.contact }),
24
50
  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" },
@@ -32,11 +58,15 @@ const TableCell = (props) => {
32
58
  _e.phone)))) : dataIndex === "status" ? (React.createElement("div", { style: { display: "flex" } },
33
59
  React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
34
60
  "need-identity": !record.identity,
35
- }), editable: false, status: !record.identity ? "Need Identity Info" : record.status }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, moreProps: {
36
- buttonProps: { size: "middle" },
37
- icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
38
- } },
39
- React.createElement(Open, { size: "middle", url: `/member/${record.id}` }))) : (children)));
61
+ }), editable: false, status: !record.identity ? "Need Identity Info" : record.status }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { showMenu: false },
62
+ React.createElement(Open, { url: `/member/${record.id}` }),
63
+ React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_f = record.contact) === null || _f === void 0 ? void 0 : _f.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: () => {
64
+ var _a;
65
+ return store.edit(record.id, {
66
+ data: { ContactId: (_a = record.contact) === null || _a === void 0 ? void 0 : _a.id },
67
+ error: "message",
68
+ });
69
+ } }))) : (children)));
40
70
  });
41
71
  };
42
72
  export default TableCell;
@@ -1 +1 @@
1
- {"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,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;AACp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L,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
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,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,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC/D,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,qBAAqB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,cAAc,CAAC;AAEtB,MAAM,CAAC,MAAM,WAAW,GAAG;IAC1B;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;4BAC3B,CACH;QACD,SAAS,EAAE,MAAM;KACjB;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI;uBACzB,CACH;QACD,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI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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"}
@@ -0,0 +1,13 @@
1
+ import React from "react";
2
+ import "./index.less";
3
+ export declare const columnsListDetail: ({
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 TableCellDetail: (props: any) => React.JSX.Element;
13
+ export default TableCellDetail;
@@ -0,0 +1,76 @@
1
+ import { faEllipsisVertical, faEnvelope, faPhone, faBarsProgress, faUserGroup, faCircleCheck, } from "@fortawesome/pro-solid-svg-icons";
2
+ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
3
+ import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
4
+ import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
5
+ import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
6
+ import { observe } from "@voplus/morpho-ui";
7
+ import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
8
+ import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
9
+ import classnames from "classnames";
10
+ import IdentityStatus from "../../../../../../components/IdentityStatus";
11
+ import React from "react";
12
+ import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
13
+ import { useMemberStore } from "../../../../../../data/member";
14
+ import MemberStatusLabel from "../../controls/MemberStatusLabel";
15
+ import MemberPropertiesView from "../CompanyMemberPropertiesView";
16
+ import "./index.less";
17
+ export const columnsListDetail = [
18
+ {
19
+ title: (React.createElement(React.Fragment, null,
20
+ React.createElement(FAIcon, { icon: faUserGroup }),
21
+ " Members Name")),
22
+ dataIndex: "name",
23
+ },
24
+ {
25
+ title: (React.createElement(React.Fragment, null,
26
+ React.createElement(FAIcon, { icon: faEnvelope }),
27
+ " Email")),
28
+ dataIndex: "email",
29
+ },
30
+ {
31
+ title: (React.createElement(React.Fragment, null,
32
+ React.createElement(FAIcon, { icon: faPhone }),
33
+ " Contact Number")),
34
+ dataIndex: "phone",
35
+ },
36
+ {
37
+ title: (React.createElement(React.Fragment, null,
38
+ React.createElement(FAIcon, { icon: faCircleCheck }),
39
+ " Identity Status")),
40
+ dataIndex: "identity",
41
+ },
42
+ {
43
+ title: (React.createElement(React.Fragment, null,
44
+ React.createElement(FAIcon, { icon: faBarsProgress }),
45
+ " Status")),
46
+ dataIndex: "status",
47
+ },
48
+ {
49
+ title: " ",
50
+ dataIndex: "menu",
51
+ width: "68px",
52
+ },
53
+ ];
54
+ const TableCellDetail = (props) => {
55
+ const { dataIndex, record, rowIndex, children, ...restProps } = props;
56
+ const store = useMemberStore();
57
+ return observe(() => {
58
+ var _a, _b, _c, _d, _e;
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 }) },
60
+ React.createElement(UnitAvatar, { unit: record.contact }),
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" } },
62
+ React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
63
+ "need-identity": !record.identity,
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)));
73
+ });
74
+ };
75
+ export default TableCellDetail;
76
+ //# sourceMappingURL=TableCellDetail.js.map