@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,87 +0,0 @@
1
- import { faEllipsisVerticalSolid, faEnvelopeSolid, faPhoneSolid, faReceiptSolid, faBarsProgressSolid, faUserGroupSolid, faCalendarDaysSolid, 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 } 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 classnames from "classnames";
9
- import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
10
- import React from "react";
11
- import TagView from "@voplus/morpho-org/es/modules/tag/TagView/TagView2";
12
- import { useOfficerStore, useOfficer } from "../../../../../../data/officer";
13
- import CompanOfficerMenu from "../../../controls/CompanyRegisterMenu";
14
- import OfficerStatusLabel from "../../controls/OfficerStatusLabel/OfficerStatusLabel2";
15
- import "./index.css";
16
- export const columnsListDetail = [
17
- {
18
- title: (React.createElement(React.Fragment, null,
19
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
20
- " Officers Name")),
21
- dataIndex: "name",
22
- width: "32%",
23
- },
24
- {
25
- title: (React.createElement(React.Fragment, null,
26
- React.createElement(FAIcon, { icon: faReceiptSolid }),
27
- " Position")),
28
- dataIndex: "position",
29
- },
30
- {
31
- title: (React.createElement(React.Fragment, null,
32
- React.createElement(FAIcon, { icon: faCalendarDaysSolid }),
33
- " Appointment")),
34
- dataIndex: "appointment",
35
- },
36
- {
37
- title: (React.createElement(React.Fragment, null,
38
- React.createElement(FAIcon, { icon: faCalendarDaysSolid }),
39
- " Cease")),
40
- dataIndex: "cease",
41
- },
42
- {
43
- title: (React.createElement(React.Fragment, null,
44
- React.createElement(FAIcon, { icon: faBarsProgressSolid }),
45
- " Identity Status & Tag")),
46
- dataIndex: "tags",
47
- },
48
- {
49
- title: " ",
50
- dataIndex: "menu",
51
- width: "72px",
52
- },
53
- ];
54
- const TableCellDetail = (props) => {
55
- const { dataIndex, record, rowIndex, children, ...restProps } = props;
56
- const store = useOfficerStore();
57
- return observe(() => {
58
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
59
- const officer = useOfficer(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
60
- return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement("div", { className: "officer-table-item-info" },
61
- React.createElement(UnitAvatar, { unit: officer.contact }),
62
- React.createElement("div", { className: "officer-table-item-name" },
63
- ((_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (officer.identity.fullName) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null,
64
- React.createElement("div", { className: "officer-table-item-contact" },
65
- ((_b = officer.email) !== null && _b !== void 0 ? _b : (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.email) && (React.createElement("div", null,
66
- React.createElement("span", null,
67
- React.createElement(FAIcon, { icon: faEnvelopeSolid })), (_d = officer.email) !== null && _d !== void 0 ? _d : (_e = officer.contact) === null || _e === void 0 ? void 0 : _e.email)),
68
- ((_f = officer.phone) !== null && _f !== void 0 ? _f : (_g = officer.contact) === null || _g === void 0 ? void 0 : _g.phone) && (React.createElement("div", null,
69
- React.createElement("span", null,
70
- React.createElement(FAIcon, { icon: faPhoneSolid })), (_h = officer.phone) !== null && _h !== void 0 ? _h : (_j = officer.contact) === null || _j === void 0 ? void 0 : _j.phone)))))) : dataIndex === "position" ? (React.createElement("div", { className: "officer-table-item-position" },
71
- React.createElement(OfficerStatusLabel, { className: classnames("officer-table-status-label", {
72
- "need-identity": !officer.identity,
73
- }), status: !officer.identity ? "NeedIdentity" : officer.status }),
74
- officer.position)) : dataIndex === "appointment" ? (React.createElement(UTCShortDate, { value: officer.appointment, format: "DD MMM YYYY" })) : dataIndex === "cease" ? (React.createElement(UTCShortDate, { value: officer.cease, format: "DD MMM YYYY" })) : dataIndex === "tags" ? (React.createElement(React.Fragment, null,
75
- ((_k = officer.identity) === null || _k === void 0 ? void 0 : _k.id) ? (React.createElement(IdentityStatus, { id: (_l = officer.identity) === null || _l === void 0 ? void 0 : _l.id, className: "officer-table-item-identity" })) : (React.createElement("div", { className: "officer-table-needIdentity" },
76
- React.createElement("span", null),
77
- "Need Identity")),
78
- React.createElement(TagView, { id: record.id, tags: officer.tags, editable: false, items: store.items, maxCount: 1 }))) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
79
- React.createElement(Open, { url: `/officer/${record.id}` }),
80
- React.createElement(CompanOfficerMenu, { id: record.id, title: "Officer Menu", unitId: (_m = officer.contact) === null || _m === void 0 ? void 0 : _m.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
81
- data: { ContactId: unitId },
82
- error: "message",
83
- }) }))) : (children)));
84
- });
85
- };
86
- export default TableCellDetail;
87
- //# sourceMappingURL=TableCellDetail.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCellDetail.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,uBAAuB,EACvB,eAAe,EACf,YAAY,EACZ,cAAc,EACd,mBAAmB,EACnB,gBA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c,IAAC,EAAE,EAAE,MAAA,OAAO,CAAC,QAAQ,0CAAE,EAAE,EAAE,SAAS,EAAC,6BAA6B,GAAG,CACpF,CAAC,CAAC,CAAC,CACH,6BAAK,SAAS,EAAC,4BAA4B;gBAC1C,iCAAa;gCACR,CACN;YACD,oBAAC,OAAO,IACP,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,IAAI,EAAE,OAAO,CAAC,IAAI,EAClB,QAAQ,EAAE,KAAK,EACf,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,QAAQ,EAAE,CAAC,GACV,CACA,CACH,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,oBAAC,OAAO,IAAC,EAAE,EAAE,MAAM,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;YACtC,oBAAC,IAAI,IAAC,GAAG,EAAE,YAAY,MAAM,CAAC,EAAE,EAAE,GAAI;YACtC,oBAAC,iBAAiB,IACjB,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,KAAK,EAAC,cAAc,EACpB,MAAM,EAAE,MAAA,OAAO,CAAC,OAAO,0CAAE,EAAE,EAC3B,KAAK,EAAE,KAAK,EACZ,UAAU,QACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,uBAAuB,GAAI,EAC/C,eAAe,EAAE,CAAC,MAAM,EAAE,EAAE,CAC3B,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;oBACrB,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;oBAC3B,KAAK,EAAE,SAAS;iBAChB,CAAC,GAEF,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
@@ -1,13 +0,0 @@
1
- import React from "react";
2
- import "./index.css";
3
- export declare const columnsSimpleList: ({
4
- title: React.JSX.Element;
5
- dataIndex: string;
6
- width?: undefined;
7
- } | {
8
- title: string;
9
- dataIndex: string;
10
- width: string;
11
- })[];
12
- declare const TableCellSimple: (props: any) => React.JSX.Element;
13
- export default TableCellSimple;
@@ -1,65 +0,0 @@
1
- import React from "react";
2
- import { faEllipsisVerticalSolid, faBarsProgressSolid, faUserGroupSolid, faCalendarDaysSolid, faCalendarCheckSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
3
- import { Tooltip } from "antd";
4
- import { observe } from "@voplus/morpho-ui";
5
- import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
6
- import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
7
- import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
8
- import { useOfficerStore, useOfficer } from "../../../../../../data/officer";
9
- import CompanOfficerMenu from "../../../controls/CompanyRegisterMenu";
10
- import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
11
- import OfficerStatusLabel from "../../controls/OfficerStatusLabel/OfficerStatusLabel2";
12
- import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
13
- import classnames from "classnames";
14
- import "./index.css";
15
- export const columnsSimpleList = [
16
- {
17
- title: (React.createElement(React.Fragment, null,
18
- React.createElement(FAIcon, { icon: faUserGroupSolid }),
19
- " Officers Details")),
20
- dataIndex: "details",
21
- // width: "32%",
22
- },
23
- {
24
- title: (React.createElement(React.Fragment, null,
25
- React.createElement(FAIcon, { icon: faBarsProgressSolid }),
26
- " Identity Status")),
27
- dataIndex: "identity",
28
- },
29
- {
30
- title: " ",
31
- dataIndex: "menu",
32
- width: "72px",
33
- },
34
- ];
35
- const TableCellSimple = (props) => {
36
- const { dataIndex, record, rowIndex, children, ...restProps } = props;
37
- const store = useOfficerStore();
38
- return observe(() => {
39
- var _a, _b, _c;
40
- const officer = useOfficer(record === null || record === void 0 ? void 0 : record.id, { reload: (d) => !d.tags, includes: "tags" });
41
- return (React.createElement("td", { ...restProps }, dataIndex === "details" ? (React.createElement("div", { className: "officer-table-item-details" },
42
- React.createElement("div", null, ((_a = officer.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (officer.identity.fullName) : officer.contact ? (React.createElement(UnitNameNoteAlert, { id: officer.contact.id, name: officer.contact.name })) : null),
43
- React.createElement("div", { className: "officer-table-item-position" },
44
- React.createElement(OfficerStatusLabel, { className: classnames("officer-table-status-label", {
45
- "need-identity": !officer.identity,
46
- }), status: !officer.identity ? "NeedIdentity" : officer.status }),
47
- officer.position),
48
- React.createElement("div", { className: "officer-table-item-date" },
49
- officer.appointment && (React.createElement(Tooltip, { title: "Appointment Date", color: "#868686", className: "appointment" },
50
- React.createElement("span", { className: "date-icon" },
51
- React.createElement(FAIcon, { icon: faCalendarCheckSolid })),
52
- React.createElement(UTCShortDate, { value: officer.appointment, format: "DD MMM YYYY" }))),
53
- officer.cease && (React.createElement(Tooltip, { title: "Cease Date", color: "#868686" },
54
- React.createElement("span", { className: "date-icon" },
55
- React.createElement(FAIcon, { icon: faCalendarDaysSolid })),
56
- React.createElement(UTCShortDate, { value: officer.cease, format: "DD MMM YYYY" })))))) : dataIndex === "identity" ? (((_b = officer.identity) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(IdentityStatus, { id: officer.identity.id })) : null) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, showMenu: false },
57
- React.createElement(Open, { url: `/officer/${record.id}` }),
58
- React.createElement(CompanOfficerMenu, { id: record.id, title: "Officer Menu", unitId: (_c = officer.contact) === null || _c === void 0 ? void 0 : _c.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }), onChangeContact: (unitId) => store.edit(record.id, {
59
- data: { ContactId: unitId },
60
- error: "message",
61
- }) }))) : (children)));
62
- });
63
- };
64
- export default TableCellSimple;
65
- //# sourceMappingURL=TableCellSimple.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableCellSimple.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EAChB,mBAAmB,EACnB,oBAAoB,EACpB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,kBAAkB,MAAM,uDAAuD,CAAC;AACvF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,aAAa,CAAC;AAErB,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAChC;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;gCAChC,CACH;QACD,SAAS,EAAE,SAAS;QACpB,gBAAgB;KAChB;IACD;QACC,KAAK,EAAE,CACN;YACC,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI;+BACnC,CACH;QACD,SAAS,EAAE,UAAU;KACrB;IACD;QACC,KAAK,EAAE,GAAG;QACV,SAAS,EAAE,MAAM;QACjB,KAAK,EAAE,MAAM;KACb;CACD,CAAC;AAEF,MAAM,eAAe,GAAG,CAAC,KAAU,EAAE,EAAE;IACtC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EA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,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE;oBACrB,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;oBAC3B,KAAK,EAAE,SAAS;iBAChB,CAAC,GAEF,CACO,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const Controller: () => React.JSX.Element;
3
- export default Controller;
@@ -1,134 +0,0 @@
1
- import React, { useState } from "react";
2
- import { Input, Button, Table, Tag, Popover, Checkbox, Pagination } from "antd";
3
- import { faFilterSolid, faPaperPlaneSolid, faUploadSolid, } from "@voplus/morpho-ui/es/faIcons";
4
- import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
5
- import { SearchOutlined, PlusOutlined, MoreOutlined, MailOutlined, PhoneOutlined, CheckCircleOutlined, StopOutlined, } from "@ant-design/icons";
6
- import { observe } from "@voplus/morpho-ui";
7
- const Controller = () => {
8
- const [filterVisible, setFilterVisible] = useState(true);
9
- // 表格数据
10
- const dataSource = [
11
- {
12
- key: "1",
13
- name: "YUEN MAY WAN",
14
- email: "yuen.wan@example.com",
15
- phone: "+60199968899",
16
- date: "14 Mar2023",
17
- confirmation: "CONFIRMED",
18
- identityVerified: true,
19
- identityConfirmed: true,
20
- },
21
- {
22
- key: "2",
23
- name: "YUEN MAY WAN",
24
- email: "yuen.wan@example.com",
25
- phone: "+60199968899",
26
- date: "14 Mar2023",
27
- confirmation: "UNCONFIRMED",
28
- identityVerified: false,
29
- identityConfirmed: false,
30
- },
31
- {
32
- key: "3",
33
- name: "YUEN MAY WAN",
34
- email: "yuen.wan@example.com",
35
- phone: "+60199968899",
36
- date: "14 Mar2023",
37
- confirmation: "CONFIRMED",
38
- identityVerified: true,
39
- identityConfirmed: true,
40
- },
41
- {
42
- key: "4",
43
- name: "YUEN MAY WAN",
44
- email: "yuen.wan@example.com",
45
- phone: "+60199968899",
46
- date: "14 Mar2023",
47
- confirmation: "UNCONFIRMED",
48
- identityVerified: false,
49
- identityConfirmed: false,
50
- },
51
- ];
52
- // 表格列定义
53
- const columns = [
54
- {
55
- title: "CONTROLLERS NAME",
56
- dataIndex: "name",
57
- key: "name",
58
- render: (text, record) => (React.createElement("div", { className: "flex items-center gap-3" },
59
- React.createElement("div", { className: "w-10 h-10 rounded bg-blue-100 text-blue-600 font-bold flex items-center justify-center" }, "YW"),
60
- React.createElement("div", null,
61
- React.createElement("div", { className: "font-semibold text-gray-800" }, text),
62
- React.createElement("div", { className: "text-xs text-gray-500 flex items-center gap-2 mt-1" },
63
- React.createElement("span", null,
64
- React.createElement(MailOutlined, null),
65
- " ",
66
- record.email),
67
- React.createElement("span", null,
68
- React.createElement(PhoneOutlined, null),
69
- " ",
70
- record.phone))))),
71
- },
72
- {
73
- title: "APPOINTMENT",
74
- dataIndex: "date",
75
- key: "date",
76
- render: (text) => React.createElement("span", { className: "text-gray-600" }, text || "—"),
77
- },
78
- {
79
- title: "CONFIRMATION",
80
- key: "confirmation",
81
- dataIndex: "confirmation",
82
- render: (status) => (React.createElement(Tag, { color: status === "CONFIRMED" ? "success" : "default", className: "rounded-full px-3 font-semibold" },
83
- React.createElement("span", { className: status === "CONFIRMED" ? "text-green-600" : "text-gray-500" },
84
- "\u25CF ",
85
- status))),
86
- },
87
- {
88
- title: "IDENTITY STATUS",
89
- key: "identity",
90
- render: (_, record) => (React.createElement("div", { className: "flex items-center gap-3 text-sm" },
91
- record.identityVerified ? (React.createElement("span", { className: "text-blue-600 font-medium whitespace-nowrap" },
92
- React.createElement(CheckCircleOutlined, null),
93
- " Verified")) : (React.createElement("span", { className: "text-gray-400 whitespace-nowrap" },
94
- React.createElement(StopOutlined, null),
95
- " Pending")),
96
- record.identityConfirmed && (React.createElement("span", { className: "text-blue-600 font-medium whitespace-nowrap" },
97
- React.createElement(CheckCircleOutlined, null),
98
- " Confirmed")))),
99
- },
100
- {
101
- title: "",
102
- key: "action",
103
- render: () => React.createElement(Button, { type: "text", icon: React.createElement(MoreOutlined, null), className: "text-gray-500" }),
104
- width: 50,
105
- },
106
- ];
107
- // 过滤器组件
108
- const filterContent = (React.createElement("div", { className: "w-56 p-2" },
109
- React.createElement("div", { className: "font-semibold text-xs text-gray-500 mb-3 uppercase" }, "Filter by Status"),
110
- React.createElement("div", { className: "flex flex-col gap-2 mb-4" },
111
- React.createElement(Checkbox, { defaultChecked: true }, "Confirmed"),
112
- React.createElement(Checkbox, null, "Unconfirmed"),
113
- React.createElement(Checkbox, { defaultChecked: true }, "Confirmed Not Controller")),
114
- React.createElement("div", { className: "flex justify-between items-center border-t pt-3 mt-2" },
115
- React.createElement(Button, { type: "link", size: "small", className: "text-gray-500 px-0" }, "Clear Filters"),
116
- React.createElement(Button, { type: "primary", size: "small", className: "bg-blue-600" }, "APPLY"))));
117
- return observe(() => (React.createElement("div", null,
118
- React.createElement("div", { className: "px-4 pb-4 flex flex-wrap gap-3 items-center justify-between bg-bg-table border-b border-border" },
119
- React.createElement("div", { className: "flex-1 min-w-[300px] flex items-center gap-3" },
120
- React.createElement(Input, { prefix: React.createElement(SearchOutlined, { className: "text-gray-400" }), placeholder: "Search in register controller ...", className: "py-1.5 rounded-md lg:w-96" }),
121
- React.createElement(Popover, { content: filterContent, trigger: "click", open: filterVisible, onOpenChange: setFilterVisible, placement: "bottomLeft" },
122
- React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faFilterSolid }), className: `text-blue-600 border-blue-200 ${filterVisible ? "border-blue-400" : ""}` }))),
123
- React.createElement("div", { className: "flex items-center gap-3" },
124
- React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faPaperPlaneSolid }), className: "text-gray-600 font-medium" }, "SEND FORM"),
125
- React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faUploadSolid }), className: "text-gray-600 font-medium" }, "SYCN"),
126
- React.createElement(Button, { type: "primary", icon: React.createElement(PlusOutlined, null), className: "bg-blue-600 font-medium" }, "NEW ENTRY"),
127
- React.createElement(Button, { icon: React.createElement(MoreOutlined, null) }))),
128
- React.createElement(Table, { columns: columns, dataSource: dataSource, pagination: false, className: "whitespace-nowrap [&_.ant-table-thead_>_tr_>_th]:text-sm [&_.ant-table-thead_>_tr_>_th]:font-semibold [&_.ant-table-thead_>_tr_>_th]:text-font-primary [&_.ant-table-thead_>_tr_>_th]:bg-bg-table", rowClassName: "group" }),
129
- React.createElement("div", { className: "p-3.5 bg-bg-table border-t border-border flex justify-between items-center font-semibold text-sm text-font-primary" },
130
- React.createElement("div", null, "Showing 1 to 4 of 24 entries"),
131
- React.createElement(Pagination, { defaultCurrent: 1, total: 24, pageSize: 4, showSizeChanger: false, className: "[&_.ant-pagination-item]:bg-transparent! [&_.ant-pagination-item]:border-none! [&_.ant-pagination-item-active]:bg-font-secondary! [&_.ant-pagination-item-active_a]:text-white! [&_.ant-pagination-item]:min-w-[27px]! [&_.ant-pagination-item]:w-[27px]! [&_.ant-pagination-item]:h-[27px]! [&_.ant-pagination-item]:leading-[27px]! [&_.ant-pagination-item]:rounded-md [&_.ant-pagination-prev]:min-w-[27px]! [&_.ant-pagination-prev]:w-[27px]! [&_.ant-pagination-prev]:h-[27px]! [&_.ant-pagination-prev]:leading-[27px]! [&_.ant-pagination-next]:min-w-[27px]! [&_.ant-pagination-next]:w-[27px]! [&_.ant-pagination-next]:h-[27px]! [&_.ant-pagination-next]:leading-[27px]! [&_.ant-pagination-item-link]:flex! [&_.ant-pagination-item-link]:justify-center [&_.ant-pagination-item-link]:items-center" })))));
132
- };
133
- export default Controller;
134
- //# sourceMappingURL=Controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Controller.js","sourceRoot":"","sources":["../../../src/page/RegisterTablePage/Controller.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAc,KAAK,EAAE,MAAM,EA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AAuC;YACvC,oBAAC,UAAU,IACV,cAAc,EAAE,CAAC,EACjB,KAAK,EAAE,EAAE,EACT,QAAQ,EAAE,CAAC,EACX,eAAe,EAAE,KAAK,EACtB,SAAS,EAAC,mxBAAmxB,GAC5xB,CACG,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- declare const StandardRegisterPage: () => React.JSX.Element;
3
- export default StandardRegisterPage;
@@ -1,63 +0,0 @@
1
- import React from "react";
2
- import { Tabs } from "antd";
3
- import { faShieldHalvedSolid, faUsersSolid } from "@voplus/morpho-ui/es/faIcons";
4
- import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
5
- // import Controller from "./Controller";
6
- import Controller from "../../modules/corporate/company/controller-register/components/ControllerTableList";
7
- import { observe } from "@voplus/morpho-ui";
8
- const StandardRegisterPage = () => {
9
- // 顶部卡片数据
10
- const statCards = [
11
- {
12
- title: "TOTAL REGISTERS",
13
- value: "24",
14
- icon: React.createElement(FAIcon, { icon: faUsersSolid, className: "text-font-secondary text-2xl" }),
15
- borderColor: "border-font-secondary",
16
- textColor: "text-font-secondary",
17
- bgIcon: "bg-bg-blue-data",
18
- },
19
- {
20
- title: "VERIFICATION RATES",
21
- value: "92%",
22
- icon: React.createElement(FAIcon, { icon: faShieldHalvedSolid, className: "text-green-data text-2xl" }),
23
- borderColor: "border-green-data",
24
- textColor: "text-green-data",
25
- bgIcon: "bg-bg-green-data",
26
- },
27
- {
28
- title: "PENDING ACTIONS",
29
- value: "03",
30
- icon: React.createElement(FAIcon, { icon: faShieldHalvedSolid, className: "text-brown-data text-2xl" }),
31
- borderColor: "border-brown-data",
32
- textColor: "text-brown-data",
33
- bgIcon: "bg-bg-brown-data",
34
- },
35
- ];
36
- return observe(() => (React.createElement("div", { className: "p-6 bg-bg-blue h-full overflow-hidden font-sans flex flex-col gap-6" },
37
- 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` },
38
- React.createElement("div", { className: `w-14 h-14 flex items-center justify-center rounded-lg ${card.bgIcon}` }, card.icon),
39
- React.createElement("div", null,
40
- React.createElement("div", { className: "text-font-primary text-sm font-semibold mb-1 uppercase" }, card.title),
41
- React.createElement("div", { className: `${card.textColor} text-2xl font-bold` }, card.value)))))),
42
- React.createElement("div", { className: "flex-1 bg-white rounded-lg shadow-sm border border-border overflow-hidden" },
43
- React.createElement(Tabs, { defaultActiveKey: "Controller", className: "w-full h-full -mb-px [&_.ant-tabs-nav]:bg-bg-table [&_.ant-tabs-nav]:m-0 [&_.ant-tabs-tab]:px-8 [&_.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: [
44
- {
45
- key: "Controller",
46
- label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Controller"),
47
- children: (React.createElement(Controller, { controllerRegisterId: "12afea18-2d06-47af-8b32-aeda0068ad33", corporateId: "0bca19e0-753b-406a-a3a5-ad96008426d8" })),
48
- },
49
- {
50
- key: "Members",
51
- label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Members"),
52
- children: "Content of Tab Pane 2",
53
- },
54
- {
55
- key: "Officers",
56
- label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Officers"),
57
- children: "Content of Tab Pane 3",
58
- },
59
- ], tabBarExtraContent: React.createElement("div", { className: "pr-7" },
60
- React.createElement("button", { type: "button", className: "underline-button uppercase" }, "ADD REGISTER")) })))));
61
- };
62
- export default StandardRegisterPage;
63
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../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