@voplus/morpho-csp 10.0.10 → 10.0.12

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 (121) hide show
  1. package/es/components/CorporateUnitSelectDialog/index.d.ts +1 -1
  2. package/es/components/CorporateUnitSelectDialog/index.js +12 -4
  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 +9 -6
  6. package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
  7. package/es/components/RegisterTable/index.d.ts +31 -0
  8. package/es/components/RegisterTable/index.js +55 -0
  9. package/es/components/RegisterTable/index.js.map +1 -0
  10. package/es/components/StatusLabel/index.d.ts +36 -0
  11. package/es/components/StatusLabel/index.js +16 -0
  12. package/es/components/StatusLabel/index.js.map +1 -0
  13. package/es/data/clda-form/CLDAFormContent.js +3 -1
  14. package/es/data/clda-form/CLDAFormContent.js.map +1 -1
  15. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js +1 -3
  16. package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js.map +1 -1
  17. package/es/modules/corporate/company/components/CorporateList/index.js +1 -1
  18. package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -1
  19. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +13 -1
  20. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +94 -39
  21. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
  22. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +0 -1
  23. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +66 -95
  24. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
  25. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js +23 -13
  26. package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
  27. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.d.ts +0 -1
  28. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js +1 -8
  29. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js.map +1 -1
  30. package/es/modules/corporate/company/member-register/components/{MemberTableListCard → MemberTableList}/TableCellDetail.d.ts +13 -1
  31. package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +125 -0
  32. package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +1 -0
  33. package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +2 -3
  34. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +63 -9
  35. package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
  36. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.d.ts +21 -0
  37. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +86 -0
  38. package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +1 -0
  39. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +1 -16
  40. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +17 -133
  41. package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
  42. package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js +15 -12
  43. package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
  44. package/es/modules/corporate/company/officer-register/components/{OfficerTableListCard → OfficerTableList}/TableCellDetail.d.ts +13 -1
  45. package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +140 -0
  46. package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +1 -0
  47. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +2 -3
  48. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +74 -11
  49. package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
  50. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.d.ts +23 -0
  51. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +87 -0
  52. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +1 -0
  53. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +3 -24
  54. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +22 -140
  55. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
  56. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.d.ts +0 -2
  57. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +20 -37
  58. package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
  59. package/es/modules/corporate/company/pages/RegisterTablePage/index.d.ts +10 -0
  60. package/es/modules/corporate/company/pages/RegisterTablePage/index.js +152 -0
  61. package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +1 -0
  62. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.css +1 -1
  63. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +1 -1
  64. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +1 -1
  65. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
  66. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +5 -2
  67. package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
  68. package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.css +1 -1
  69. package/es/modules/corporate/filing-record/components/FilingList/index.js +1 -1
  70. package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
  71. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.d.ts +1 -0
  72. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +1 -0
  73. package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js.map +1 -1
  74. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.d.ts +1 -0
  75. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +1 -0
  76. package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
  77. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.d.ts +10 -0
  78. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js +48 -0
  79. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map +1 -0
  80. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.d.ts +7 -0
  81. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +94 -0
  82. package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +1 -0
  83. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.d.ts +33 -0
  84. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +121 -0
  85. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +1 -0
  86. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts +1 -0
  87. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js +9 -0
  88. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map +1 -0
  89. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.d.ts +5 -0
  90. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js +48 -0
  91. package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js.map +1 -0
  92. package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js +1 -2
  93. package/es/modules/corporate/virtual-address/receipents/components/ReceipentsSelect/state.js.map +1 -1
  94. package/es/modules/corporate/virtual-address-mail/components/MailTypeSelect/index.js +10 -10
  95. package/es/modules/corporate/virtual-address-mail/components/MailTypeSelect/index.js.map +1 -1
  96. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +30 -7
  97. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -1
  98. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +1 -1
  99. package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
  100. package/package.json +2 -1
  101. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.d.ts +0 -13
  102. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +0 -63
  103. package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +0 -1
  104. package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css +0 -122
  105. package/es/modules/corporate/company/controls/CorporateStatusLabel/index.css +0 -22
  106. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +0 -77
  107. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +0 -1
  108. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.d.ts +0 -13
  109. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js +0 -52
  110. package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js.map +0 -1
  111. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +0 -87
  112. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +0 -1
  113. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.d.ts +0 -13
  114. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js +0 -65
  115. package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js.map +0 -1
  116. package/es/page/RegisterTablePage/Controller.d.ts +0 -3
  117. package/es/page/RegisterTablePage/Controller.js +0 -134
  118. package/es/page/RegisterTablePage/Controller.js.map +0 -1
  119. package/es/page/RegisterTablePage/index.d.ts +0 -3
  120. package/es/page/RegisterTablePage/index.js +0 -63
  121. package/es/page/RegisterTablePage/index.js.map +0 -1
