@voplus/morpho-csp 10.0.9 → 10.0.10

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/CorporateUnitSelectDialog/index.d.ts +1 -1
  2. package/es/components/CorporateUnitSelectDialog/index.js +4 -12
  3. package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
  4. package/es/components/CorporateUnitSelectDialog/state.d.ts +2 -2
  5. package/es/components/CorporateUnitSelectDialog/state.js +6 -9
  6. package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
  7. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +1 -1
  8. package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
  9. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js +3 -1
  10. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js.map +1 -1
  11. package/es/modules/corporate/company/components/CorporateList/index.js +1 -1
  12. package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -1
  13. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +1 -13
  14. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +39 -94
  15. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
  16. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.d.ts +13 -0
  17. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +63 -0
  18. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +1 -0
  19. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css +122 -0
  20. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +1 -0
  21. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +95 -66
  22. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
  23. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js +13 -23
  24. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
  25. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.css +22 -0
  26. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.d.ts +1 -0
  27. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js +8 -1
  28. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js.map +1 -1
  29. package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +3 -2
  30. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +9 -63
  31. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
  32. package/es/modules/corporate/company/member-register/components/{MemberTableList → MemberTableListCard}/TableCellDetail.d.ts +1 -13
  33. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +77 -0
  34. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -0
  35. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.d.ts +13 -0
  36. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js +52 -0
  37. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js.map +1 -0
  38. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +16 -1
  39. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +133 -17
  40. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
  41. package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js +12 -15
  42. package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
  43. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +3 -2
  44. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +11 -74
  45. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
  46. package/es/modules/corporate/company/officer-register/components/{OfficerTableList → OfficerTableListCard}/TableCellDetail.d.ts +1 -13
  47. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +87 -0
  48. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -0
  49. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.d.ts +13 -0
  50. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js +65 -0
  51. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js.map +1 -0
  52. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +24 -3
  53. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +140 -22
  54. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
  55. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.d.ts +2 -0
  56. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +37 -20
  57. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
  58. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.css +1 -1
  59. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +1 -1
  60. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +1 -1
  61. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
  62. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +2 -5
  63. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
  64. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.css +1 -1
  65. package/es/modules/corporate/filing-record/components/FilingList/index.js +1 -1
  66. package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
  67. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.d.ts +0 -1
  68. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +0 -1
  69. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js.map +1 -1
  70. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.d.ts +0 -1
  71. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +0 -1
  72. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
  73. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +7 -29
  74. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -1
  75. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +1 -1
  76. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
  77. package/es/page/RegisterTablePage/Controller.d.ts +3 -0
  78. package/es/page/RegisterTablePage/Controller.js +134 -0
  79. package/es/page/RegisterTablePage/Controller.js.map +1 -0
  80. package/es/page/RegisterTablePage/index.d.ts +3 -0
  81. package/es/page/RegisterTablePage/index.js +63 -0
  82. package/es/page/RegisterTablePage/index.js.map +1 -0
  83. package/package.json +1 -2
  84. package/es/components/RegisterTable/index.d.ts +0 -31
  85. package/es/components/RegisterTable/index.js +0 -55
  86. package/es/components/RegisterTable/index.js.map +0 -1
  87. package/es/components/StatusLabel/index.d.ts +0 -36
  88. package/es/components/StatusLabel/index.js +0 -16
  89. package/es/components/StatusLabel/index.js.map +0 -1
  90. package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +0 -125
  91. package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +0 -1
  92. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.d.ts +0 -21
  93. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +0 -86
  94. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +0 -1
  95. package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +0 -140
  96. package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +0 -1
  97. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.d.ts +0 -23
  98. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +0 -87
  99. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +0 -1
  100. package/es/modules/corporate/company/pages/RegisterTablePage/index.d.ts +0 -10
  101. package/es/modules/corporate/company/pages/RegisterTablePage/index.js +0 -151
  102. package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +0 -1
  103. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.d.ts +0 -10
  104. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js +0 -52
  105. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map +0 -1
  106. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.d.ts +0 -7
  107. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +0 -94
  108. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +0 -1
  109. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.d.ts +0 -22
  110. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +0 -92
  111. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +0 -1
  112. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts +0 -1
  113. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js +0 -9
  114. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map +0 -1
  115. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.d.ts +0 -5
  116. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js +0 -52
  117. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js.map +0 -1
