@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
@@ -1,55 +0,0 @@
1
- import React, { useState, useRef, useEffect } from "react";
2
- import { Table } from "antd";
3
- import { observe } from "@voplus/morpho-ui";
4
- /**
5
- * 具有无限滚动和自动适应高度功能的基于 antd Table 的列表组件。
6
- * 会自动监听页面容器的高度,计算可容纳的Table Body高度并将其绑定给 `scroll={{ y: xxx }}` 以实现表头固定。
7
- * 监听滚动到底部以触发分页加载。
8
- */
9
- function RegisterTable(props) {
10
- const { dataSource, columns, loading, onLoadMore, hasMore, onRowClick, components, ...rest } = props;
11
- const [tableScrollY, setTableScrollY] = useState(200);
12
- const tableContainerRef = useRef(null);
13
- // 监听容器高度变化来动态设置表格的 scroll.y
14
- useEffect(() => {
15
- const observer = new ResizeObserver((entries) => {
16
- for (let entry of entries) {
17
- const height = entry.contentRect.height;
18
- // 表头高度约56px,减去表头即为Table Body的可用高度
19
- setTableScrollY(Math.max(height - 56, 100));
20
- }
21
- });
22
- if (tableContainerRef.current) {
23
- observer.observe(tableContainerRef.current);
24
- }
25
- return () => observer.disconnect();
26
- }, []);
27
- // 处理滚动事件,触底则加载下一页
28
- const handleScroll = (e) => {
29
- var _a;
30
- const target = e.target;
31
- if ((_a = target.classList) === null || _a === void 0 ? void 0 : _a.contains("ant-table-body")) {
32
- const { scrollTop, scrollHeight, clientHeight } = target;
33
- if (scrollTop + clientHeight >= scrollHeight - 20) {
34
- if (hasMore && !loading && onLoadMore) {
35
- onLoadMore();
36
- }
37
- }
38
- }
39
- };
40
- return observe(() => (React.createElement("div", { ref: tableContainerRef, className: "flex-1 overflow-hidden", onScrollCapture: handleScroll },
41
- React.createElement(Table, { columns: columns, dataSource: dataSource, loading: loading, scroll: { y: tableScrollY }, components: components, onRow: (record) => {
42
- var _a;
43
- return {
44
- className: "group/row",
45
- onClick: () => {
46
- if (onRowClick) {
47
- onRowClick(record);
48
- }
49
- },
50
- ...(_a = rest.onRow) === null || _a === void 0 ? void 0 : _a.call(rest, record),
51
- };
52
- }, pagination: false, className: "whitespace-nowrap [&_.ant-table-thead_>_tr_>_th]:p-5! [&_.ant-table-thead_>_tr_>_th]:text-xs! [&_.ant-table-thead_>_tr_>_th]:uppercase! [&_.ant-table-thead_>_tr_>_th]:font-bold! [&_.ant-table-thead_>_tr_>_th]:text-font-primary! [&_.ant-table-thead_>_tr_>_th]:bg-bg-table!", rowClassName: "group", rowKey: "id", ...rest }))));
53
- }
54
- export default RegisterTable;
55
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/RegisterTable/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,KAAK,EAAc,MAAM,MAAM,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAwB5C;;;;GAIG;AACH,SAAS,aAAa,CAA4B,KAA4B;IAC7E,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,GAAG,IAAI,EAAE,GAC3F,KAAK,CAAC;IAEP,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC;IACtD,MAAM,iBAAiB,GAAG,MAAM,CAAiB,IAAI,CAAC,CAAC;IAEvD,4BAA4B;IAC5B,SAAS,CAAC,GAAG,EAAE;QACd,MAAM,QAAQ,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,EAAE,EAAE;YAC/C,KAAK,IAAI,KAAK,IAAI,OAAO,EAAE,CAAC;gBAC3B,MAAM,MAAM,GAAG,KAAK,CAAC,WAAW,CAAC,MAAM,CAAC;gBACxC,kCAAkC;gBAClC,eAAe,CAAC,IAAI,CAAC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AU,CAAC,MAAM,CAAC,CAAC;wBACpB,CAAC;oBACF,CAAC;oBACD,GAAG,MAAA,IAAI,CAAC,KAAK,qDAAG,MAAM,CAAC;iBACvB,CAAC;YACH,CAAC,EACD,UAAU,EAAE,KAAK,EACjB,SAAS,EAAC,iRAAiR,EAC3R,YAAY,EAAC,OAAO,EACpB,MAAM,EAAC,IAAI,KACP,IAAI,GACP,CACG,CACN,CAAC,CAAC;AACJ,CAAC;AAED,eAAe,aAAa,CAAC"}
@@ -1,36 +0,0 @@
1
- import React from "react";
2
- /**
3
- * 状态标签组件的属性接口
4
- */
5
- interface StatusLabelProps {
6
- /**
7
- * 原始状态值,主要用于判定是否显示标签。
8
- * 如果没有传入 `text`,则会将此值直接用于展示。
9
- */
10
- status?: string;
11
- /**
12
- * 覆盖默认状态的显示文本,可选项。
13
- * 当需要实际显示的文案与后台返回的状态值 (status) 不一致时使用。
14
- */
15
- text?: string;
16
- /** 组件的容器自定义 className */
17
- className?: string;
18
- /**
19
- * 定义标签的各项颜色 Tailwind 类名
20
- */
21
- colors: {
22
- /** 标签整体背景颜色类名 */
23
- bg: string;
24
- /** 标签文本颜色类名 */
25
- text: string;
26
- /** 前侧状态小圆点颜色类名 */
27
- dot: string;
28
- };
29
- }
30
- /**
31
- * 通用状态 UI 组件 (共用部分提炼)。
32
- * 根据不同的状态显示不同的文字和对应的主题色(带有左侧实心小圆点的胶囊样式)。
33
- * 常用于 MemberRegister、ControllerRegister 等列表或详情处的状态呈现。
34
- */
35
- declare const StatusLabel: (props: StatusLabelProps) => React.JSX.Element;
36
- export default StatusLabel;
@@ -1,16 +0,0 @@
1
- import React from "react";
2
- import classnames from "classnames";
3
- import { observe } from "@voplus/morpho-ui";
4
- /**
5
- * 通用状态 UI 组件 (共用部分提炼)。
6
- * 根据不同的状态显示不同的文字和对应的主题色(带有左侧实心小圆点的胶囊样式)。
7
- * 常用于 MemberRegister、ControllerRegister 等列表或详情处的状态呈现。
8
- */
9
- const StatusLabel = (props) => {
10
- const { status, text, className, colors } = props;
11
- return observe(() => (React.createElement("span", { className: classnames("inline-flex items-center gap-1 px-2.5 py-1 rounded-xl text-[10px] font-bold uppercase", colors.bg, colors.text, className) }, status ? (React.createElement(React.Fragment, null,
12
- React.createElement("i", { className: classnames("inline-block w-1.5 h-1.5 rounded-full", colors.dot) }),
13
- React.createElement("span", null, text || status))) : null)));
14
- };
15
- export default StatusLabel;
16
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/StatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AA+B5C;;;;GAIG;AACH,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC/C,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAElD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,8BACC,SAAS,EAAE,UAAU,CACpB,uFAAuF,EACvF,MAAM,CAAC,EAAE,EACT,MAAM,CAAC,IAAI,EACX,SAAS,CACT,IAEA,MAAM,CAAC,CAAC,CAAC,CACT;QACC,2BAAG,SAAS,EAAE,UAAU,CAAC,uCAAuC,EAAE,MAAM,CAAC,GAAG,CAAC,GAAI;QACjF,kCAAO,IAAI,IAAI,MAAM,CAAQ,CAC3B,CACH,CAAC,CAAC,CAAC,IAAI,CACF,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
@@ -1,125 +0,0 @@
1
- import { faEllipsisVerticalSolid, faEnvelopeSolid, faPhoneSolid, faBarsProgressSolid, faUserGroupSolid, faSignalSolid, faCertificateSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
2
- import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
3
- import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
4
- import { observe, useAsideContentContext } from "@voplus/morpho-ui";
5
- import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
6
- import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
7
- import classnames from "classnames";
8
- import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
9
- import React from "react";
10
- import CompanyMemberMenu from "../../../controls/CompanyRegisterMenu";
11
- import TagView from "@voplus/morpho-org/es/modules/tag/TagView/TagView2";
12
- import { useMemberStore, useMember } from "../../../../../../data/member";
13
- import MemberStatusLabel from "../../controls/MemberStatusLabel/MemberStatusLabel2";
14
- export const columnsSimpleList = [
15
- {
16
- title: (React.createElement(React.Fragment, null,
17
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
18
- " Controller Details")),
19
- dataIndex: "details",
20
- width: "40%",
21
- },
22
- {
23
- title: (React.createElement(React.Fragment, null,
24
- React.createElement(FAIcon, { icon: faSignalSolid }),
25
- " Status")),
26
- dataIndex: "status",
27
- },
28
- {
29
- title: (React.createElement(React.Fragment, null,
30
- React.createElement(FAIcon, { icon: faCertificateSolid }),
31
- " Identity Status")),
32
- dataIndex: "identity",
33
- },
34
- {
35
- title: " ",
36
- dataIndex: "menu",
37
- width: "72px",
38
- },
39
- ];
40
- export const columnsListDetail = [
41
- {
42
- title: (React.createElement(React.Fragment, null,
43
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
44
- " Members Name")),
45
- dataIndex: "name",
46
- width: "32%",
47
- },
48
- {
49
- title: (React.createElement(React.Fragment, null,
50
- React.createElement(FAIcon, { icon: faBarsProgressSolid }),
51
- " Tags")),
52
- dataIndex: "tags",
53
- },
54
- {
55
- title: (React.createElement(React.Fragment, null,
56
- React.createElement(FAIcon, { icon: faSignalSolid }),
57
- " Status")),
58
- dataIndex: "status",
59
- },
60
- {
61
- title: (React.createElement(React.Fragment, null,
62
- React.createElement(FAIcon, { icon: faCertificateSolid }),
63
- " Identity Status")),
64
- dataIndex: "identity",
65
- },
66
- {
67
- title: " ",
68
- dataIndex: "menu",
69
- width: "72px",
70
- },
71
- ];
72
- const TableCellDetail = (props) => {
73
- var _a;
74
- const { dataIndex, record, rowIndex, children, ...restProps } = props;
75
- const isAside = (_a = useAsideContentContext()) === null || _a === void 0 ? void 0 : _a.asideContent;
76
- const store = useMemberStore();
77
- return observe(() => {
78
- const member = useMember(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
79
- const renderContent = () => {
80
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
81
- switch (dataIndex) {
82
- case "name":
83
- return (React.createElement("div", { className: "flex items-center gap-3.5" },
84
- React.createElement(UnitAvatar, { unit: member.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
85
- React.createElement("div", { className: "flex flex-col gap-1" },
86
- ((_a = member.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, member.identity.fullName)) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null,
87
- React.createElement("div", { className: "flex items-center gap-4 text-xs text-font-grey font-medium" },
88
- React.createElement("div", null,
89
- React.createElement(FAIcon, { icon: faEnvelopeSolid }),
90
- member.email || ((_b = member.contact) === null || _b === void 0 ? void 0 : _b.email) ? (React.createElement("span", { className: "ml-1" }, member.email || ((_c = member.contact) === null || _c === void 0 ? void 0 : _c.email))) : (" -")),
91
- React.createElement("div", null,
92
- React.createElement(FAIcon, { icon: faPhoneSolid }),
93
- member.phone || ((_d = member.contact) === null || _d === void 0 ? void 0 : _d.phone) ? (React.createElement("span", { className: "ml-1" }, member.phone || ((_e = member.contact) === null || _e === void 0 ? void 0 : _e.phone))) : (" -"))))));
94
- case "details":
95
- return (React.createElement("div", { className: "flex items-center gap-3.5" },
96
- React.createElement(UnitAvatar, { unit: member.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
97
- React.createElement("div", { className: "flex flex-col gap-1" },
98
- ((_f = member.identity) === null || _f === void 0 ? void 0 : _f.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, member.identity.fullName)) : member.contact ? (React.createElement(UnitNameNoteAlert, { id: member.contact.id, name: member.contact.name })) : null,
99
- React.createElement("div", { className: "flex items-center gap-2 text-xs text-font-grey font-medium" }, "tags"))));
100
- case "identity":
101
- return ((_g = member.identity) === null || _g === void 0 ? void 0 : _g.id) ? (React.createElement(IdentityStatus, { id: member.identity.id, className: isAside ? "gap-2.5!" : undefined })) : null;
102
- case "status":
103
- return (React.createElement("div", { style: { display: "flex" } },
104
- React.createElement(MemberStatusLabel, { className: classnames("member-table-status-label", {
105
- "need-identity": !member.identity,
106
- }), status: !member.identity ? "Need Identity" : member.status })));
107
- case "tags":
108
- return ((_h = member.tags) === null || _h === void 0 ? void 0 : _h.length) ? (React.createElement(TagView, { id: record.id, tags: member.tags, editable: false, items: store.items, maxCount: 1, className: "[&_.ant-tag]:h-5! [&_.ant-tag]:mr-1.5! [&_.ant-tag]:mt-0! [&_.ant-tag]:px-2.5! [&_.ant-tag]:text-[10px]! [&_.ant-tag]:font-bold! [&_.ant-tag]:text-font-primary! [&_.ant-tag]:bg-bg-grey! [&_.ant-tag]:border-border! [&_.maxCount]:text-font-primary! [&_.maxCount]:text-xs! [&_.maxCount]:mr-0!" })) : ("__");
109
- case "menu":
110
- return (React.createElement("div", { className: "opacity-0 group-hover/row:opacity-100 transition-opacity" },
111
- React.createElement(ToolBar, { id: record.id, showMenu: false },
112
- React.createElement(Open, { url: `/member/${record.id}` }),
113
- React.createElement(CompanyMemberMenu, { id: record.id, title: "Member Menu", unitId: (_j = member.contact) === null || _j === void 0 ? void 0 : _j.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
114
- data: { ContactId: unitId },
115
- error: "message",
116
- }) }))));
117
- default:
118
- return children;
119
- }
120
- };
121
- return React.createElement("td", { ...restProps }, renderContent());
122
- });
123
- };
124
- export default TableCellDetail;
125
- //# sourceMappingURL=TableCellDetail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,aAAa,EACb,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,iBAAiB,MAAM,qDAAqD,CAAC;AAEpF,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;kCAChC,CACH;QACD,SAAS,EAAE,SAAS;QACpB,KAAK,EAAE,KAAK;KACZ;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,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AC;gBACH;oBACC,OAAO,QAAQ,CAAC;YAClB,CAAC;QACF,CAAC,CAAC;QAEF,OAAO,+BAAQ,SAAS,IAAG,aAAa,EAAE,CAAM,CAAC;IAClD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -1,21 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { IMember } from "../../../../../../data/member";
3
- import { State } from "./state";
4
- export interface MemberRegisterContainerProps {
5
- membersRegisterId: string;
6
- corporateId: string;
7
- active?: boolean;
8
- onDelete?: (corporateId: string, membersRegisterId: string) => void;
9
- children: (context: {
10
- list: any;
11
- state: State;
12
- dataSource: IMember[];
13
- totalCount: number;
14
- setVisible: (v: boolean) => void;
15
- handleDelete: () => void;
16
- corporate: any;
17
- user: any;
18
- }) => ReactNode;
19
- }
20
- declare const MemberRegisterContainer: (props: MemberRegisterContainerProps) => React.JSX.Element;
21
- export default MemberRegisterContainer;
@@ -1,86 +0,0 @@
1
- import React, { useState } from "react";
2
- import { useDeepMemo, useApplicationContext } from "@voplus/morpho-data";
3
- import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
- import { useMemberListEffect, useMemberStore } from "../../../../../../data/member";
5
- import { useAutoUpdateListData } from "@voplus/morpho-document-core";
6
- import { observe, useRenderOnChange } from "@voplus/morpho-ui";
7
- import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
8
- import SelectMemberForm from "../SelectMemberSendForm";
9
- import MemberQuickViewDialog from "../CompanyMemberQuickView";
10
- import { State } from "./state";
11
- import { useCorporate } from "../../../../../../data/corporate";
12
- import { Modal } from "antd";
13
- const MemberRegisterContainer = (props) => {
14
- const { membersRegisterId, corporateId, active, children, onDelete } = props;
15
- const { user } = useApplicationContext();
16
- const memberStore = useMemberStore();
17
- const corporate = useCorporate(corporateId, { includes: "permissions" });
18
- const [visible, setVisible] = useState(false);
19
- const [totalCount, setTotalCount] = useState(0);
20
- const state = useDeepMemo(() => new State(), [membersRegisterId]);
21
- // spec:1755 — CSP: Members register list filters by parent register and optional Active status
22
- function filters() {
23
- let filter = [{ c: "ParentNodeId", o: "=", l: "And", v1: membersRegisterId }];
24
- if (active) {
25
- filter.push({ c: "Status", o: "=", l: "And", v1: "Active" });
26
- }
27
- return filter;
28
- }
29
- const list = useCreateListDataState({
30
- filterDefaults: {
31
- filters: filters(),
32
- includes: "permissions",
33
- },
34
- }, [membersRegisterId]);
35
- useAutoUpdateListData(list, (d) => d.parentId === membersRegisterId);
36
- useRenderOnChange(() => list.filters.options);
37
- useMemberListEffect(list, (result, total) => {
38
- list.union(result);
39
- setTotalCount(total !== null && total !== void 0 ? total : 0);
40
- }, {
41
- Total: true,
42
- ...list.filters.options,
43
- });
44
- // spec:1757 — CSP: Adding a member from the company register selects a unit and creates a member record
45
- async function onSave(unit) {
46
- if (unit) {
47
- const res = await memberStore.create({
48
- data: { RegisterId: membersRegisterId, UnitId: unit[0].id },
49
- error: "message",
50
- });
51
- list.union([res]);
52
- }
53
- state.addAble = false;
54
- }
55
- const handleDelete = () => {
56
- Modal.confirm({
57
- title: "Confirm Delete",
58
- content: "Are you sure you want to delete this register?",
59
- okText: "Delete",
60
- cancelText: "Cancel",
61
- onOk: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(corporateId, membersRegisterId),
62
- });
63
- };
64
- return observe(() => (React.createElement(React.Fragment, null,
65
- React.createElement(ListDataContext.Provider, { value: list }, children({
66
- list,
67
- state,
68
- dataSource: list.data.map((e, i) => {
69
- return { key: i, ...e };
70
- }),
71
- totalCount,
72
- setVisible,
73
- handleDelete,
74
- corporate,
75
- user,
76
- })),
77
- state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
78
- state.addAble = false;
79
- } })),
80
- visible && (React.createElement(SelectMemberForm, { parentId: membersRegisterId, onCancel: () => setVisible(false) })),
81
- state.visibleQuickView && (React.createElement(MemberQuickViewDialog, { id: state.quickId, visible: true, onCancel: () => {
82
- state.visibleQuickView = false;
83
- } })))));
84
- };
85
- export default MemberRegisterContainer;
86
- //# sourceMappingURL=MemberRegisterContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"MemberRegisterContainer.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAW,MAAM,+BAA+B,CAAC;AAC7F,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAE/D,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,qBAAqB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAmB7B,MAAM,uBAAuB,GAAG,CAAC,KAAmC,EAAE,EAAE;IACvE,MAAM,EAAE,iBAAiB,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC7E,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,EAAE,EAAE,QAAQ,EAAE,aAAa,EAAE,CAAC,CAA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AAC,iBAAiB,IACjB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,GAAG,EAAE;gBACd,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACvB,CAAC,GACA,CACF;QACA,OAAO,IAAI,CACX,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,iBAAiB,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACpF;QACA,KAAK,CAAC,gBAAgB,IAAI,CAC1B,oBAAC,qBAAqB,IACrB,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;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -1,140 +0,0 @@
1
- import { faEllipsisVerticalSolid, faEnvelopeSolid, faPhoneSolid, faCalendarSolid, faUserGroupSolid, faCalendarDaysSolid, faCalendarXmarkSolid, faCubeSolid, faCalendarCheckSolid, faBanSolid, faCertificateSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
2
- import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
3
- import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
4
- import { observe, useAsideContentContext } from "@voplus/morpho-ui";
5
- import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
6
- import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
7
- import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
8
- import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
9
- import React from "react";
10
- import { useOfficerStore, useOfficer } from "../../../../../../data/officer";
11
- import CompanOfficerMenu from "../../../controls/CompanyRegisterMenu";
12
- import OfficerStatusLabel from "../../controls/OfficerStatusLabel/OfficerStatusLabel2";
13
- export const columnsSimpleList = [
14
- {
15
- title: (React.createElement(React.Fragment, null,
16
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
17
- " Officers Details")),
18
- dataIndex: "details",
19
- width: "40%",
20
- },
21
- {
22
- title: (React.createElement(React.Fragment, null,
23
- React.createElement(FAIcon, { icon: faCubeSolid }),
24
- " POSITION AND STATUS")),
25
- dataIndex: "position",
26
- },
27
- {
28
- title: (React.createElement(React.Fragment, null,
29
- React.createElement(FAIcon, { icon: faCertificateSolid }),
30
- " Identity Status")),
31
- dataIndex: "identity",
32
- },
33
- {
34
- title: " ",
35
- dataIndex: "menu",
36
- width: "72px",
37
- },
38
- ];
39
- export const columnsListDetail = [
40
- {
41
- title: (React.createElement(React.Fragment, null,
42
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
43
- " Officers Name")),
44
- dataIndex: "name",
45
- width: "32%",
46
- },
47
- {
48
- title: (React.createElement(React.Fragment, null,
49
- React.createElement(FAIcon, { icon: faCalendarSolid }),
50
- " Appointment")),
51
- dataIndex: "appointment",
52
- },
53
- {
54
- title: (React.createElement(React.Fragment, null,
55
- React.createElement(FAIcon, { icon: faCalendarXmarkSolid }),
56
- " Cease")),
57
- dataIndex: "cease",
58
- },
59
- {
60
- title: (React.createElement(React.Fragment, null,
61
- React.createElement(FAIcon, { icon: faCubeSolid }),
62
- " POSITION AND STATUS")),
63
- dataIndex: "position",
64
- },
65
- {
66
- title: (React.createElement(React.Fragment, null,
67
- React.createElement(FAIcon, { icon: faCertificateSolid }),
68
- " Identity Status")),
69
- dataIndex: "identity",
70
- },
71
- {
72
- title: " ",
73
- dataIndex: "menu",
74
- width: "72px",
75
- },
76
- ];
77
- const renderDate = (date) => date ? (React.createElement(UTCShortDate, { value: date, format: "DD MMM YYYY", className: "text-sm text-font-primary font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, "__"));
78
- const TableCellDetail = (props) => {
79
- var _a;
80
- const { dataIndex, record, rowIndex, children, ...restProps } = props;
81
- const isAside = (_a = useAsideContentContext()) === null || _a === void 0 ? void 0 : _a.asideContent;
82
- const store = useOfficerStore();
83
- return observe(() => {
84
- const officer = useOfficer(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
85
- const renderContent = () => {
86
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
87
- switch (dataIndex) {
88
- case "name":
89
- return (React.createElement("div", { className: "flex items-center gap-3.5" },
90
- React.createElement(UnitAvatar, { unit: officer.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
91
- React.createElement("div", { className: "officer-table-item-name" },
92
- ((_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, officer.identity.fullName)) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null,
93
- React.createElement("div", { className: "flex items-center gap-4 text-xs text-font-grey font-medium" },
94
- React.createElement("div", null,
95
- React.createElement(FAIcon, { icon: faEnvelopeSolid }),
96
- ((_b = officer.email) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.email) ? (React.createElement("span", { className: "ml-1" }, (_d = officer.email) !== null && _d !== void 0 ? _d : (_e = officer.contact) === null || _e === void 0 ? void 0 : _e.email)) : (" -")),
97
- React.createElement("div", null,
98
- React.createElement(FAIcon, { icon: faPhoneSolid }),
99
- ((_f = officer.phone) !== null && _f !== void 0 ? _f : (_g = officer.contact) === null || _g === void 0 ? void 0 : _g.phone) ? (React.createElement("span", { className: "ml-1" }, (_h = officer.phone) !== null && _h !== void 0 ? _h : (_j = officer.contact) === null || _j === void 0 ? void 0 : _j.phone)) : (" -"))))));
100
- case "details":
101
- return (React.createElement("div", { className: "flex items-center gap-3.5" },
102
- React.createElement(UnitAvatar, { unit: officer.contact, className: "w-10! h-10! rounded-md! text-sm! text-font-secondary! bg-blue-profile!" }),
103
- React.createElement("div", { className: "flex flex-col gap-1" },
104
- ((_k = officer.identity) === null || _k === void 0 ? void 0 : _k.fullName) ? (React.createElement("div", { className: "text-font-primary uppercase font-semibold" }, officer.identity.fullName)) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null,
105
- React.createElement("div", { className: "flex items-center gap-2 text-xs text-font-grey font-medium" },
106
- React.createElement("div", { className: "flex items-center gap-0.5" },
107
- React.createElement(FAIcon, { icon: faCalendarCheckSolid }),
108
- officer.appointment ? (React.createElement(UTCShortDate, { value: officer.appointment, format: "DD MMM YYYY", className: "text-xs text-font-grey font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, " -"))),
109
- React.createElement("div", { className: "flex items-center gap-0.5" },
110
- React.createElement(FAIcon, { icon: faCalendarDaysSolid }),
111
- officer.cease ? (React.createElement(UTCShortDate, { value: officer.cease, format: "DD MMM YYYY", className: "text-xs text-font-grey font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, " -")))))));
112
- case "position":
113
- return (React.createElement(React.Fragment, null,
114
- React.createElement("div", { className: "text-sm font-semibold tracking-wide text-font-primary" }, officer.position),
115
- React.createElement(OfficerStatusLabel, { status: !officer.identity ? "Need Identity" : officer.status })));
116
- case "appointment":
117
- return renderDate(officer.appointment);
118
- case "cease":
119
- return renderDate(officer.cease);
120
- case "identity":
121
- return (React.createElement(React.Fragment, null, ((_l = officer.identity) === null || _l === void 0 ? void 0 : _l.id) ? (React.createElement(IdentityStatus, { id: (_m = officer.identity) === null || _m === void 0 ? void 0 : _m.id, className: "officer-table-item-identity" })) : (React.createElement("span", { className: "flex items-center gap-1 text-font-disabled" },
122
- React.createElement(FAIcon, { icon: faBanSolid, className: "text-xs" }),
123
- "Need Identity"))));
124
- case "menu":
125
- return (React.createElement("div", { className: "opacity-0 group-hover/row:opacity-100 transition-opacity" },
126
- React.createElement(ToolBar, { id: record.id, showMenu: false },
127
- React.createElement(Open, { url: `/officer/${record.id}` }),
128
- React.createElement(CompanOfficerMenu, { id: record.id, title: "Officer Menu", unitId: (_o = officer.contact) === null || _o === void 0 ? void 0 : _o.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
129
- data: { ContactId: unitId },
130
- error: "message",
131
- }) }))));
132
- default:
133
- return children;
134
- }
135
- };
136
- return React.createElement("td", { ...restProps }, renderContent());
137
- });
138
- };
139
- export default TableCellDetail;
140
- //# sourceMappingURL=TableCellDetail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,oBAAoB,EACpB,UAAU,EACV,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,kBAAkB,MAAM,uDAAuD,CAAC;AAEvF,MAAM,CAA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Ae,CAAC"}
@@ -1,23 +0,0 @@
1
- import React, { ReactNode } from "react";
2
- import { IOfficer } from "../../../../../../data/officer";
3
- import { State } from "./state";
4
- export interface OfficerTableListProps {
5
- officersRegisterId: string;
6
- corporateId: string;
7
- isFilterPresent?: boolean;
8
- onDelete?: (corporateId: string, officerRegisterId: string) => void;
9
- }
10
- export interface OfficerRegisterContainerProps extends OfficerTableListProps {
11
- children: (context: {
12
- list: any;
13
- state: State;
14
- dataSource: IOfficer[];
15
- totalCount: number;
16
- setVisible: (v: boolean) => void;
17
- handleDelete: () => void;
18
- corporate: any;
19
- user: any;
20
- }) => ReactNode;
21
- }
22
- declare const OfficerRegisterContainer: (props: OfficerRegisterContainerProps) => React.JSX.Element;
23
- export default OfficerRegisterContainer;