@@ -1,98 +1,27 @@
1
- import React, { useState, useRef, useEffect } from "react";
2
- import TableCellDetail, { columnsListDetail } from "./TableCellDetail";
3
- import TableCellSimple, { columnsSimpleList } from "./TableCellSimple";
4
- import TableCell, { columnsList } from "./TableCell";
5
- import { Badge, Button, Menu, Dropdown, Modal } from "antd";
6
- import { State } from "./state";
7
- import { useCorporate } from "../../../../../../data/corporate";
8
- import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
9
- import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
10
- import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
11
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
12
- import { faPrintSolid, faEllipsisVerticalSolid, faTrashSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
13
- import { useAutoUpdateListData } from "@voplus/morpho-document-core";
14
- import { observe, useRenderOnChange, useAsideContentContext } from "@voplus/morpho-ui";
1
+ import React from "react";
15
2
  import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
3
+ import Scrollbars from "react-custom-scrollbars-2";
4
+ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
5
+ import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
6
+ import TableCell, { columnsList } from "./TableCell";
16
7
  import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
17
- import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
8
+ import { observe } from "@voplus/morpho-ui";
18
9
  import AddDropDown2 from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
19
- import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
20
- import OfficerPropertiesView from "../OfficerPropertiesView";
21
- import OfficerQuickViewDialog from "../OfficerQuickView";
22
- import SelectOfficerForm from "../SelectOfficerForm";
23
- import Scrollbars from "react-custom-scrollbars-2";
24
- import classnames from "classnames";
25
- import "./index.css";
10
+ import { Badge, Menu, Button } from "antd";
11
+ import OfficerRegisterContainer from "./OfficerRegisterContainer";
26
12
  const OfficerTableListCard = (props) => {
27
- const { officersRegisterId, corporateId, isFilterPresent, tableDetail } = props;
28
- const { user } = useApplicationContext();
29
- const [visible, setVisible] = useState(false);
30
- const [officerTotal, setOfficerTotal] = useState(0);
31
- const [height, setHeight] = useState(0);
32
- const ref = useRef(null);
33
- const officerStore = useOfficerStore();
34
- const asideContext = useAsideContentContext();
35
- const corporate = useCorporate(corporateId, { includes: "permissions" });
36
- const state = useDeepMemo(() => new State(), [officersRegisterId]);
37
- /** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
38
- const list = useCreateListDataState({
39
- filterDefaults: {
40
- filters: filters(),
41
- includes: "tags,permissions",
42
- },
43
- }, [officersRegisterId]);
44
- useEffect(() => {
45
- if (ref.current) {
46
- setHeight(ref.current.offsetHeight);
47
- }
48
- }, [ref]);
49
- /** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
50
- useAutoUpdateListData(list, (d) => d.parentId === officersRegisterId);
51
- useRenderOnChange(() => list.filters.options);
52
- /** 把ListDataState传给useOfficerListEffect,使之可以自動更新loading, hasmore. */
53
- useOfficerListEffect(list, (result, total) => {
54
- list.union(result);
55
- setOfficerTotal(total !== null && total !== void 0 ? total : 0);
56
- }, {
57
- Total: true,
58
- ...list.filters.options,
59
- });
60
- // spec:1777 — CSP: Officers table header offers Send Form, Print, and Delete Register actions only with edit permission
61
- const items = [
62
- {
63
- key: "print",
64
- label: (React.createElement("a", { target: "_blank", rel: "noopener noreferrer", href: window.location.origin + `/officer/print/${corporateId}` }, "Print")),
65
- icon: React.createElement(FAIcon, { icon: faPrintSolid }),
66
- },
67
- {
68
- key: "delete-register",
69
- label: React.createElement("span", null, "Delete"),
70
- icon: React.createElement(FAIcon, { icon: faTrashSolid }),
71
- onClick: () => {
72
- Modal.confirm({
73
- title: "Confirm Delete",
74
- content: "Are you sure you want to delete this register?",
75
- okText: "Delete",
76
- cancelText: "Cancel",
77
- onOk: () => { var _a; return (_a = props.onDelete) === null || _a === void 0 ? void 0 : _a.call(props, corporateId, officersRegisterId); },
78
- });
79
- },
80
- },
81
- ];
82
- return observe(() => (React.createElement(React.Fragment, null,
83
- React.createElement(ListDataContext.Provider, { value: list },
84
- React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: classnames("officer-table-list-header", { card: props.type === "card" }),
13
+ return observe(() => (React.createElement(OfficerRegisterContainer, { ...props, children: ({ state, totalCount, setVisible, handleDelete, corporate, user }) => {
14
+ return (React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { addAble: false, sortable: false, searchHeader: false, className: "officer-table-list-header card",
85
15
  // spec:1778 — CSP: Active officers register defaults to a Present-only filter
86
16
  filterViewProps: {
87
17
  columns: [
88
- React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter", defaultValue: isFilterPresent ? ["Yes"] : [] }),
18
+ React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter", defaultValue: props.isFilterPresent ? ["Yes"] : [] }),
89
19
  ],
90
20
  }, preExtra: () => (React.createElement("div", { className: "title" },
91
21
  "Officers Register",
92
22
  " ",
93
- officerTotal ? React.createElement(Badge, { count: officerTotal, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null,
94
- props.type !== "card" && user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")),
95
- user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { trigger: ["click"], btnType: props.type === "card" ? "icon" : "text", overlay: React.createElement(Menu, { onClick: state.onSelect, items: [
23
+ totalCount ? React.createElement(Badge, { count: totalCount, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null,
24
+ user.can("edit", corporate.p) && (React.createElement(AddDropDown2, { trigger: ["click"], btnType: "icon", overlay: React.createElement(Menu, { onClick: state.onSelect, items: [
96
25
  { key: "Director", label: "Director" },
97
26
  { key: "Managing Director", label: "Managing Director" },
98
27
  { key: "Nominee Director", label: "Nominee Director" },
@@ -104,22 +33,15 @@ const OfficerTableListCard = (props) => {
104
33
  { key: "Auditor", label: "Auditor" },
105
34
  { key: "Manager", label: "Manager" },
106
35
  ] }) })),
107
- props.type !== "card" && user.can("edit", corporate.p) && (React.createElement(Dropdown, { classNames: { root: "officer-table-list-dropdown" }, trigger: ["click", "hover"], menu: { items } },
108
- React.createElement(Button, null,
109
- React.createElement(FAIcon, { icon: faEllipsisVerticalSolid })))),
110
- props.type === "card" && user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")))), ...props.listHeaderToolProps }) },
111
- React.createElement("div", { ref: ref, className: "officer-table-list-card", style: { height: props.type === "card" ? 298 : "100%" } },
36
+ user.can("edit", corporate.p) && (React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form")))) }) },
37
+ React.createElement("div", { className: "officer-table-list-card", style: { height: 298 } },
112
38
  React.createElement(Scrollbars, { autoHide: true },
113
39
  React.createElement(TableListCard
114
40
  // spec:1774 — CSP: Officers table renders three column layouts depending on view density
115
41
  , {
116
42
  // spec:1774 — CSP: Officers table renders three column layouts depending on view density
117
43
  tableListProps: {
118
- columns: (tableDetail
119
- ? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
120
- ? columnsSimpleList
121
- : columnsListDetail
122
- : columnsList).map((col) => {
44
+ columns: columnsList.map((col) => {
123
45
  return {
124
46
  ...col,
125
47
  onCell: (record, rowIndex) => {
@@ -132,62 +54,22 @@ const OfficerTableListCard = (props) => {
132
54
  };
133
55
  }),
134
56
  components: {
135
- body: {
136
- cell: tableDetail
137
- ? (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
138
- ? TableCellSimple
139
- : TableCellDetail
140
- : TableCell,
141
- },
57
+ body: { cell: TableCell },
142
58
  },
143
- scrollH: props.type === "card" ? 240 : height - 72,
59
+ scrollH: 240,
144
60
  // spec:1775 — CSP: Clicking an officer row opens an aside Properties panel or a Quick View dialog
145
61
  tableProps: {
146
62
  onRow: (record) => {
147
63
  return {
148
64
  onClick: (e) => {
149
- if (tableDetail) {
150
- asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(OfficerPropertiesView, { id: record.id }), {
151
- span: 12,
152
- });
153
- }
154
- else {
155
- state.quickId = record.id;
156
- state.visibleQuickView = true;
157
- }
65
+ state.quickId = record.id;
66
+ state.visibleQuickView = true;
158
67
  },
159
68
  };
160
69
  },
161
70
  },
162
- }, ...props.tableCardProps }))))),
163
- state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
164
- state.addAble = false;
165
- } })),
166
- visible && (React.createElement(SelectOfficerForm, { parentId: officersRegisterId, onCancel: () => setVisible(false) })),
167
- state.visibleQuickView && (React.createElement(OfficerQuickViewDialog, { id: state.quickId, visible: true, onCancel: () => {
168
- state.visibleQuickView = false;
169
- } })))));
170
- function filters() {
171
- const filter = [
172
- { c: "ParentNodeId", o: "=", l: "And", v1: officersRegisterId },
173
- ];
174
- if (isFilterPresent) {
175
- filter.push({ c: "Present", o: "=", l: "And", v1: "Yes" });
176
- }
177
- return filter;
178
- }
179
- /** 新增officerItem */
180
- async function onSave(unit) {
181
- /** SelectLegalContactDialog 选择/新增有identity信息的unit */
182
- if (unit) {
183
- const res = await officerStore.create({
184
- data: { RegisterId: officersRegisterId, UnitId: unit[0].id, Position: state.position },
185
- error: "message",
186
- });
187
- list.union([res]);
188
- }
189
- state.addAble = false;
190
- }
71
+ } })))));
72
+ } })));
191
73
  };
192
74
  export default OfficerTableListCard;
193
75
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,eAAe,EAAE,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,SAAS,EAAE,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAErD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC5D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,cAEN,MAAM,wEAAwE,CAAC;AAChF,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,EAAgB,WAAW,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EACN,YAAY,EACZ,uBAAuB,EACvB,YAAY,EACZ,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvF,OAAO,qBAAqB,MAAM,uD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,GAAI,CACtF;QACA,KAAK,CAAC,gBAAgB,IAAI,CAC1B,oBAAC,sBAAsB,IACtB,EAAE,EAAE,KAAK,CAAC,OAAO,EACjB,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,GAAG,EAAE;gBACd,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC;YAChC,CAAC,GACA,CACF,CACC,CACH,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,MAAM,MAAM,GAAmB;YAC9B,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,kBAAkB,EAAE;SAC/D,CAAC;QAEF,IAAI,eAAe,EAAE,CAAC;YACrB,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5D,CAAC;QAED,OAAO,MAAM,CAAC;IACf,CAAC;IAED,oBAAoB;IACpB,KAAK,UAAU,MAAM,CAAC,IAAmD;QACxE,qDAAqD;QACrD,IAAI,IAAI,EAAE,CAAC;YACV,MAAM,GAAG,GAAG,MAAM,YAAY,CAAC,MAAM,CAAC;gBACrC,IAAI,EAAE,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK,CAAC,QAAQ,EAAE;gBACtF,KAAK,EAAE,SAAS;aAChB,CAAC,CAAC;YACH,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;QACnB,CAAC;QAED,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;IACvB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names":[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ExD,CACT,CACC,CACH,GACA;gBAGH,6BAAK,SAAS,EAAC,yBAAyB,EAAC,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE;oBAC9D,oBAAC,UAAU,IAAC,QAAQ;wBACnB,oBAAC,aAAa;wBACb,yFAAyF;;4BAAzF,yFAAyF;4BACzF,cAAc,EAAE;gCACf,OAAO,EAAE,WAAW,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE;oCAChC,OAAO;wCACN,GAAG,GAAG;wCACN,MAAM,EAAE,CAAC,MAAW,EAAE,QAAgB,EAAE,EAAE;4CACzC,OAAO;gDACN,MAAM;gDACN,SAAS,EAAE,GAAG,CAAC,SAAS;gDACxB,QAAQ,EAAE,QAAQ;6CAClB,CAAC;wCACH,CAAC;qCACD,CAAC;gCACH,CAAC,CAAC;gCACF,UAAU,EAAE;oCACX,IAAI,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;iCACzB;gCACD,OAAO,EAAE,GAAG;gCACZ,kGAAkG;gCAClG,UAAU,EAAE;oCACX,KAAK,EAAE,CAAC,MAAM,EAAE,EAAE;wCACjB,OAAO;4CACN,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;gDACd,KAAK,CAAC,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC;gDAC1B,KAAK,CAAC,gBAAgB,GAAG,IAAI,CAAC;4CAC/B,CAAC;yCACD,CAAC;oCACH,CAAC;iCACD;6BACD,GACA,CACU,CACR,CACiB,CACxB,CAAC;QACH,CAAC,GACA,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
@@ -1,6 +1,4 @@
1
1
  import React from "react";
2
- import "./index.css";
3
- export declare function getColor(name: string): string;
4
2
  declare const OfficerStatusLabel: (props: {
5
3
  status?: string;
6
4
  className?: string;
@@ -1,46 +1,29 @@
1
1
  import React from "react";
2
2
  import classnames from "classnames";
3
- import "./index.css";
4
- import { Tooltip } from "antd";
5
- import { faBanSolid, faHourglassSolid, faPenSolid, faCircleCheckSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
6
3
  import { observe } from "@voplus/morpho-ui";
7
- export function getColor(name) {
8
- let color = "";
9
- switch (name) {
10
- case "Present":
11
- color = "#217EB2";
12
- break;
13
- case "Need Identity":
14
- color = "#868686";
15
- break;
16
- case "Past":
17
- color = "#B22121";
18
- break;
19
- case "Draft":
20
- color = "#AA8900";
21
- break;
22
- default:
23
- break;
24
- }
25
- return color;
26
- }
27
4
  // spec:1770 — CSP: Officer status icon shows Present, Past, Need Identity, or Draft with distinct iconography
28
5
  const OfficerStatusLabel = (props) => {
29
- var _a;
30
- const item = transformStatus((_a = props.status) !== null && _a !== void 0 ? _a : "");
31
- return observe(() => (React.createElement(Tooltip, { title: item.displayName, color: getColor(item.displayName) },
32
- React.createElement("span", { className: classnames("officer-status-button2", props.className, item.colorName) }, item.displayName ? (React.createElement(React.Fragment, null,
33
- item.displayName === "Present" && (React.createElement(FAIcon, { icon: faCircleCheckSolid, color: getColor(item.displayName) })),
34
- item.displayName === "Need Identity" && (React.createElement(FAIcon, { icon: faBanSolid, color: getColor(item.displayName) })),
35
- item.displayName === "Past" && (React.createElement(FAIcon, { icon: faHourglassSolid, color: getColor(item.displayName) })),
36
- item.displayName === "Draft" && (React.createElement(FAIcon, { icon: faPenSolid, color: getColor(item.displayName) })))) : null))));
37
- function transformStatus(name, displayName) {
38
- return {
39
- name: name,
40
- displayName: displayName || (name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join(" ")),
41
- colorName: `${name === null || name === void 0 ? void 0 : name.split(/(?=[A-Z])/).join("-").toLowerCase()}`,
6
+ const { status, className } = props;
7
+ return observe(() => {
8
+ const getColors = () => {
9
+ switch (status === null || status === void 0 ? void 0 : status.replace(/\s+/g, "")) {
10
+ case "Present":
11
+ return { text: "text-green-data", dot: "bg-green-data" };
12
+ case "Need Identity":
13
+ return { text: "text-brown-data", dot: "bg-brown-data" };
14
+ case "Past":
15
+ return { text: "text-bg-red", dot: "bg-bg-red" };
16
+ case "Draft":
17
+ return { text: "text-font-grey", dot: "bg-font-grey" };
18
+ default:
19
+ return { text: "text-font-grey", dot: "bg-font-grey" };
20
+ }
42
21
  };
43
- }
22
+ const colors = getColors();
23
+ return status ? (React.createElement("span", { className: classnames("inline-flex items-center gap-1 py-1 rounded-xl text-xs font-bold uppercase", colors.text, className) },
24
+ React.createElement("i", { className: classnames("inline-block w-1.5 h-1.5 rounded-full", colors.dot) }),
25
+ React.createElement("span", null, status))) : (React.createElement("span", { className: "text-font-primary" }, "__"));
26
+ });
44
27
  };
45
28
  export default OfficerStatusLabel;
46
29
  //# sourceMappingURL=OfficerStatusLabel2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"OfficerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,CAAC;AACrB,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EACN,UAAU,EACV,gBAAgB,EAChB,UAAU,EACV,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,UAAU,QAAQ,CAAC,IAAY;IACpC,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,QAAQ,IAAI,EAAE,CAAC;QACd,KAAK,SAAS;YACb,KAAK,GAAG,SAAS,CAAC;YAClB,MAAM;QACP,KAAK,eAAe;YACnB,KAAK,GAAG,SAAS,CAAC;YAClB,MAAM;QACP,KAAK,MAAM;YACV,KAAK,GAAG,SAAS,CAAC;YAClB,MAAM;QACP,KAAK,OAAO;YACX,KAAK,GAAG,SAAS,CAAC;YAClB,MAAM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oB;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,kBAAkB,CAAC"}
1
+ {"version":3,"file":"OfficerStatusLabel2.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,8GAA8G;AAC9G,MAAM,kBAAkB,GAAG,CAAC,KAA8C,EAAE,EAAE;IAC7E,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,SAAS;oBACb,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAC1D,KAAK,eAAe;oBACnB,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,eAAe,EAAE,CAAC;gBAC1D,KAAK,MAAM;oBACV,OAAO,EAAE,IAAI,EAAE,aAAa,EAAE,GAAG,EAAE,WAAW,EAAE,CAAC;gBAClD,KAAK,OAAO;oBACX,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;gBACxD;oBACC,OAAO,EAAE,IAAI,EAAE,gBAAgB,EAAE,GAAG,EAAE,cAAc,EAAE,CAAC;YACzD,CAAC;QACF,CAAC,CAAC;QAEF,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;QAC3B,OAAO,MAAM,CAAC,CAAC,CAAC,CACf,8BACC,SAAS,EAAE,UAAU,CACpB,4EAA4E,EAC5E,MAAM,CAAC,IAAI,EACX,SAAS,CACT;YAED,2BAAG,SAAS,EAAE,UAAU,CAAC,uCAAuC,EAAE,MAAM,CAAC,GAAG,CAAC,GAAI;YACjF,kCAAO,MAAM,CAAQ,CACf,CACP,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,mBAAmB,SAAU,CAC7C,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import React from "react";
2
+ declare const RegisterTablePage: (props: {
3
+ corporateId: string;
4
+ controllerRegisterId?: string;
5
+ membersRegisterId?: string;
6
+ officersRegisterId?: string;
7
+ shareTransactionId?: string;
8
+ url: string;
9
+ }) => React.JSX.Element;
10
+ export default RegisterTablePage;
@@ -0,0 +1,152 @@
1
+ import React, { useState, useEffect } from "react";
2
+ import { Tabs, Menu, message } from "antd";
3
+ import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
4
+ import { faShieldHalvedSolid, faUsersSolid, faComputerMouseSolid, faCoinsSolid, } from "@voplus/morpho-ui/es/faIcons";
5
+ import { useLayout, useApplicationContext } from "@voplus/morpho-data";
6
+ import { useParams } from "react-router-dom";
7
+ import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
8
+ import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
9
+ import MemberTableList from "../../member-register/components/MemberTableList";
10
+ import ControllerTableList from "../../controller-register/components/ControllerTableList";
11
+ import OfficerTableList from "../../officer-register/components/OfficerTableList";
12
+ import AddDropDown from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
13
+ import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
14
+ import { State } from "../../../../../components/CorporateNavMenu/state";
15
+ import { ConfigProvider } from "antd";
16
+ import antdTheme from "@voplus/morpho-theme/antdTheme";
17
+ import { observe } from "@voplus/morpho-ui";
18
+ const RegisterTablePage = (props) => {
19
+ const { corporateId, controllerRegisterId, membersRegisterId, officersRegisterId, shareTransactionId, url, } = props;
20
+ const layout = useLayout();
21
+ const params = useParams();
22
+ const store = useCorporateStore();
23
+ const context = useApplicationContext();
24
+ const [asideContext] = useState(AsideContent.createContext());
25
+ const [loaded, setLoaded] = useState(true);
26
+ const [activeKey, setActiveKey] = useState("");
27
+ const [state] = useState(new State(corporateId));
28
+ const corporate = useCorporate(corporateId, { includes: "registers" });
29
+ const pStatus = params.status
30
+ ? params.status
31
+ : controllerRegisterId
32
+ ? "controller"
33
+ : membersRegisterId
34
+ ? "members"
35
+ : officersRegisterId
36
+ ? "officers"
37
+ : shareTransactionId
38
+ ? "shareTransactions"
39
+ : "";
40
+ useEffect(() => {
41
+ setActiveKey(pStatus);
42
+ }, [pStatus]);
43
+ useEffect(() => {
44
+ state.update(corporate);
45
+ }, [corporate.registers]);
46
+ // 顶部卡片数据
47
+ const statCards = [
48
+ {
49
+ title: "TOTAL REGISTERS",
50
+ value: "24",
51
+ icon: React.createElement(FAIcon, { icon: faUsersSolid, className: "text-font-secondary text-2xl" }),
52
+ borderColor: "border-font-secondary",
53
+ textColor: "text-font-secondary",
54
+ bgIcon: "bg-bg-blue-data",
55
+ },
56
+ {
57
+ title: "VERIFICATION RATES",
58
+ value: "92%",
59
+ icon: React.createElement(FAIcon, { icon: faShieldHalvedSolid, className: "text-green-data text-2xl" }),
60
+ borderColor: "border-green-data",
61
+ textColor: "text-green-data",
62
+ bgIcon: "bg-bg-green-data",
63
+ },
64
+ {
65
+ title: "PENDING ACTIONS",
66
+ value: "03",
67
+ icon: React.createElement(FAIcon, { icon: faComputerMouseSolid, className: "text-brown-data text-2xl" }),
68
+ borderColor: "border-brown-data",
69
+ textColor: "text-brown-data",
70
+ bgIcon: "bg-bg-brown-data",
71
+ },
72
+ ];
73
+ return observe(() => {
74
+ var _a;
75
+ return (React.createElement(ConfigProvider, { theme: antdTheme },
76
+ React.createElement(AsideContent, { context: asideContext },
77
+ React.createElement("div", { className: "flex flex-col h-full" },
78
+ React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCoinsSolid }), title: "Corporate Stakeholder Registry", description: "Effortlessly Manage and Track Controller, Officers, and Company Members" }),
79
+ React.createElement("div", { className: "p-6 bg-bg-blue h-full overflow-hidden font-sans flex flex-col gap-6" },
80
+ context.host.isTest && (React.createElement("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 shrink-0" }, statCards.map((card, idx) => (React.createElement("div", { key: idx, className: `bg-white rounded-lg p-5 shadow-sm border-l-8 ${card.borderColor} flex items-center gap-5.5` },
81
+ React.createElement("div", { className: `w-14 h-14 flex items-center justify-center rounded-lg ${card.bgIcon}` }, card.icon),
82
+ React.createElement("div", null,
83
+ React.createElement("div", { className: "text-font-primary text-sm font-semibold mb-1 uppercase" }, card.title),
84
+ React.createElement("div", { className: `${card.textColor} text-2xl font-bold` }, card.value))))))),
85
+ React.createElement("div", { className: "flex-1 bg-white rounded-lg shadow-sm border border-border overflow-hidden" },
86
+ React.createElement(Tabs, { activeKey: activeKey, onChange: onChange, className: "w-full h-full -mb-px [&_.ant-tabs-nav]:bg-bg-table! [&_.ant-tabs-nav]:m-0! [&_.ant-tabs-tab]:px-3! [&_.ant-tabs-tab]:m-0! [&_.ant-tabs-tab-active_.ant-tabs-tab-btn]:text-font-secondary! [&_.ant-tabs-ink-bar]:bg-font-secondary! [&_.ant-tabs-tab]:text-font-primary! [&_.ant-tabs-tab:hover]:text-font-secondary!", items: [
87
+ ...(controllerRegisterId
88
+ ? [
89
+ {
90
+ key: "controller",
91
+ label: (React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Controller")),
92
+ children: loaded ? (React.createElement(ControllerTableList, { controllerRegisterId: controllerRegisterId, corporateId: corporateId, onReload: onReload, onDelete: () => onDeleteRegister(corporateId, controllerRegisterId) })) : null,
93
+ },
94
+ ]
95
+ : []),
96
+ ...(membersRegisterId
97
+ ? [
98
+ {
99
+ key: "members",
100
+ label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Members"),
101
+ children: (React.createElement(MemberTableList, { membersRegisterId: membersRegisterId, corporateId: corporateId, onDelete: () => onDeleteRegister(corporateId, membersRegisterId) })),
102
+ },
103
+ ]
104
+ : []),
105
+ ...(officersRegisterId
106
+ ? [
107
+ {
108
+ key: "officers",
109
+ label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Officers"),
110
+ children: (React.createElement(OfficerTableList, { officersRegisterId: officersRegisterId, corporateId: corporateId, onDelete: () => onDeleteRegister(corporateId, officersRegisterId) })),
111
+ },
112
+ ]
113
+ : []),
114
+ ], tabBarExtraContent: React.createElement("div", { className: "pr-7" },
115
+ React.createElement(AddDropDown, { trigger: ["click"], btnType: React.createElement("button", { type: "button", className: "underline-button uppercase" }, "ADD REGISTER"), overlay: React.createElement(Menu, { onClick: (e) => onAddRegister(e.key), items: (_a = state.addRegister) === null || _a === void 0 ? void 0 : _a.map((r, i) => {
116
+ return {
117
+ key: r.name,
118
+ label: React.createElement(React.Fragment, null,
119
+ "Register of ",
120
+ r.label),
121
+ disabled: r.name !== "OfficersRegister" &&
122
+ r.name !== "ShareTransactionsRegister" &&
123
+ r.name !== "MembersRegister" &&
124
+ r.name !== "ControllerRegister"
125
+ ? true
126
+ : false,
127
+ };
128
+ }) }) })) })))))));
129
+ });
130
+ function onReload() {
131
+ setLoaded(false);
132
+ setTimeout(() => {
133
+ setLoaded(true);
134
+ }, 100);
135
+ }
136
+ function onChange(key) {
137
+ layout.history.push(`${url}/registers/${key}`);
138
+ }
139
+ async function onAddRegister(name) {
140
+ const data = await store.register(corporateId, name, {
141
+ error: (error) => message.error(error.message),
142
+ });
143
+ state.update(data);
144
+ }
145
+ async function onDeleteRegister(corporateId, registerId) {
146
+ await store.registersDelete(corporateId, registerId, {
147
+ error: (error) => message.error(error.message),
148
+ });
149
+ }
150
+ };
151
+ export default RegisterTablePage;
152
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/RegisterTablePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EACN,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,YAAY,GACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,OAAO,mBAAmB,MAAM,0DAA0D,CAAC;AAC3F,OAAO,gBAAgB,MAAM,oDAAoD,CAAC;AAClF,OAAO,WAAW,MAAM,uEAAuE,CAAC;AAChG,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,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,KAAK,iBAAiB;wDAC5B,CAAC,CAAC,IAAI,KAAK,oBAAoB;wDAC9B,CAAC,CAAC,IAAI;wDACN,CAAC,CAAC,KAAK;iDACT,CAAC;4CACH,CAAC,CAAC,GACD,GAEF,CACG,GAEN,CACG,CACD,CACD,CACQ,CACC,CACjB,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;IAED,SAAS,QAAQ,CAAC,GAAW;QAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,IAAY;QACxC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE;YACpD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IACpB,CAAC;IAED,KAAK,UAAU,gBAAgB,CAAC,WAAmB,EAAE,UAAkB;QACtE,MAAM,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE;YACpD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
@@ -64,7 +64,7 @@
64
64
  }
65
65
  }
66
66
 
67
- .certificate-conetnt {
67
+ .certificate-content {
68
68
  display: flex;
69
69
  align-items: center;
70
70
  justify-content: space-between;
@@ -145,7 +145,7 @@ const ShareTransactionItems = (props) => {
145
145
  width: "200px",
146
146
  render: (cell) => (React.createElement(InlineEdit, { defaultValue: cell.data.consideration, editable: false, content: ({ store }) => observe(() => {
147
147
  var _a, _b, _c, _d;
148
- return (React.createElement("div", { className: "certificate-conetnt" }, cell.data.newCertificate || ((_a = cell.data.cancelledCertificates) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: "share-transaction-table-share" },
148
+ return (React.createElement("div", { className: "certificate-content" }, cell.data.newCertificate || ((_a = cell.data.cancelledCertificates) === null || _a === void 0 ? void 0 : _a.length) ? (React.createElement("div", { className: "share-transaction-table-share" },
149
149
  cell.data.newCertificate && (React.createElement("div", { className: "new-certificate" },
150
150
  ((_b = cell.data.cancelledCertificates) === null || _b === void 0 ? void 0 : _b.length) > 0 ? (React.createElement("div", { className: "new-certificate-title" }, "New")) : null,
151
151
  React.createElement(DocumentReference, { id: (_c = cell.data.newCertificate) === null || _c === void 0 ? void 0 : _c.id }))),
@@ -19,7 +19,7 @@ import VerificationInformation from "@voplus/morpho-org/es/modules/verification/
19
19
  const ShareTransactionProperties = (props) => {
20
20
  /** 加class name 为了方便做integration tests */
21
21
  const classId = "shareTransaction-properties";
22
- const { id, headerVisible, documentProperties, shareTransactionTitle = "SHARETRANSACTION PROPERTIES", documentTitle = "DOCUMENT PROPERTIES", shareTransactionProperties = [
22
+ const { id, headerVisible, documentProperties, shareTransactionTitle = "SHARE TRANSACTION PROPERTIES", documentTitle = "DOCUMENT PROPERTIES", shareTransactionProperties = [
23
23
  { name: "Date" },
24
24
  { name: "Transaction Type" },
25
25
  { name: "Currency" },
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAA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,EAAE,EAAE,CACd,gBAAgB,CAAC,WAAW,CAAC,CAAC,CAAC,CAC9B,8BAAM,SAAS,EAAC,kBAAkB,IAAE,gBAAgB,CAAC,WAAW,CAAQ,CACxE,CAAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,eAAgB,CAChD,EAEF,MAAM,EAAE,CAAC,KAAK,EAAE,EAAE,CACjB,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,GAE1E,CACI,CACP,CACD,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAEN,mBAAmB,EACnB,wBAAwB,GACxB,MAAM,0CAA0C,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,oBAAoB,EAAE,MAAM,sFAAsF,CAAC;AAC5H,OAAO,EAAE,gBAAgB,EAAE,MAAM,4DAA4D,CAAC;AAC9F,OAAO,YAAY,MAAM,2CAA2C,CAAC;AACrE,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,YA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  import { observe } from "@voplus/morpho-ui";
3
- import { ReloadState, ReloadContext, } from "@voplus/morpho-document-core/es/data/context/ReloadContext";
3
+ import { ReloadState, ReloadContext, useReloadContext, } from "@voplus/morpho-document-core/es/data/context/ReloadContext";
4
4
  import { useShareTransaction } from "../../../../../../data/share-transaction";
5
5
  import { useDocumentListEffect } from "@voplus/morpho-document-core";
6
6
  import { Badge } from "antd";
@@ -17,6 +17,9 @@ const ShareTransactionTabs = (props) => {
17
17
  const [docTotals, setDocTotals] = useState(0);
18
18
  const [activeKey, setActiveKey] = useState();
19
19
  const [context] = useState(() => new ReloadState());
20
+ const parentContext = useReloadContext();
21
+ // if there is a parent context, use it. Otherwise, use the local context.
22
+ const reloadContext = parentContext || context;
20
23
  const appContext = useApplicationContext();
21
24
  const shareTransaction = useShareTransaction(id, {
22
25
  reload: true,
@@ -130,7 +133,7 @@ const ShareTransactionTabs = (props) => {
130
133
  });
131
134
  return observe(() => {
132
135
  var _a;
133
- return (React.createElement(ReloadContext.Provider, { value: context },
136
+ return (React.createElement(ReloadContext.Provider, { value: reloadContext },
134
137
  React.createElement(DocumentTabs, { id: id, active: properties ? "Properties" : "Shares", actionPlan: !!((_a = shareTransaction.flags) === null || _a === void 0 ? void 0 : _a.includes("ActionPlan")), tabItems: items, onChange: (key) => setActiveKey(key) })));
135
138
  });
136
139
  };