@@ -0,0 +1,122 @@
1
+ @import "../../../../../../style/common.css";
2
+
3
+ .controller-table-list-card {
4
+ height: 100%;
5
+
6
+ .tools-card-content .ant-table-wrapper {
7
+ .tool-bar .ant-btn {
8
+ padding: 0;
9
+ }
10
+
11
+ .ant-table-cell {
12
+ color: #5d5d5d;
13
+ }
14
+ }
15
+ }
16
+
17
+ .controller-table-item-info {
18
+ color: #5d5d5d;
19
+ font-weight: 500;
20
+ padding: 1px 0;
21
+ cursor: pointer;
22
+ display: flex;
23
+ align-items: center;
24
+
25
+ .ant-avatar {
26
+ width: 30px;
27
+ height: 30px;
28
+ line-height: 28px;
29
+ }
30
+
31
+ .controller-table-item-name {
32
+ flex: 1;
33
+ margin-left: 8px;
34
+ }
35
+ }
36
+
37
+ .controller-table-status-label {
38
+ display: inline-block;
39
+
40
+ .controller-status-button {
41
+ display: inline-block;
42
+ }
43
+ }
44
+
45
+ .controller-table-item-contact {
46
+ color: #868686;
47
+
48
+ div {
49
+ display: inline-block;
50
+
51
+ &:first-child {
52
+ margin-right: 8px;
53
+ }
54
+ }
55
+
56
+ span {
57
+ float: left;
58
+ display: inline-block;
59
+ width: 15px;
60
+ color: #cbcbcb;
61
+ margin-right: 5px;
62
+ }
63
+ }
64
+
65
+ .controller-table-item-email,
66
+ .controller-table-item-phone {
67
+ color: #5d5d5d;
68
+ }
69
+
70
+ .controller-table-item-identity {
71
+ .verification {
72
+ margin-right: 10px;
73
+ margin-left: 0;
74
+
75
+ &:last-child {
76
+ margin-right: 0;
77
+ }
78
+ }
79
+ }
80
+
81
+ .controller-table-list-header.list-view-header-tool {
82
+ padding: 0;
83
+ flex: 1;
84
+
85
+ .header-tool-space {
86
+ display: flex;
87
+
88
+ .title {
89
+ flex: 1;
90
+ }
91
+
92
+ .send-form-btn {
93
+ color: var(--purple-primary-color);
94
+ border-color: var(--purple-primary-color);
95
+ padding-left: 10px;
96
+ padding-right: 10px;
97
+ }
98
+
99
+ .import-btn,
100
+ .print-btn,
101
+ .send-notice-btn {
102
+ color: var(--purple-primary-color);
103
+ border-color: var(--purple-primary-color);
104
+ }
105
+ }
106
+ }
107
+
108
+ .controller-table-item-details {
109
+ .controller-table-item-date {
110
+ display: flex;
111
+ color: #868686;
112
+ margin-top: 4px;
113
+ .appointment {
114
+ margin-right: 10px;
115
+ }
116
+ .date-icon {
117
+ color: #cbcbcb;
118
+ display: inline-block;
119
+ margin-right: 5px;
120
+ }
121
+ }
122
+ }
@@ -1,4 +1,5 @@
1
1
  import React, { ReactNode } from "react";
2
+ import "./index.css";
2
3
  export type ControllerListProps = {
3
4
  controllerRegisterId: string;
4
5
  corporateId: string;
@@ -1,29 +1,37 @@
1
- import React, { useState } from "react";
1
+ import React, { useState, useRef, useEffect } from "react";
2
+ import TableCell, { columnsList } from "./TableCell";
3
+ import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
2
4
  import { Button, Dropdown, Modal } from "antd";
3
- import RegisterTable from "../../../../../../components/RegisterTable";
4
- import { faTrashSolid, faPrintSolid, faFileImportSolid, faEllipsisVerticalSolid, faFilterSolid, faPaperPlaneSolid, faUploadSolid, } from "@voplus/morpho-ui/es/faIcons";
5
- import TableCell, { columnsList, columnsSimpleList } from "./TableCell";
6
- import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
5
+ import { State } from "./state";
7
6
  import { useDeepMemo } from "@voplus/morpho-data";
7
+ import { faPrintSolid, faEllipsisVerticalSolid, faFileImportSolid, faTrashSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
8
+ import { useCorporateStore } from "../../../../../../data/corporate";
9
+ import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
10
+ import { useAutoUpdateListData } from "@voplus/morpho-document-core";
11
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
12
+ import { useControllerListEffect, useControllerStore } from "../../../../../../data/controller";
13
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
14
+ import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
15
+ import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
8
16
  import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
9
- import { useControllerListEffect, useControllerStore, } from "../../../../../../data/controller";
17
+ import ControllerStatusFilter from "../../controls/ControllerStatusFilter";
18
+ import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
19
+ import ControllerPropertiesView from "../ControllerPropertiesView";
10
20
  import SelectControllerSendForm from "../SelectControllerSendForm";
11
21
  import SelectControllerForm from "../SelectControllerForm";
12
- import { State } from "./state";
13
- import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
14
- import { useAutoUpdateListData } from "@voplus/morpho-document-core";
15
- import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
16
- import ControllerPropertiesView from "../ControllerPropertiesView";
17
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
18
- import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
22
+ import Scrollbars from "react-custom-scrollbars-2";
23
+ import classnames from "classnames";
24
+ import "./index.css";
19
25
  const ControllerTableList = (props) => {
20
- const asideContext = useAsideContentContext();
21
- const controllerStore = useControllerStore();
22
26
  const { controllerRegisterId, corporateId } = props;
23
- const state = useDeepMemo(() => new State(), [controllerRegisterId]);
24
27
  const [visible, setVisible] = useState(false);
25
28
  const [noticeVisible, setNoticeVisible] = useState(false);
26
- const [totalCount, setTotalCount] = useState(0);
29
+ const [height, setHeight] = useState(0);
30
+ const ref = useRef(null);
31
+ const corporateStore = useCorporateStore();
32
+ const controllerStore = useControllerStore();
33
+ const asideContext = useAsideContentContext();
34
+ const state = useDeepMemo(() => new State(), [controllerRegisterId]);
27
35
  /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
28
36
  const list = useCreateListDataState({
29
37
  filterDefaults: {
@@ -39,17 +47,40 @@ const ControllerTableList = (props) => {
39
47
  includes: "tags",
40
48
  },
41
49
  }, [controllerRegisterId]);
50
+ const columns = columnsList.map((col) => {
51
+ return {
52
+ ...col,
53
+ onCell: (record, rowIndex) => {
54
+ return {
55
+ record,
56
+ dataIndex: col.dataIndex,
57
+ rowIndex: rowIndex,
58
+ };
59
+ },
60
+ };
61
+ });
62
+ const columnsSimple = columnsSimpleList.map((col) => {
63
+ return {
64
+ ...col,
65
+ onCell: (record, rowIndex) => {
66
+ return {
67
+ record,
68
+ dataIndex: col.dataIndex,
69
+ rowIndex: rowIndex,
70
+ };
71
+ },
72
+ };
73
+ });
74
+ useEffect(() => {
75
+ if (ref.current) {
76
+ setHeight(ref.current.offsetHeight);
77
+ }
78
+ }, [ref]);
42
79
  /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
43
80
  useAutoUpdateListData(list, (d) => d.parentId === controllerRegisterId);
44
81
  useRenderOnChange(() => list.filters.options);
45
82
  /** 把ListDataState传给useControllerListEffect,使之可以自動更新loading, hasmore. */
46
- useControllerListEffect(list, (result, total) => {
47
- list.union(result);
48
- setTotalCount(total || 0);
49
- }, {
50
- Total: true,
51
- ...list.filters.options,
52
- });
83
+ useControllerListEffect(list, (result, total) => list.union(result), list.filters.options);
53
84
  // spec:1821 — CSP: Controller list overflow menu offers Send Notice, Print and Delete
54
85
  const items = [
55
86
  {
@@ -78,55 +109,53 @@ const ControllerTableList = (props) => {
78
109
  },
79
110
  },
80
111
  ];
81
- return observe(() => {
82
- const columns = ((asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimpleList : columnsList).map((col) => {
83
- return {
84
- ...col,
85
- onCell: (record, rowIndex) => {
86
- return {
87
- record,
88
- dataIndex: col.dataIndex,
89
- rowIndex: rowIndex,
90
- };
91
- },
92
- };
93
- });
94
- return (React.createElement(ListDataContext.Provider, { value: list },
95
- React.createElement("div", { className: "h-full flex flex-col" },
96
- React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: "p-5! [&_.header-tool-space]:gap-3.5 [&_button]:ml-0! [&_.ant-input-outlined]:h-auto! [&_.ant-input-outlined]:bg-bg-blue! [&_.ant-input-outlined]:border-border! [&_.ant-input-outlined:hover]:border-font-secondary! [&_.ant-input-outlined:focus]:border-font-secondary! [&_.ant-input-outlined:focus-within]:border-font-secondary! [&_button]:font-semibold!", searchOptions: { placeholder: "Search in register controller" },
112
+ return observe(() => (React.createElement("div", { className: "registers-page-item" },
113
+ React.createElement(ListDataContext.Provider, { value: list },
114
+ React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: classnames("controller-table-list-header"), searchOptions: { placeholder: "Search in register controller" },
97
115
  // spec:1822 — CSP: Controller list filter has Unconfirmed, ConfirmedController, ConfirmedNotController
98
116
  filterViewProps: {
99
- icon: (React.createElement(Button, null,
100
- React.createElement(FAIcon, { icon: faFilterSolid }))),
101
117
  columns: [
102
118
  React.createElement(ControllerStatusFilter, { key: "ControllerStatusFilter", defaultValue: ["Unconfirmed", "ConfirmedController"] }),
103
119
  ],
104
120
  }, rightExtra: () => (React.createElement(React.Fragment, null,
105
- React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-font-primary font-semibold uppercase", onClick: () => setVisible(true) }, "Send Form"),
106
- React.createElement(Button, { className: "text-font-primary font-semibold uppercase", icon: React.createElement(FAIcon, { icon: faUploadSolid }), onClick: async () => await controllerStore
121
+ React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form"),
122
+ React.createElement(Button, { className: "import-btn", onClick: async () => await controllerStore
107
123
  .importController(controllerRegisterId, { error: "message" })
108
- .then(() => props.onReload && props.onReload()) }, "SYNC"),
109
- React.createElement(Button, { className: "primary-button", onClick: () => (state.addAble = true) }, "+ NEW ENTRY"),
110
- React.createElement(Dropdown, { trigger: ["click", "hover"], menu: { items } },
111
- React.createElement(Button, { className: "w-[45px]" },
112
- React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }),
113
- React.createElement(RegisterTable, { columns: columns, dataSource: list.data.map((e, i) => {
114
- return { key: i, ...e };
115
- }), loading: list.loading, onLoadMore: () => list.triggerNextPage(), hasMore: list.data.length < totalCount, components: {
116
- body: {
117
- cell: TableCell,
118
- },
119
- }, onRowClick: (record) => {
120
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ControllerPropertiesView, { id: record.id }), {
121
- span: 12,
122
- });
123
- } })),
124
- state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
125
- state.addAble = false;
126
- } })),
127
- visible && (React.createElement(SelectControllerSendForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })),
128
- noticeVisible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setNoticeVisible(false) }))));
129
- });
124
+ .then(() => props.onReload && props.onReload()) }, "Import"),
125
+ React.createElement(AddDropDown2, { btnType: "text", onClick: () => {
126
+ state.addAble = true;
127
+ } }),
128
+ React.createElement(Dropdown, { classNames: { root: "controller-table-list-dropdown" }, trigger: ["click", "hover"], menu: { items } },
129
+ React.createElement(Button, null,
130
+ React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }) },
131
+ React.createElement("div", { ref: ref, className: "controller-table-list-card" },
132
+ React.createElement(Scrollbars, { autoHide: true },
133
+ React.createElement(TableListCard, { tableListProps: {
134
+ columns: (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimple : columns,
135
+ components: {
136
+ body: {
137
+ // row: DragTableRow,
138
+ cell: (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? TableCellSimple : TableCell,
139
+ },
140
+ },
141
+ scrollH: height - 72,
142
+ tableProps: {
143
+ onRow: (record) => {
144
+ return {
145
+ onClick: (e) => {
146
+ asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ControllerPropertiesView, { id: record.id }), {
147
+ span: 12,
148
+ });
149
+ },
150
+ };
151
+ },
152
+ },
153
+ }, ...props.tableCardProps }))))),
154
+ state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
155
+ state.addAble = false;
156
+ } })),
157
+ visible && (React.createElement(SelectControllerSendForm, { parentId: controllerRegisterId, onCancel: () => setVisible(false) })),
158
+ noticeVisible && (React.createElement(SelectControllerForm, { parentId: controllerRegisterId, onCancel: () => setNoticeVisible(false) })))));
130
159
  /** 新增controllerItem */
131
160
  async function onSave(unit) {
132
161
  /** SelectLegalContactDialog 选择/新增有identity信息的unit */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,EACN,YAAY,EACZ,YAAY,EACZ,iBAAiB,EACjB,uBAAuB,EACvB,aAAa,EACb,iBAAiB,EACjB,aAAa,GACb,MAAM,8BAA8B,CAAC;AACtC,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AACxE,OAAO,sBAAsB,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EACN,uBAAuB,EACvB,kBAAkB,GAElB,MAAM,mCAAmC,CAAC;AAC3C,OAAO,wBAAwB,MAAM,6BAA6B,CAAC;AACnE,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,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QACD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/components/ControllerTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEtE,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EACN,YAAY,EACZ,uBAAuB,EACvB,iBAAiB,EACjB,YAAY,EACZ,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,uBAAuB,EAAE,kBAAkB,EAAe,MAAM,mCAAmC,CAAC;AAC7G,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,YAAY,MAAM,uEAAuE,CAAC;AACjG,OAAO,qBAAqB,MAAM,uDAAuD,CAAC;AAC1F,OAAO,iBAAiB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EH,uBAAuB;IACvB,KAAK,UAAU,MAAM,CAAC,IAAmD;QACxE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,eAAe,CAAC,MAAM,CAAC;gBACxC,IAAI,EAAE,EAAE,UAAU,EAAE,oBAAqB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE;gBAC/D,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QACD,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
@@ -1,30 +1,20 @@
1
1
  import React from "react";
2
- import StatusLabel from "../../../../../../components/StatusLabel";
2
+ import classnames from "classnames";
3
+ // import "./index.css";
3
4
  import { observe } from "@voplus/morpho-ui";
4
5
  const ControllerStatusLabel = (props) => {
5
- const { status, className } = props;
6
- return observe(() => {
7
- const getColors = () => {
8
- switch (status === null || status === void 0 ? void 0 : status.replace(/\s+/g, "")) {
9
- case "ConfirmedController":
10
- return { bg: "bg-bg-green-data", text: "text-green-data", dot: "bg-green-data" };
11
- case "ConfirmedNotController":
12
- return { bg: "bg-bg-red-data", text: "text-bg-red", dot: "bg-bg-red" };
13
- case "NeedIdentity":
14
- return { bg: "bg-bg-brown-data", text: "text-brown-data", dot: "bg-brown-data" };
15
- case "Unconfirmed":
16
- default:
17
- return { bg: "bg-bg-grey", text: "text-font-grey", dot: "bg-font-grey" };
18
- }
6
+ var _a;
7
+ const item = transformStatus((_a = props.status) !== null && _a !== void 0 ? _a : "");
8
+ return observe(() => (React.createElement("span", { className: classnames("inline-flex items-center gap-1 px-2.5 py-1 rounded-xl bg-gray-200 text-xs font-medium uppercase", props.className, item.colorName) }, item.displayName ? (React.createElement(React.Fragment, null,
9
+ React.createElement("i", { className: "inline-block w-1.5 h-1.5 rounded-full bg-bg-grey" }),
10
+ React.createElement("span", null, item.displayName))) : null)));
11
+ function transformStatus(name, displayName) {
12
+ return {
13
+ name: name,
14
+ displayName: displayName || (name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join(" ")),
15
+ colorName: `${name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join("-").toLowerCase()}`,
19
16
  };
20
- const colors = getColors();
21
- const text = status === "ConfirmedNotController"
22
- ? "Not Controller"
23
- : status === "ConfirmedController"
24
- ? "Confirmed"
25
- : status;
26
- return React.createElement(StatusLabel, { status: status, text: text, className: className, colors: colors });
27
- });
17
+ }
28
18
  };
29
19
  export default ControllerStatusLabel;
30
20
  //# sourceMappingURL=ControllerStatusLabel2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ControllerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,WAAW,MAAM,0CAA0C,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE;IAChF,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAEpC,OAAO,OAAO,CAAC,GAAG,EAAE;QACnB,MAAM,SAAS,GAAG,GAAG,EAAE;YACtB,QAAQ,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,CAAC;gBACrC,KAAK,qBAAqB;oBACzB,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF,KAAK,wBAAwB;oBAC5B,OAAO,EAAE,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gBACxE,KAAK,cAAc;oBAClB,OAAO,EAAE,EAAE,EAAE,kBAAkB,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAClF,KAAK,aAAa,CAAC;gBACnB;oBACC,OAAO,EAAE,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;YAC3E,CAAC;QACF,CAAC,CAAC;QAEF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAE3B,MAAM,IAAI,GACT,MAAM,KAAK,wBAAwB;YAClC,CAAC,CAAC,gBAAgB;YAClB,CAAC,CAAC,MAAM,KAAK,qBAAqB;gBACjC,CAAC,CAAC,WAAW;gBACb,CAAC,CAAC,MAAM,CAAC;QAEZ,OAAO,oBAAC,WAAW,IAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,GAAI,CAAC;IAC1F,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
1
+ {"version":3,"file":"ControllerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,wBAAwB;AACxB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,qBAAqB,GAAG,CAAC,KAA8C,EAAE,EAAE;;IAChF,MAAM,IAAI,GAAG,eAAe,CAAC,MAAA,KAAK,CAAC,MAAM,mCAAI,EAAE,CAAC,CAAC;IAEjD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,8BACC,SAAS,EAAE,UAAU,CACpB,iGAAiG,EACjG,KAAK,CAAC,SAAS,EACf,IAAI,CAAC,SAAS,CACd,IAEA,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CACnB;QACC,2BAAG,SAAS,EAAC,kDAAkD,GAAG;QAClE,kCAAO,IAAI,CAAC,WAAW,CAAQ,CAC7B,CACH,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,IAAY,EAAE,WAAoB;QAC1D,OAAO;YACN,IAAI,EAAE,IAAI;YACV,WAAW,EAAE,WAAW,KAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,WAAW,EAAE,IAAI,CAAC,GAAG,CAAC,CAAA;YAC9D,SAAS,EAAE,GAAG,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CACf,KAAK,CAAC,WAAW,EAClB,IAAI,CAAC,GAAG,EACR,WAAW,EAAE,EAAE;SACjB,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
@@ -0,0 +1,22 @@
1
+ .corporate-status {
2
+ &.dormant,
3
+ &.dormant:hover {
4
+ background: var(--rejected-color);
5
+ }
6
+
7
+ &.live,
8
+ &.live:hover {
9
+ background: var(--active-color);
10
+ }
11
+
12
+ &.closed,
13
+ &.closed:hover {
14
+ background: #ff4d4f;
15
+ }
16
+ }
17
+
18
+ .corporate-status-label {
19
+ .ant-dropdown-menu-item:last-child {
20
+ display: none;
21
+ }
22
+ }
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import { CorporateStatus } from "../../../../../data/corporate";
3
+ import "./index.css";
3
4
  declare const CorporateStatusLabel: (props: {
4
5
  status: string;
5
6
  editable: boolean;
@@ -1,9 +1,16 @@
1
1
  import React from "react";
2
2
  import { observe } from "@voplus/morpho-ui";
3
3
  import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
4
+ import classnames from "classnames";
5
+ import "./index.css";
4
6
  const CorporateStatusLabel = (props) => {
5
7
  // spec:1863 — CSP: Corporate status label includes unknown status as a fourth option
6
- return observe(() => (React.createElement(DocumentStatusLabel, { className: "corporate-status", editable: props.editable, status: props.status, list: [{ name: "Live" }, { name: "Dormant" }, { name: "Closed" }], onChange: props.onChange })));
8
+ const list = [{ name: "Live" }, { name: "Dormant" }, { name: "Closed" }];
9
+ if ((props.status && list.findIndex((i) => i.name === props.status) === -1) || !props.status) {
10
+ list.push({ name: props.status || "" });
11
+ }
12
+ return observe(() => (React.createElement("div", { className: classnames({ "corporate-status-label": !props.status }, props.className) },
13
+ React.createElement(DocumentStatusLabel, { className: "corporate-status", editable: props.editable, list: list, status: props.status, onChange: props.onChange }))));
7
14
  };
8
15
  export default CorporateStatusLabel;
9
16
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAE1F,MAAM,oBAAoB,GAAG,CAAC,KAK7B,EAAE,EAAE;IACJ,qFAAqF;IACrF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,IACnB,SAAS,EAAC,kBAAkB,EAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,EACjE,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../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{ MemberListProps } from "../MemberTableListCard";
3
- declare const MemberTableList: (props: MemberListProps) => React.JSX.Element;
2
+ import MemberTableListCard from "../MemberTableListCard";
3
+ import "../../../../../../style/common.css";
4
+ declare const MemberTableList: (props: React.ComponentProps<typeof MemberTableListCard>) => React.JSX.Element;
4
5
  export default MemberTableList;
@@ -1,68 +1,14 @@
1
1
  import React from "react";
2
- import TableCellDetail, { columnsListDetail, columnsSimpleList } from "./TableCellDetail";
3
- import { Button, Dropdown } from "antd";
4
- import { faPrintSolid, faEllipsisVerticalSolid, faTrashSolid, faFilterSolid, faPaperPlaneSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
5
- import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
6
- import { observe, useAsideContentContext } from "@voplus/morpho-ui";
7
- import MemberStatusFilter from "../../controls/MemberStatusFilter";
8
- import MemberPropertiesView from "../CompanyMemberPropertiesView";
9
- import RegisterTable from "../../../../../../components/RegisterTable";
10
- import MemberRegisterContainer from "../MemberTableListCard/MemberRegisterContainer";
2
+ import { observe } from "@voplus/morpho-ui";
3
+ import MemberTableListCard from "../MemberTableListCard";
4
+ import "../../../../../../style/common.css";
11
5
  const MemberTableList = (props) => {
12
- const asideContext = useAsideContentContext();
13
- return observe(() => (React.createElement(MemberRegisterContainer, { ...props }, ({ list, state, dataSource, totalCount, setVisible, handleDelete, corporate, user }) => {
14
- // spec:1756 — CSP: Members register Add, Send Form, and ellipsis actions require corporate edit permission
15
- const items = [
16
- {
17
- key: "print",
18
- label: (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: window.location.origin + `/member/print/${props.corporateId}` }, "Print")),
19
- icon: React.createElement(FAIcon, { icon: faPrintSolid }),
20
- },
21
- {
22
- key: "delete-register",
23
- label: React.createElement("span", null, "Delete"),
24
- icon: React.createElement(FAIcon, { icon: faTrashSolid }),
25
- onClick: handleDelete,
26
- },
27
- ];
28
- // spec:1759 — CSP: Members register adapts column set based on detail mode and aside availability
29
- const columns = ((asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent) ? columnsSimpleList : columnsListDetail).map((col) => {
30
- return {
31
- ...col,
32
- onCell: (record, rowIndex) => {
33
- return {
34
- record,
35
- dataIndex: col.dataIndex,
36
- rowIndex: rowIndex,
37
- };
38
- },
39
- };
40
- });
41
- return (React.createElement("div", { className: "h-full flex flex-col" },
42
- React.createElement(ListHeaderTool, { addAble: false, sortable: false, className: "p-5! [&_.header-tool-space]:gap-3.5 [&_button]:ml-0! [&_.ant-input-outlined]:h-auto! [&_.ant-input-outlined]:bg-bg-blue! [&_.ant-input-outlined]:border-border! [&_.ant-input-outlined:hover]:border-font-secondary! [&_.ant-input-outlined:focus]:border-font-secondary! [&_.ant-input-outlined:focus-within]:border-font-secondary! [&_button]:font-semibold!", searchOptions: { placeholder: "Search in register controller" },
43
- // spec:1755 — CSP: Members register list filters by parent register and optional Active status
44
- filterViewProps: {
45
- icon: (React.createElement(Button, null,
46
- React.createElement(FAIcon, { icon: faFilterSolid }))),
47
- columns: [
48
- React.createElement(MemberStatusFilter, { key: "MemberStatusFilter", defaultValue: props.active ? ["Active"] : [] }),
49
- ],
50
- }, rightExtra: () => (React.createElement(React.Fragment, null,
51
- user.can("edit", corporate.p) && (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-font-primary font-semibold uppercase", onClick: () => setVisible(true) }, "Send Form")),
52
- React.createElement(Button, { className: "primary-button", onClick: () => (state.addAble = true) }, "+ NEW ENTRY"),
53
- React.createElement(Dropdown, { trigger: ["click", "hover"], menu: { items } },
54
- React.createElement(Button, { className: "w-[45px]" },
55
- React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }))))) }),
56
- React.createElement(RegisterTable, { columns: columns, dataSource: dataSource, loading: list.loading, onLoadMore: () => list.triggerNextPage(), hasMore: dataSource.length < totalCount, components: {
57
- body: {
58
- cell: TableCellDetail,
59
- },
60
- }, onRowClick: (record) => {
61
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(MemberPropertiesView, { id: record.id }), {
62
- span: 12,
63
- });
64
- } })));
65
- })));
6
+ return observe(() => (React.createElement("div", { className: "registers-page-item" },
7
+ React.createElement(MemberTableListCard, { ...props, tableDetail: true, listHeaderToolProps: {
8
+ searchHeader: true,
9
+ preExtra: () => React.createElement(React.Fragment, null),
10
+ searchOptions: { placeholder: "Search in register member" },
11
+ } }))));
66
12
  };
67
13
  export default MemberTableList;
68
14
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAoB,MAAM,OAAO,CAAC;AACzC,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE1F,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EACN,YAAY,EACZ,uBAAuB,EACvB,YAAY,EACZ,aAAa,EACb,iBAAiB,EACjB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,kBAAkB,MAAM,mCAAmC,CAAC;AACnE,OAAO,oBAAoB,MAAM,gCAAgC,CAAC;AAClE,OAAO,aAAa,MAAM,4CAA4C,CAAC;AACvE,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AAIrF,MAAM,eAAe,GAAG,CAAC,KAAsB,EAAE,EAAE;IAClD,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAE9C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OAAK,KAAK,IAChC,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,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AM,EAAE,EAAE;oBACtB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,oBAAoB,IAAC,EAAE,EAAE,MAAM,CAAC,EAAG,GAAI,EAAE;wBACjE,IAAI,EAAE,EAAE;qBACR,CAAC,CAAC;gBACJ,CAAC,GACA,CACG,CACN,CAAC;IACH,CAAC,CACwB,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
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,oCAAoC,CAAC;AAE5C,MAAM,eAAe,GAAG,CAAC,KAAuD,EAAE,EAAE;IACnF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,qBAAqB;QACnC,oBAAC,mBAAmB,OACf,KAAK,EACT,WAAW,QACX,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,17 +1,5 @@
1
1
  import React from "react";
2
- export declare const columnsSimpleList: ({
3
- title: React.JSX.Element;
4
- dataIndex: string;
5
- width: string;
6
- } | {
7
- title: React.JSX.Element;
8
- dataIndex: string;
9
- width?: undefined;
10
- } | {
11
- title: string;
12
- dataIndex: string;
13
- width: string;
14
- })[];
2
+ import "./index.css";
15
3
  export declare const columnsListDetail: ({
16
4
  title: React.JSX.Element;
17
5
  dataIndex: string;