@voplus/morpho-csp 6.0.110 → 6.0.112
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.
- package/es/components/CorporateNavMenu/CorporateNavMenu.d.ts +9 -0
- package/es/components/CorporateNavMenu/CorporateNavMenu.js +143 -0
- package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -0
- package/es/components/CorporateNavMenu/index.js +1 -1
- package/es/components/CorporateNavMenu/index.js.map +1 -1
- package/es/data/corporate/interfaces.d.ts +4 -1
- package/es/modules/corporate/company/components/CompanyAlert/index.d.ts +6 -0
- package/es/modules/corporate/company/components/CompanyAlert/index.js +27 -0
- package/es/modules/corporate/company/components/CompanyAlert/index.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.d.ts +7 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.js +59 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.less +80 -0
- package/es/modules/corporate/company/components/InlineEditCountry/index.d.ts +4 -1
- package/es/modules/corporate/company/components/InlineEditCountry/index.js +3 -1
- package/es/modules/corporate/company/components/InlineEditCountry/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.d.ts +4 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +32 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +16 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +146 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +40 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js +8 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.less +12 -0
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +19 -37
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +3 -65
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +19 -16
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js +1 -1
- package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { faUserEdit, faHandsUsd, faRegistered, faUserTag, faUserVneck, faUsers, faTableRows, faChartNetwork, faFolder, faScrollOld, faShareNodes, faVrCardboard, faGear, faBell, } from "@fortawesome/pro-solid-svg-icons";
|
|
3
|
+
import { Menu, message } from "antd";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import NavMenuItem from "./NavMenuItem";
|
|
7
|
+
import { useCorporate, useCorporateStore } from "../../data/corporate";
|
|
8
|
+
import { State } from "./state";
|
|
9
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
10
|
+
import "./index.less";
|
|
11
|
+
const CorporateNavMenu = (props) => {
|
|
12
|
+
/** 加class name 为了方便做integration tests */
|
|
13
|
+
const classId = "corporate-page";
|
|
14
|
+
const { id, url, defaultSelectedKeys, showShareClass } = props;
|
|
15
|
+
const register = [
|
|
16
|
+
"OfficersRegister",
|
|
17
|
+
"ShareTransactionsRegister",
|
|
18
|
+
"NomineeDirectors",
|
|
19
|
+
"ShareOptions",
|
|
20
|
+
"DirectorsInterest",
|
|
21
|
+
"UltimateBeneficiaryOwners",
|
|
22
|
+
"MembersRegister",
|
|
23
|
+
"ControllerRegister",
|
|
24
|
+
];
|
|
25
|
+
const layout = useLayout();
|
|
26
|
+
const store = useCorporateStore();
|
|
27
|
+
const [state] = useState(new State(register));
|
|
28
|
+
const corporate = useCorporate(id, { includes: "registers" });
|
|
29
|
+
useEffect(() => {
|
|
30
|
+
state.update(corporate);
|
|
31
|
+
}, [corporate.registers]);
|
|
32
|
+
return observe(() => {
|
|
33
|
+
var _a;
|
|
34
|
+
return (React.createElement(Menu, { className: "company-menu", mode: "inline", defaultSelectedKeys: defaultSelectedKeys, onClick: ({ key }) => onClick(key), items: [
|
|
35
|
+
{
|
|
36
|
+
key: "/dashboard",
|
|
37
|
+
icon: React.createElement(FAIcon, { icon: faTableRows }),
|
|
38
|
+
label: "Dashboard",
|
|
39
|
+
className: `${classId}-dashboard`,
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
key: "/notification",
|
|
43
|
+
icon: React.createElement(FAIcon, { icon: faBell }),
|
|
44
|
+
label: "Notification",
|
|
45
|
+
className: `${classId}-notification`,
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
key: "/activities",
|
|
49
|
+
icon: React.createElement(FAIcon, { icon: faChartNetwork }),
|
|
50
|
+
label: "Activities",
|
|
51
|
+
className: `${classId}-activities`,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "/virtual-address",
|
|
55
|
+
icon: React.createElement(FAIcon, { icon: faVrCardboard }),
|
|
56
|
+
label: "Virtual Address",
|
|
57
|
+
className: `${classId}-virtual-address`,
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: "/settings",
|
|
61
|
+
icon: React.createElement(FAIcon, { icon: faGear }),
|
|
62
|
+
label: "Settings",
|
|
63
|
+
className: `${classId}-settings`,
|
|
64
|
+
},
|
|
65
|
+
{ type: "divider" },
|
|
66
|
+
{
|
|
67
|
+
key: "workspace",
|
|
68
|
+
label: "CORPORATE WORKSPACE",
|
|
69
|
+
type: "group",
|
|
70
|
+
children: [
|
|
71
|
+
{
|
|
72
|
+
key: "Registeres",
|
|
73
|
+
label: "Registeres",
|
|
74
|
+
icon: React.createElement(FAIcon, { icon: faUserEdit }),
|
|
75
|
+
children: [
|
|
76
|
+
...((_a = state.register) !== null && _a !== void 0 ? _a : []).map((r) => {
|
|
77
|
+
return {
|
|
78
|
+
key: `/registers/${r.type}`,
|
|
79
|
+
label: r.type.replace(/.(?=[A-Z])/g, "$& "),
|
|
80
|
+
icon: getIcon(r.type),
|
|
81
|
+
className: `/registers/${r.type}`,
|
|
82
|
+
};
|
|
83
|
+
}),
|
|
84
|
+
{
|
|
85
|
+
key: "add",
|
|
86
|
+
label: observe(() => (React.createElement(NavMenuItem, { id: id, addRegister: state.addRegister, onAdd: onAdd }))),
|
|
87
|
+
},
|
|
88
|
+
],
|
|
89
|
+
},
|
|
90
|
+
...[
|
|
91
|
+
showShareClass
|
|
92
|
+
? {
|
|
93
|
+
key: "/share-class",
|
|
94
|
+
icon: React.createElement(FAIcon, { icon: faShareNodes }),
|
|
95
|
+
label: "Share Class",
|
|
96
|
+
className: `${classId}-share-class`,
|
|
97
|
+
}
|
|
98
|
+
: null,
|
|
99
|
+
],
|
|
100
|
+
{
|
|
101
|
+
key: "/filings",
|
|
102
|
+
icon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
103
|
+
label: "Filings",
|
|
104
|
+
className: `${classId}-filings`,
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
key: "/documents",
|
|
108
|
+
icon: React.createElement(FAIcon, { icon: faFolder }),
|
|
109
|
+
label: "Documents",
|
|
110
|
+
className: `${classId}-documents`,
|
|
111
|
+
},
|
|
112
|
+
],
|
|
113
|
+
},
|
|
114
|
+
] }));
|
|
115
|
+
});
|
|
116
|
+
function getIcon(type) {
|
|
117
|
+
switch (type) {
|
|
118
|
+
case "ShareTransactionsRegister":
|
|
119
|
+
return React.createElement(FAIcon, { icon: faHandsUsd });
|
|
120
|
+
case "OfficersRegister":
|
|
121
|
+
return React.createElement(FAIcon, { icon: faUserTag });
|
|
122
|
+
case "MembersRegister":
|
|
123
|
+
return React.createElement(FAIcon, { icon: faUsers });
|
|
124
|
+
case "ControllerRegister":
|
|
125
|
+
return React.createElement(FAIcon, { icon: faUserVneck });
|
|
126
|
+
default:
|
|
127
|
+
return React.createElement(FAIcon, { icon: faRegistered });
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
async function onAdd(name) {
|
|
131
|
+
const data = await store.register(id, name, {
|
|
132
|
+
error: (error) => message.error(error.message),
|
|
133
|
+
});
|
|
134
|
+
state.update(data);
|
|
135
|
+
}
|
|
136
|
+
function onClick(key) {
|
|
137
|
+
if (key === "Registeres" || key === "add")
|
|
138
|
+
return;
|
|
139
|
+
layout.history.push(`${url}${key}`);
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
export default CorporateNavMenu;
|
|
143
|
+
//# sourceMappingURL=CorporateNavMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CorporateNavMenu.js","sourceRoot":"","sources":["../../../src/components/CorporateNavMenu/CorporateNavMenu.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,OAAO,EACP,WAAW,EACX,cAAc,EACd,QAAQ,EACR,WAAW,EACX,YAAY,EACZ,aAAa,EACb,MAAM,EACN,MAAM,GACN,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC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OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,UAAU,GAAI,CAAC;YACrC,KAAK,kBAAkB;gBACtB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI,CAAC;YACpC,KAAK,iBAAiB;gBACrB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,GAAI,CAAC;YAClC,KAAK,oBAAoB;gBACxB,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,CAAC;YACtC;gBACC,OAAO,oBAAC,MAAM,IAAC,IAAI,EAAE,YAAY,GAAI,CAAC;QACxC,CAAC;IACF,CAAC;IAED,KAAK,UAAU,KAAK,CAAC,IAAY;QAChC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,EAAE;YAC3C,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,SAAS,OAAO,CAAC,GAAW;QAC3B,IAAI,GAAG,KAAK,YAAY,IAAI,GAAG,KAAK,KAAK;YAAE,OAAO;QAClD,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { faUserEdit, faHandsUsd, faRegistered, faUserTag, faUserVneck, faUsers, } from "@fortawesome/pro-
|
|
2
|
+
import { faUserEdit, faHandsUsd, faRegistered, faUserTag, faUserVneck, faUsers, } from "@fortawesome/pro-solid-svg-icons";
|
|
3
3
|
import { Menu, message } from "antd";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateNavMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,OAAO,GACP,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/CorporateNavMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,UAAU,EACV,UAAU,EACV,YAAY,EACZ,SAAS,EACT,WAAW,EACX,OAAO,GACP,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAErC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,eAAe,CAAC;AACxC,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,cAAc,CAAC;AAItB,MAAM,gBAAgB,GAAG,CAAC,KAMzB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,mBAAmB,EAAE,GAAG,KAAK,CAAC;IAC/C,MAAM,QAAQ,GAAG;QAChB,kBAAkB;QAClB,2BAA2B;QAC3B,kBAAkB;QAClB,cAAc;QACd,mBAAmB;QACnB,2BAA2B;QAC3B,iBAAiB;QACjB,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,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -33,7 +33,10 @@ export interface ICorporate extends ILoadable, INode {
|
|
|
33
33
|
/** address of registration of company */
|
|
34
34
|
registeredAddress: IAddress;
|
|
35
35
|
/** */
|
|
36
|
-
allowedJurisdictions:
|
|
36
|
+
allowedJurisdictions: {
|
|
37
|
+
name: string;
|
|
38
|
+
iso: string;
|
|
39
|
+
}[];
|
|
37
40
|
/** registers SubMenu */
|
|
38
41
|
registers: {
|
|
39
42
|
id: string;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Alert } from "antd";
|
|
4
|
+
import NoteAlert from "@voplus/morpho-org/es/components/NoteAlert";
|
|
5
|
+
import dayjs from "dayjs";
|
|
6
|
+
const CompanyAlert = (props) => {
|
|
7
|
+
const { corporate } = props;
|
|
8
|
+
return observe(() => {
|
|
9
|
+
var _a, _b, _c;
|
|
10
|
+
return (React.createElement("div", { className: "dashboard-alert-content" },
|
|
11
|
+
!((_a = corporate.center) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(Alert, { showIcon: true, closable: true, type: "warning", className: "dashboard-alert normal-alert", message: "This corporate is not in any secretary center." })),
|
|
12
|
+
expriedAliterVisible((_b = corporate === null || corporate === void 0 ? void 0 : corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.fye) && (React.createElement(Alert, { showIcon: true, closable: true, type: "warning", className: "dashboard-alert normal-alert", message: "No current filing year or current filing expried." })),
|
|
13
|
+
((_c = corporate.unit) === null || _c === void 0 ? void 0 : _c.id) && React.createElement(NoteAlert, { id: corporate.unit.id })));
|
|
14
|
+
});
|
|
15
|
+
function expriedAliterVisible(date) {
|
|
16
|
+
if (!date)
|
|
17
|
+
return true;
|
|
18
|
+
let totalDays, diffDate;
|
|
19
|
+
const myDate = Date.parse(dayjs(date).format("YYYY-MM-DD"));
|
|
20
|
+
const nowDate = Date.parse(dayjs(new Date()).format("YYYY-MM-DD"));
|
|
21
|
+
diffDate = nowDate - myDate;
|
|
22
|
+
totalDays = Math.floor(diffDate / (1000 * 3600 * 24));
|
|
23
|
+
return totalDays > 0;
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
export default CompanyAlert;
|
|
27
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyAlert/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAE7B,OAAO,SAAS,MAAM,4CAA4C,CAAC;AACnE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,YAAY,GAAG,CAAC,KAAgC,EAAE,EAAE;IACzD,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IAE5B,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAC,yBAAyB;YACtC,CAAC,CAAA,MAAA,SAAS,CAAC,MAAM,0CAAE,EAAE,CAAA,IAAI,CACzB,oBAAC,KAAK,IACL,QAAQ,QACR,QAAQ,QACR,IAAI,EAAC,SAAS,EACd,SAAS,EAAC,8BAA8B,EACxC,OAAO,EAAC,gDAAgD,GACvD,CACF;YACA,oBAAoB,CAAC,MAAA,SAAS,aAAT,SAAS,uBAAT,SAAS,CAAE,gBAAgB,0CAAE,GAAG,CAAC,IAAI,CAC1D,oBAAC,KAAK,IACL,QAAQ,QACR,QAAQ,QACR,IAAI,EAAC,SAAS,EACd,SAAS,EAAC,8BAA8B,EACxC,OAAO,EAAC,mDAAmD,GAC1D,CACF;YACA,CAAA,MAAA,SAAS,CAAC,IAAI,0CAAE,EAAE,KAAI,oBAAC,SAAS,IAAC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,EAAE,GAAI,CACtD,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,oBAAoB,CAAC,IAAa;QAC1C,IAAI,CAAC,IAAI;YAAE,OAAO,IAAI,CAAC;QAEvB,IAAI,SAAS,EAAE,QAAQ,CAAC;QACxB,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;QACnE,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;QAC5B,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;QAEtD,OAAO,SAAS,GAAG,CAAC,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import React, { useMemo } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { useLayout } from "@voplus/morpho-data";
|
|
5
|
+
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
6
|
+
import CorporateMenu from "../../controls/CorporateMenu";
|
|
7
|
+
import { useCorporate } from "../../../../../data/corporate";
|
|
8
|
+
import { faHourglass, faUserGroup, faUserTie, faUpRightFromSquare, faEllipsisVertical, } from "@fortawesome/pro-solid-svg-icons";
|
|
9
|
+
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem";
|
|
10
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
11
|
+
import { State } from "../../pages/CompanyPage/state";
|
|
12
|
+
import { Button } from "antd";
|
|
13
|
+
import dayjs from "dayjs";
|
|
14
|
+
import "./index.less";
|
|
15
|
+
const CompanyPageHead = (props) => {
|
|
16
|
+
const { id, unitId } = props;
|
|
17
|
+
const layout = useLayout();
|
|
18
|
+
const unit = useUnit(unitId);
|
|
19
|
+
const corporate = useCorporate(props.id);
|
|
20
|
+
const state = useMemo(() => new State(), [unitId]);
|
|
21
|
+
const Open = (url) => {
|
|
22
|
+
return observe(() => (React.createElement(Button, { type: "link", onClick: () => layout.history.push(url) },
|
|
23
|
+
React.createElement(FAIcon, { icon: faUpRightFromSquare }))));
|
|
24
|
+
};
|
|
25
|
+
return observe(() => (React.createElement("div", { className: "company-page-head" },
|
|
26
|
+
React.createElement("div", { className: "company-unit" },
|
|
27
|
+
React.createElement(AvatarItem, { id: unitId }),
|
|
28
|
+
React.createElement("div", { className: "company-unit-info" },
|
|
29
|
+
React.createElement("div", { className: "company-unit-name" },
|
|
30
|
+
React.createElement(UnitNameNoteAlert, { id: unit.id, name: unit.name }),
|
|
31
|
+
React.createElement(CorporateMenu, { id: id, unitId: unitId, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })),
|
|
32
|
+
React.createElement("div", null,
|
|
33
|
+
"Created on ",
|
|
34
|
+
dayjs(corporate.registrationDate).format("DD MMM YYYY")))),
|
|
35
|
+
React.createElement("div", { className: "head-active-list" },
|
|
36
|
+
React.createElement("div", { className: "head-active" },
|
|
37
|
+
React.createElement("div", { className: "active-icon" },
|
|
38
|
+
React.createElement(FAIcon, { icon: faHourglass })),
|
|
39
|
+
React.createElement("div", { className: "head-active-content" },
|
|
40
|
+
Open(`/corporates/unit/${id}/filings`),
|
|
41
|
+
React.createElement("span", null, "2"),
|
|
42
|
+
"Due Filings")),
|
|
43
|
+
React.createElement("div", { className: "head-active" },
|
|
44
|
+
React.createElement("div", { className: "active-icon" },
|
|
45
|
+
React.createElement(FAIcon, { icon: faUserGroup })),
|
|
46
|
+
React.createElement("div", { className: "head-active-content" },
|
|
47
|
+
Open(`/corporates/unit/${id}/registers/MembersRegister`),
|
|
48
|
+
React.createElement("span", null, "3"),
|
|
49
|
+
"Members")),
|
|
50
|
+
React.createElement("div", { className: "head-active" },
|
|
51
|
+
React.createElement("div", { className: "active-icon" },
|
|
52
|
+
React.createElement(FAIcon, { icon: faUserTie })),
|
|
53
|
+
React.createElement("div", { className: "head-active-content" },
|
|
54
|
+
Open(`/corporates/unit/${id}/registers/OfficersRegister`),
|
|
55
|
+
React.createElement("span", null, "5"),
|
|
56
|
+
"Officers"))))));
|
|
57
|
+
};
|
|
58
|
+
export default CompanyPageHead;
|
|
59
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyPageHead/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACN,WAAW,EACX,WAAW,EACX,SAAS,EACT,mBAAmB,EACnB,kBAAkB,GAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,KAA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AAM,EAAE,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,GAAI,CAChF;gBACN;;oBAAiB,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAO,CAC1E,CACD;QACN,6BAAK,SAAS,EAAC,kBAAkB;YAChC,6BAAK,SAAS,EAAC,aAAa;gBAC3B,6BAAK,SAAS,EAAC,aAAa;oBAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,CACxB;gBACN,6BAAK,SAAS,EAAC,qBAAqB;oBAClC,IAAI,CAAC,oBAAoB,EAAE,UAAU,CAAC;oBAEvC,sCAAc;kCAET,CACD;YACN,6BAAK,SAAS,EAAC,aAAa;gBAC3B,6BAAK,SAAS,EAAC,aAAa;oBAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,CACxB;gBACN,6BAAK,SAAS,EAAC,qBAAqB;oBAClC,IAAI,CAAC,oBAAoB,EAAE,4BAA4B,CAAC;oBACzD,sCAAc;8BAET,CACD;YACN,6BAAK,SAAS,EAAC,aAAa;gBAC3B,6BAAK,SAAS,EAAC,aAAa;oBAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,SAAS,GAAI,CACtB;gBACN,6BAAK,SAAS,EAAC,qBAAqB;oBAClC,IAAI,CAAC,oBAAoB,EAAE,6BAA6B,CAAC;oBAC1D,sCAAc;+BAET,CACD,CACD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.company-page-head {
|
|
3
|
+
display: flex;
|
|
4
|
+
justify-content: space-between;
|
|
5
|
+
align-items: center;
|
|
6
|
+
padding: 14px 15px 14px 25px;
|
|
7
|
+
background: #fff;
|
|
8
|
+
.company-unit {
|
|
9
|
+
display: flex;
|
|
10
|
+
.ant-avatar {
|
|
11
|
+
width: 50px;
|
|
12
|
+
height: 50px;
|
|
13
|
+
line-height: 50px;
|
|
14
|
+
border-radius: 2px;
|
|
15
|
+
}
|
|
16
|
+
.company-unit-info {
|
|
17
|
+
color: #868686;
|
|
18
|
+
margin-left: 8px;
|
|
19
|
+
}
|
|
20
|
+
.company-unit-name {
|
|
21
|
+
display: flex;
|
|
22
|
+
align-items: center;
|
|
23
|
+
color: #217eb2;
|
|
24
|
+
font-size: 20px;
|
|
25
|
+
line-height: 27px;
|
|
26
|
+
font-weight: bold;
|
|
27
|
+
.ant-dropdown-trigger {
|
|
28
|
+
color: #cbcbcb;
|
|
29
|
+
font-weight: normal;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
.head-active-list {
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
.head-active {
|
|
37
|
+
min-width: 155px;
|
|
38
|
+
height: 70px;
|
|
39
|
+
background: #e7f1fc;
|
|
40
|
+
display: flex;
|
|
41
|
+
align-items: center;
|
|
42
|
+
border-radius: 5px;
|
|
43
|
+
padding: 0 12px 0 8px;
|
|
44
|
+
margin-left: 18px;
|
|
45
|
+
.active-icon {
|
|
46
|
+
font-size: 18px;
|
|
47
|
+
width: 45px;
|
|
48
|
+
height: 45px;
|
|
49
|
+
border-radius: 50%;
|
|
50
|
+
color: #217eb2;
|
|
51
|
+
background: #ffffff;
|
|
52
|
+
display: flex;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
align-items: center;
|
|
55
|
+
}
|
|
56
|
+
.head-active-content {
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
color: #5d5d5d;
|
|
59
|
+
margin-left: 5px;
|
|
60
|
+
flex: 1;
|
|
61
|
+
span {
|
|
62
|
+
font-size: 24px;
|
|
63
|
+
line-height: 33px;
|
|
64
|
+
font-weight: bold;
|
|
65
|
+
display: block;
|
|
66
|
+
}
|
|
67
|
+
.ant-btn {
|
|
68
|
+
height: 12px;
|
|
69
|
+
font-size: 12px;
|
|
70
|
+
color: #cbcbcb;
|
|
71
|
+
padding: 0;
|
|
72
|
+
float: right;
|
|
73
|
+
&:hover {
|
|
74
|
+
color: #217eb2;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -2,7 +2,10 @@ import React from "react";
|
|
|
2
2
|
declare const InlineEditCountry: (props: {
|
|
3
3
|
country?: string;
|
|
4
4
|
/** 只显示list内的country */
|
|
5
|
-
list?:
|
|
5
|
+
list?: {
|
|
6
|
+
name: string;
|
|
7
|
+
iso: string;
|
|
8
|
+
}[];
|
|
6
9
|
readonly?: boolean;
|
|
7
10
|
onChange?: (country?: string) => void;
|
|
8
11
|
}) => React.JSX.Element;
|
|
@@ -4,8 +4,10 @@ import { InputCountry } from "@voplus/morpho-ui";
|
|
|
4
4
|
const InlineEditCountry = (props) => {
|
|
5
5
|
const { country, list, readonly } = props;
|
|
6
6
|
const [editable, setEditable] = useState(false);
|
|
7
|
+
const data = [];
|
|
8
|
+
list === null || list === void 0 ? void 0 : list.map((i) => data.push(i.iso));
|
|
7
9
|
const ref = useRef(null);
|
|
8
|
-
return (React.createElement("div", { onBlur: () => setEditable(false), style: { minWidth: "120px" } }, editable ? (React.createElement(InputCountry, { defaultValue: country, list:
|
|
10
|
+
return (React.createElement("div", { onBlur: () => setEditable(false), style: { minWidth: "120px" } }, editable ? (React.createElement(InputCountry, { defaultValue: country, list: data, onChange: onChange })) : (React.createElement("span", { className: classnames({ "add-info-style": !country }), onClick: onClick }, country || "Add Country"))));
|
|
9
11
|
function onChange(v) {
|
|
10
12
|
var _a;
|
|
11
13
|
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, v);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/InlineEditCountry/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sour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AAC,CAAC;IACpB,CAAC;IAED,SAAS,OAAO;QACf,IAAI,CAAC,QAAQ;YAAE,WAAW,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AACF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
6
|
+
import ItemFunction from "@voplus/morpho-org/es/controls/ItemFunction";
|
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
|
8
|
+
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
10
|
+
import classnames from "classnames";
|
|
11
|
+
import React from "react";
|
|
12
|
+
import { useOfficerStore } from "../../../../../../data/officer";
|
|
13
|
+
import OfficerStatusLabel from "../../controls/OfficerStatusLabel";
|
|
14
|
+
import OfficerQuickViewDialog from "../OfficerQuickView";
|
|
15
|
+
import "./index.less";
|
|
16
|
+
const TableCell = (props) => {
|
|
17
|
+
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
18
|
+
const store = useOfficerStore();
|
|
19
|
+
const meta = useMetaStore();
|
|
20
|
+
return observe(() => {
|
|
21
|
+
var _a;
|
|
22
|
+
return (React.createElement("td", { ...restProps }, dataIndex === "name" ? (React.createElement(ItemFunction, { className: "officer-table-item-info", onClick: props.onClick, quickViewDialog: (onCancel) => (React.createElement(OfficerQuickViewDialog, { id: record.id, visible: true, onCancel: onCancel })) },
|
|
23
|
+
React.createElement(UnitAvatar, { unit: record.contact }),
|
|
24
|
+
React.createElement("div", { className: "officer-table-item-name" }, ((_a = record.identity) === null || _a === void 0 ? void 0 : _a.fullName) ? (record.identity.fullName) : record.contact ? (React.createElement(UnitNameNoteAlert, { id: record.contact.id, name: record.contact.name })) : null))) : dataIndex === "position" ? (React.createElement("div", { className: "officer-table-item-amount" }, record.position)) : dataIndex === "status" ? (React.createElement(OfficerStatusLabel, { className: classnames("officer-table-status-label"), status: record.status })) : dataIndex === "menu" ? (React.createElement(ToolBar, { id: record.id, moreProps: {
|
|
25
|
+
buttonProps: { size: "middle" },
|
|
26
|
+
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
27
|
+
} },
|
|
28
|
+
React.createElement(Open, { size: "middle", url: `/officer/${record.id}` }))) : (children)));
|
|
29
|
+
});
|
|
30
|
+
};
|
|
31
|
+
export default TableCell;
|
|
32
|
+
//# sourceMappingURL=TableCell.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,YAAY,MAAM,6CAA6C,CAAC;AACvE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,UAAU,MAAM,8DAA8D,CAAC;AACtF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK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,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,CAC9B,6BAAK,SAAS,EAAC,2BAA2B,IAAE,MAAM,CAAC,QAAQ,CAAO,CAClE,CAAC,CAAC,CAAC,SAAS,KAAK,QAAQ,CAAC,CAAC,CAAC,CAC5B,oBAAC,kBAAkB,IAClB,SAAS,EAAE,UAAU,CAAC,4BAA4B,CAAC,EACnD,MAAM,EAAE,MAAM,CAAC,MAAM,GACpB,CACF,CAAC,CAAC,CAAC,SAAS,KAAK,MAAM,CAAC,CAAC,CAAC,CAC1B,oBAAC,OAAO,IACP,EAAE,EAAE,MAAM,CAAC,EAAE,EACb,SAAS,EAAE;gBACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBAC/B,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;aAC1C;YAED,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,YAAY,MAAM,CAAC,EAAE,EAAE,GAAI,CAC3C,CACV,CAAC,CAAC,CAAC,CACH,QAAQ,CACR,CACG,CACL,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
import { OfficerListProps } from "../OfficerList";
|
|
3
|
+
import "./index.less";
|
|
4
|
+
declare const OfficerTableListCard: {
|
|
5
|
+
(props: OfficerListProps & {
|
|
6
|
+
/** 是否允许新增 */
|
|
7
|
+
addAble?: boolean;
|
|
8
|
+
tableCardProps?: {
|
|
9
|
+
className?: string;
|
|
10
|
+
isHeader?: boolean;
|
|
11
|
+
title?: ReactNode;
|
|
12
|
+
};
|
|
13
|
+
}): React.JSX.Element;
|
|
14
|
+
defaultProps: {};
|
|
15
|
+
};
|
|
16
|
+
export default OfficerTableListCard;
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import { faBarsProgress, faReceipt, faThumbtack, } from "@fortawesome/pro-solid-svg-icons";
|
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
|
+
import { useDeepMemo, useLayout } from "@voplus/morpho-data";
|
|
4
|
+
import { useAutoUpdateListData, useMetaStore } from "@voplus/morpho-document-core";
|
|
5
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
|
+
import DocumentTableListCard from "@voplus/morpho-ui/es/components/DocumentTableListCard";
|
|
7
|
+
import TableListCard from "@voplus/morpho-ui/es/components/TableListCard";
|
|
8
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
9
|
+
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
10
|
+
import { Badge, Button, Menu } from "antd";
|
|
11
|
+
import React, { useState } from "react";
|
|
12
|
+
import OfficerStatusFilter from "../../controls/OfficerStatusFilter";
|
|
13
|
+
import SelectOfficerForm from "../SelectOfficerForm";
|
|
14
|
+
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
15
|
+
import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
|
|
16
|
+
import TableCell from "./TableCell";
|
|
17
|
+
import { State } from "../OfficerList/state";
|
|
18
|
+
import "./index.less";
|
|
19
|
+
const OfficerTableListCard = (props) => {
|
|
20
|
+
const { officersRegisterId, corporateId, selectDialog, isFilterPresent } = props;
|
|
21
|
+
const [visible, setVisible] = useState(false);
|
|
22
|
+
const [officerTotal, setOfficerTotal] = useState(0);
|
|
23
|
+
const officerStore = useOfficerStore();
|
|
24
|
+
const layout = useLayout();
|
|
25
|
+
const meta = useMetaStore();
|
|
26
|
+
const store = useOfficerStore();
|
|
27
|
+
const state = useDeepMemo(() => new State(), [officersRegisterId]);
|
|
28
|
+
/** 建立 ListView 和useDocumentListEffect所需的ListDataState. 会根据state.id重建所以不需reset. */
|
|
29
|
+
const list = useCreateListDataState({
|
|
30
|
+
filterDefaults: {
|
|
31
|
+
filters: filters(),
|
|
32
|
+
},
|
|
33
|
+
}, [officersRegisterId]);
|
|
34
|
+
const columnsList = [
|
|
35
|
+
{
|
|
36
|
+
title: (React.createElement(React.Fragment, null,
|
|
37
|
+
React.createElement(FAIcon, { icon: faThumbtack }),
|
|
38
|
+
" Officer Name")),
|
|
39
|
+
dataIndex: "name",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
title: (React.createElement(React.Fragment, null,
|
|
43
|
+
React.createElement(FAIcon, { icon: faReceipt }),
|
|
44
|
+
" Position")),
|
|
45
|
+
dataIndex: "position",
|
|
46
|
+
width: "22%",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
title: (React.createElement(React.Fragment, null,
|
|
50
|
+
React.createElement(FAIcon, { icon: faBarsProgress }),
|
|
51
|
+
" Status")),
|
|
52
|
+
dataIndex: "status",
|
|
53
|
+
width: "20%",
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
title: " ",
|
|
57
|
+
dataIndex: "menu",
|
|
58
|
+
width: "68px",
|
|
59
|
+
},
|
|
60
|
+
];
|
|
61
|
+
const components = {
|
|
62
|
+
body: {
|
|
63
|
+
// row: DragTableRow,
|
|
64
|
+
cell: TableCell,
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
const columns = columnsList.map((col) => {
|
|
68
|
+
return {
|
|
69
|
+
...col,
|
|
70
|
+
onCell: (record, rowIndex) => {
|
|
71
|
+
return {
|
|
72
|
+
record,
|
|
73
|
+
dataIndex: col.dataIndex,
|
|
74
|
+
rowIndex: rowIndex,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
};
|
|
78
|
+
});
|
|
79
|
+
/** useOnNewDocument, useOnDeleteDocument的sugar syntax 自動更新list. */
|
|
80
|
+
useAutoUpdateListData(list, (d) => d.parentId === officersRegisterId);
|
|
81
|
+
useRenderOnChange(() => list.filters.options);
|
|
82
|
+
/** 把ListDataState传给useOfficerListEffect,使之可以自動更新loading, hasmore. */
|
|
83
|
+
useOfficerListEffect(list, (result, total) => {
|
|
84
|
+
list.union(result);
|
|
85
|
+
setOfficerTotal(total);
|
|
86
|
+
}, {
|
|
87
|
+
Total: true,
|
|
88
|
+
...list.filters.options,
|
|
89
|
+
});
|
|
90
|
+
return observe(() => (React.createElement(React.Fragment, null,
|
|
91
|
+
React.createElement(ListDataContext.Provider, { value: list },
|
|
92
|
+
React.createElement(DocumentTableListCard, { isHeader: true, header: React.createElement(ListHeaderTool, { sortable: false, searchHeader: false, className: "officer-table-list-header", addOptions: {
|
|
93
|
+
trigger: ["click"],
|
|
94
|
+
overlay: (React.createElement(Menu, { onClick: state.onSelect, items: [
|
|
95
|
+
{ key: "Director", label: "Director" },
|
|
96
|
+
{ key: "Managing Director", label: "Managing Director" },
|
|
97
|
+
{ key: "Nominee Director", label: "Nominee Director" },
|
|
98
|
+
{ key: "Secretary", label: "Secretary" },
|
|
99
|
+
{ key: "DPO", label: "DPO" },
|
|
100
|
+
{ key: "CEO", label: "CEO" },
|
|
101
|
+
{ key: "Partner", label: "Partner" },
|
|
102
|
+
{ key: "Owner", label: "Owner" },
|
|
103
|
+
{ key: "Auditor", label: "Auditor" },
|
|
104
|
+
{ key: "Manager", label: "Manager" },
|
|
105
|
+
] })),
|
|
106
|
+
}, filterViewProps: {
|
|
107
|
+
columns: [
|
|
108
|
+
React.createElement(OfficerStatusFilter, { key: "OfficerStatusFilter", defaultValue: isFilterPresent ? ["Yes"] : [] }),
|
|
109
|
+
],
|
|
110
|
+
}, preExtra: () => (React.createElement("div", { className: "title" },
|
|
111
|
+
"Officers Register",
|
|
112
|
+
" ",
|
|
113
|
+
officerTotal ? React.createElement(Badge, { count: officerTotal, overflowCount: 99 }) : null)), rightExtra: () => (React.createElement(React.Fragment, null,
|
|
114
|
+
React.createElement(Button, { className: "send-form-btn", onClick: () => setVisible(true) }, "Send Form"))) }) },
|
|
115
|
+
React.createElement(TableListCard, { tableListProps: { columns: columns, components: components }, ...props.tableCardProps }))),
|
|
116
|
+
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => (state.addAble = false) })),
|
|
117
|
+
visible && (React.createElement(SelectOfficerForm, { parentId: officersRegisterId, onCancel: () => setVisible(false) })))));
|
|
118
|
+
function filters() {
|
|
119
|
+
const filter = [];
|
|
120
|
+
if (officersRegisterId) {
|
|
121
|
+
filter.push({ c: "ParentNodeId", o: "=", l: "And", v1: officersRegisterId });
|
|
122
|
+
}
|
|
123
|
+
if (selectDialog && corporateId) {
|
|
124
|
+
filter.push({ c: "CorporateId", o: "=", l: "And", v1: corporateId });
|
|
125
|
+
}
|
|
126
|
+
if (isFilterPresent) {
|
|
127
|
+
filter.push({ c: "Present", o: "=", l: "And", v1: "Yes" });
|
|
128
|
+
}
|
|
129
|
+
return filter;
|
|
130
|
+
}
|
|
131
|
+
/** 新增officerItem */
|
|
132
|
+
async function onSave(unit) {
|
|
133
|
+
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
134
|
+
if (unit) {
|
|
135
|
+
const res = await officerStore.create({
|
|
136
|
+
data: { RegisterId: officersRegisterId, UnitId: unit[0].id, Position: state.position },
|
|
137
|
+
error: "message",
|
|
138
|
+
});
|
|
139
|
+
list.union([res]);
|
|
140
|
+
}
|
|
141
|
+
state.addAble = false;
|
|
142
|
+
}
|
|
143
|
+
};
|
|
144
|
+
OfficerTableListCard.defaultProps = {};
|
|
145
|
+
export default OfficerTableListCard;
|
|
146
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/index.tsx"],"names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AS;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,oBAAoB,CAAC,YAAY,GAAG,EAAE,CAAC;AAEvC,eAAe,oBAAoB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
:global {
|
|
2
|
+
.officer-table-item-info {
|
|
3
|
+
color: #5d5d5d;
|
|
4
|
+
font-weight: 500;
|
|
5
|
+
padding: 1px 0;
|
|
6
|
+
cursor: pointer;
|
|
7
|
+
display: flex;
|
|
8
|
+
align-items: center;
|
|
9
|
+
.ant-avatar {
|
|
10
|
+
width: 30px;
|
|
11
|
+
height: 30px;
|
|
12
|
+
border-radius: 2px;
|
|
13
|
+
}
|
|
14
|
+
.officer-table-item-name {
|
|
15
|
+
flex: 1;
|
|
16
|
+
margin-left: 8px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.officer-table-status-label {
|
|
20
|
+
.officer-status-button {
|
|
21
|
+
width: 100px !important;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
.officer-table-list-header.list-view-header-tool {
|
|
25
|
+
padding: 0;
|
|
26
|
+
flex: 1;
|
|
27
|
+
.header-tool-space {
|
|
28
|
+
display: flex;
|
|
29
|
+
.title {
|
|
30
|
+
flex: 1;
|
|
31
|
+
}
|
|
32
|
+
.send-form-btn {
|
|
33
|
+
color: #217eb2;
|
|
34
|
+
border-color: #217eb2;
|
|
35
|
+
padding-left: 10px;
|
|
36
|
+
padding-right: 10px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
|
3
|
+
import classnames from "classnames";
|
|
4
|
+
import "./index.less";
|
|
5
|
+
const OfficerStatusButton = (props) => (React.createElement("div", { className: props.className },
|
|
6
|
+
React.createElement(DocumentStatusLabel, { className: classnames("officer-status-button"), editable: false, list: [], status: props.status })));
|
|
7
|
+
export default OfficerStatusButton;
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/controls/OfficerStatusLabel/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,mBAAmB,GAAG,CAAC,KAA8C,EAAE,EAAE,CAAC,CAC/E,6BAAK,SAAS,EAAE,KAAK,CAAC,SAAS;IAC9B,oBAAC,mBAAmB,IACnB,SAAS,EAAE,UAAU,CAAC,uBAAuB,CAAC,EAC9C,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,EAAE,EACR,MAAM,EAAE,KAAK,CAAC,MAAM,GACnB,CACG,CACN,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import React, { useLayoutEffect, useRef, useState } from "react";
|
|
2
|
-
import { Col, Row
|
|
2
|
+
import { Col, Row } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
|
-
import { faListTimeline } from "@fortawesome/pro-light-svg-icons";
|
|
6
4
|
import SharesCard from "../../components/SharesCard";
|
|
7
|
-
import
|
|
5
|
+
import ActivityLogCard from "@voplus/morpho-org/es/components/ActivityLogCard";
|
|
6
|
+
import CompanyPageHead from "../../components/CompanyPageHead";
|
|
8
7
|
import CompanyProperties from "../../components/CompanyProperties/CompanyPropertiesCard";
|
|
9
8
|
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
10
9
|
import CompanyMemberListCard from "../../member-register/components/CompanyMemberListCard";
|
|
11
10
|
import ContactPropertiesCard from "@voplus/morpho-org/es/components/ContactProperties/ContactPropertiesCard";
|
|
12
|
-
import
|
|
11
|
+
import OfficerTableListCard from "../../officer-register/components/OfficerTableListCard";
|
|
13
12
|
import FilingRecordTimeLine from "../../../filing-record/components/FilingRecordTimeLine";
|
|
14
13
|
import OrgContactListCard from "@voplus/morpho-org/es/modules/orgContact/components/OrgContactListCard";
|
|
15
14
|
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
16
|
-
import
|
|
17
|
-
import dayjs from "dayjs";
|
|
15
|
+
import CompanyAlert from "../../components/CompanyAlert";
|
|
18
16
|
import styles from "./index.less";
|
|
19
17
|
const Dashboard = (props) => {
|
|
20
18
|
const { corporate, membersRegisterId, officersRegisterId } = props;
|
|
@@ -27,51 +25,35 @@ const Dashboard = (props) => {
|
|
|
27
25
|
setActivitiesHeight((_a = ref.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
|
|
28
26
|
});
|
|
29
27
|
return observe(() => {
|
|
30
|
-
var _a, _b, _c, _d
|
|
28
|
+
var _a, _b, _c, _d;
|
|
31
29
|
return (React.createElement("div", { className: styles["dashboard-content"], ref: ref },
|
|
32
|
-
React.createElement(
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
((_c = corporate.unit) === null || _c === void 0 ? void 0 : _c.id) && React.createElement(NoteAlert, { id: corporate.unit.id }),
|
|
36
|
-
React.createElement("div", { className: "dashboard-content-header flex items-center justify-between w-full" },
|
|
37
|
-
React.createElement("div", { className: "flex-1 min-w-0" },
|
|
38
|
-
React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, corporate.name)),
|
|
39
|
-
React.createElement(Tooltip, { title: "Toggle Activity Log" },
|
|
40
|
-
React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faListTimeline }), onClick: toggleActivity }))),
|
|
30
|
+
React.createElement(CompanyAlert, { corporate: corporate }),
|
|
31
|
+
React.createElement(CompanyPageHead, { id: corporate.id, unitId: props.unitId }),
|
|
32
|
+
React.createElement(RelatedDocument, { className: "dashboard-related-document" },
|
|
41
33
|
React.createElement(Row, { gutter: [16, 0] },
|
|
42
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl:
|
|
34
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: 6 },
|
|
43
35
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
44
36
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
45
37
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } }))),
|
|
46
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: visible ?
|
|
47
|
-
officersRegisterId && (React.createElement(
|
|
38
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: visible ? 12 : 18 },
|
|
39
|
+
officersRegisterId && (React.createElement(OfficerTableListCard, { isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
48
40
|
membersRegisterId && (React.createElement(CompanyMemberListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id, style: { height: "400px" } })),
|
|
49
41
|
React.createElement(SharesCard, { corporateid: corporate.id }),
|
|
50
|
-
((
|
|
42
|
+
((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(FilingRecordTimeLine, { filingYearId: (_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id, title: "Latest Filing Year Time Line" }))),
|
|
51
43
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: visible ? 6 : 0 },
|
|
52
|
-
React.createElement("div", { className: "activity-
|
|
53
|
-
React.createElement(
|
|
44
|
+
React.createElement("div", { className: "activity-card-board", style: { height: `${activitiesHeight - 120}px` } },
|
|
45
|
+
React.createElement(ActivityLogCard, { id: corporate.id }))),
|
|
54
46
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 0 },
|
|
55
47
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
56
48
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
57
49
|
unit.type === "Organization" && (React.createElement(OrgContactListCard, { parentId: props.unitId, style: { height: "400px" } })),
|
|
58
|
-
officersRegisterId && (React.createElement(
|
|
50
|
+
officersRegisterId && (React.createElement(OfficerTableListCard, { officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
59
51
|
membersRegisterId && (React.createElement(CompanyMemberListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id, style: { height: "400px" } })),
|
|
60
52
|
React.createElement(SharesCard, { corporateid: corporate.id }),
|
|
61
|
-
((
|
|
62
|
-
|
|
63
|
-
React.createElement(
|
|
53
|
+
((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement(FilingRecordTimeLine, { filingYearId: (_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id, title: "Latest Filing Year Time Line" })),
|
|
54
|
+
React.createElement("div", { style: { height: `${activitiesHeight - 120}px` } },
|
|
55
|
+
React.createElement(ActivityLogCard, { id: corporate.id })))))));
|
|
64
56
|
});
|
|
65
|
-
function expriedAliterVisible(date) {
|
|
66
|
-
if (!date)
|
|
67
|
-
return true;
|
|
68
|
-
let totalDays, diffDate;
|
|
69
|
-
const myDate = Date.parse(dayjs(date).format("YYYY-MM-DD"));
|
|
70
|
-
const nowDate = Date.parse(dayjs(new Date()).format("YYYY-MM-DD"));
|
|
71
|
-
diffDate = nowDate - myDate;
|
|
72
|
-
totalDays = Math.floor(diffDate / (1000 * 3600 * 24));
|
|
73
|
-
return totalDays > 0;
|
|
74
|
-
}
|
|
75
57
|
function toggleActivity() {
|
|
76
58
|
setVisible(!visible);
|
|
77
59
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,qBAAqB,MAAM,wDAAwD,CAAC;AAC3F,OAAO,qBAAqB,MAAM,0EAA0E,CAAC;AAE7G,OAAO,oBAAoB,MAAM,wDAAwD,CAAC;AAC1F,OAAO,oBAAoB,MAAM,wDAAwD,CAAC;AAC1F,OAAO,kBAAkB,MAAM,wEAAwE,CAAC;AACxG,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AAEzD,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,SAAS,GAAG,CA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tB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,17 +1,14 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
3
|
-
import { faTableRows, faChartNetwork, faFolder, faScrollOld, faEllipsisVertical, faShareNodes, faVrCardboard, faGear, faBell, } from "@fortawesome/pro-duotone-svg-icons";
|
|
4
3
|
import { State } from "./state";
|
|
5
4
|
import { observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
6
5
|
import { useCorporate } from "../../../../../data/corporate";
|
|
7
6
|
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
8
7
|
import { CurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
|
9
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
8
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
11
9
|
import AnnualFilings from "../../../filing-record/components/AnnualFilings";
|
|
12
10
|
import Dashboard from "./Dashboard";
|
|
13
11
|
import CompanyMemberList from "../../member-register/components/CompanyMemberList";
|
|
14
|
-
import CorporateMenu from "../../controls/CorporateMenu";
|
|
15
12
|
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
|
16
13
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
17
14
|
import OfficerList from "../../officer-register/components/OfficerList";
|
|
@@ -20,13 +17,11 @@ import ShareTransactionList from "../../share-transactions-register/components/S
|
|
|
20
17
|
import ShareClassList from "../../../share-class/components/ShareClassList";
|
|
21
18
|
import VirtualAddressList from "../../../virtual-address/components/VirtualAddressList";
|
|
22
19
|
import NotificationList from "@voplus/morpho-workspace/es/modules/notification/components/NotificationList2";
|
|
23
|
-
import CorporateNavMenu from "../../../../../components/CorporateNavMenu";
|
|
20
|
+
import CorporateNavMenu from "../../../../../components/CorporateNavMenu/CorporateNavMenu";
|
|
24
21
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
25
22
|
import CompanySetting from "./CompanySetting";
|
|
26
23
|
import "./index.less";
|
|
27
24
|
const CompanyPage = (props) => {
|
|
28
|
-
/** 加class name 为了方便做integration tests */
|
|
29
|
-
const classId = "corporate-page";
|
|
30
25
|
const [state] = useState(new State());
|
|
31
26
|
const [loaded, setLoaded] = useState(true);
|
|
32
27
|
const corporate = useCorporate(props.id, {
|
|
@@ -45,69 +40,12 @@ const CompanyPage = (props) => {
|
|
|
45
40
|
});
|
|
46
41
|
return observe(() => {
|
|
47
42
|
var _a;
|
|
48
|
-
let renderNavMenuItems = [
|
|
49
|
-
{
|
|
50
|
-
key: "/filings",
|
|
51
|
-
icon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
52
|
-
label: "Filings",
|
|
53
|
-
className: `${classId}-filings`,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
key: "/documents",
|
|
57
|
-
icon: React.createElement(FAIcon, { icon: faFolder }),
|
|
58
|
-
label: "Documents",
|
|
59
|
-
className: `${classId}-documents`,
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
key: "/virtual-address",
|
|
63
|
-
icon: React.createElement(FAIcon, { icon: faVrCardboard }),
|
|
64
|
-
label: "Virtual Address",
|
|
65
|
-
className: `${classId}-virtual-address`,
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
key: "/notification",
|
|
69
|
-
icon: React.createElement(FAIcon, { icon: faBell }),
|
|
70
|
-
label: "Notification",
|
|
71
|
-
className: `${classId}-notification`,
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
key: "/activities",
|
|
75
|
-
icon: React.createElement(FAIcon, { icon: faChartNetwork }),
|
|
76
|
-
label: "Activities",
|
|
77
|
-
className: `${classId}-activities`,
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
key: "/settings",
|
|
81
|
-
icon: React.createElement(FAIcon, { icon: faGear }),
|
|
82
|
-
label: "Settings",
|
|
83
|
-
className: `${classId}-settings`,
|
|
84
|
-
},
|
|
85
|
-
];
|
|
86
|
-
if (((_a = state.corporate) === null || _a === void 0 ? void 0 : _a.liabilityType) === "LimitedByShares" &&
|
|
87
|
-
!renderNavMenuItems.map((m) => m.key).includes("/share-class")) {
|
|
88
|
-
renderNavMenuItems.unshift({
|
|
89
|
-
key: "/share-class",
|
|
90
|
-
icon: React.createElement(FAIcon, { icon: faShareNodes }),
|
|
91
|
-
label: "Share Class",
|
|
92
|
-
className: `${classId}-share-class`,
|
|
93
|
-
});
|
|
94
|
-
}
|
|
95
43
|
return (React.createElement(CurrentContactContext.Provider, { value: { contact: corporate.unit } },
|
|
96
44
|
React.createElement(MainContent, { className: "company-page" },
|
|
97
45
|
React.createElement(MainContent.Nav, { collapsible: true },
|
|
98
46
|
React.createElement(NavPanel, null,
|
|
99
|
-
React.createElement("h2", { className: "nav-panel-title" },
|
|
100
|
-
React.createElement("div", { className: "nav-panel-name" }, corporate.name),
|
|
101
|
-
React.createElement(CorporateMenu, { id: corporate.id, unitId: params.id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })),
|
|
102
47
|
React.createElement(Scrollbars, { autoHide: true },
|
|
103
|
-
React.createElement(CorporateNavMenu, { id: corporate.id, url: url, defaultSelectedKeys: ["/dashboard"],
|
|
104
|
-
{
|
|
105
|
-
key: "/dashboard",
|
|
106
|
-
icon: React.createElement(FAIcon, { icon: faTableRows }),
|
|
107
|
-
label: "Dashboard",
|
|
108
|
-
className: `${classId}-dashboard`,
|
|
109
|
-
},
|
|
110
|
-
], sufItems: renderNavMenuItems })))),
|
|
48
|
+
React.createElement(CorporateNavMenu, { id: corporate.id, url: url, defaultSelectedKeys: ["/dashboard"], showShareClass: ((_a = state.corporate) === null || _a === void 0 ? void 0 : _a.liabilityType) === "LimitedByShares" })))),
|
|
111
49
|
React.createElement("div", { className: "company-page-content" },
|
|
112
50
|
React.createElement(Routes, null,
|
|
113
51
|
React.createElement(Route, { path: "dashboard", element: React.createElement(Dashboard, { corporate: corporate, unitId: params.id, membersRegisterId: state.MemberId, officersRegisterId: state.OfficerId }) }),
|
|
@@ -120,7 +58,7 @@ const CompanyPage = (props) => {
|
|
|
120
58
|
React.createElement(Route, { path: "documents", element: React.createElement(DocumentPage, { root: corporate.id, route: `${url}/documents`, className: "corporate-documents", tabTitle: `Corporate - ${corporate.name}` || "Corporate" }) }),
|
|
121
59
|
React.createElement(Route, { path: "virtual-address", element: React.createElement(VirtualAddressList, { corporateId: corporate.id }) }),
|
|
122
60
|
React.createElement(Route, { path: "notification", element: React.createElement(NotificationList, { parentId: corporate.id, recipient: corporate.unit }) }),
|
|
123
|
-
React.createElement(Route, { path: "activities", element: React.createElement(ActivityLog, { id: corporate.id,
|
|
61
|
+
React.createElement(Route, { path: "activities", element: React.createElement(ActivityLog, { id: corporate.id, isTitle: true }) }),
|
|
124
62
|
React.createElement(Route, { path: "settings", element: React.createElement(CompanySetting, { id: props.id, liabilityType: corporate.liabilityType }) }),
|
|
125
63
|
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) }))))));
|
|
126
64
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACvF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CompanyPage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE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AC/E,oBAAC,KAAK,IACL,IAAI,EAAC,UAAU,EACf,OAAO,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,aAAa,EAAE,SAAS,CAAC,aAAa,GAAI,GAChF;wBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACkB,CACjC,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;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -35,34 +35,37 @@
|
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
.dashboard-content {
|
|
38
|
+
display: flex;
|
|
39
|
+
flex-direction: column;
|
|
38
40
|
height: 100%;
|
|
39
41
|
background: #f5f9fc;
|
|
42
|
+
position: relative;
|
|
40
43
|
|
|
41
44
|
:global {
|
|
42
|
-
.
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
45
|
+
.dashboard-alert-content {
|
|
46
|
+
position: absolute;
|
|
47
|
+
width: 500px;
|
|
48
|
+
left: 40%;
|
|
49
|
+
transform: translateX(-50%);
|
|
50
|
+
z-index: 2;
|
|
46
51
|
}
|
|
47
52
|
|
|
48
53
|
.dashboard-content-header {
|
|
49
54
|
padding: 2em 0px 1em 0px;
|
|
50
55
|
}
|
|
51
56
|
|
|
52
|
-
.activity-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
border-radius: 0.5rem;
|
|
57
|
-
border: 1px solid rgb(229 231 235);
|
|
57
|
+
.activity-card-board {
|
|
58
|
+
> div {
|
|
59
|
+
height: 100%;
|
|
60
|
+
}
|
|
58
61
|
}
|
|
59
62
|
|
|
60
|
-
.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
.dashboard-related-document {
|
|
64
|
+
margin: 0;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.activityt-group .activityt-group-title {
|
|
68
|
+
background: #e7f1fc;
|
|
66
69
|
}
|
|
67
70
|
}
|
|
68
71
|
}
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js
CHANGED
|
@@ -23,7 +23,7 @@ const NewFilingTypeForm = (props) => {
|
|
|
23
23
|
const store = useFilingTypeStore();
|
|
24
24
|
useCLDASettingListEffect(null, (result) => {
|
|
25
25
|
const data = [];
|
|
26
|
-
result.map((item) => data.push(item.
|
|
26
|
+
result.map((item) => data.push(item.iso));
|
|
27
27
|
setList([...new Set(data)]);
|
|
28
28
|
}, {
|
|
29
29
|
Filters: [],
|
package/es/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,wBAAwB,EAAE,MAAM,qCAAqC,CAAC;AAC/E,OAAO,EAAE,mBAAmB,EAAE,MAAM,oCAAoC,CAAC;AACzE,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,iBAAiB,GAAG,CAAC,KAS1B,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAC9B,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,QAAQ,EAAY,CAAC;IAE7C,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,wBAAwB,CACvB,IAAI,EACJ,CAAC,MAAM,EAAE,EAAE;QACV,MAAM,IAAI,GAAU,EAAE,CAAC;QACvB,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/NewFilingTypeForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,MAAM,EA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;QACtB,iEAAiE;QACjE,UAAU,CAAC,IAAI,CAAC,CAAC;QACjB,MAAM,KAAK,CAAC,MAAM,CAAC;YAClB,IAAI,EAAE,KAAK,CAAC,MAAa;YACzB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;QACH,2CAA2C;QAC3C,UAAU,CAAC,KAAK,CAAC,CAAC;QAClB,YAAa,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAA,KAAK,CAAC,MAAM,sDAAG,KAAK,CAAC,MAAM,CAAC,CAAC;IAC9B,CAAC;IAED,SAAS,QAAQ;;QAChB,YAAa,CAAC,UAAU,EAAE,CAAC;QAC3B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AAEF,iBAAiB,CAAC,YAAY,GAAG;IAChC,QAAQ,EAAE,WAAW;CACrB,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.js
CHANGED
|
@@ -21,7 +21,7 @@ const NewIncorporationCLDAForm = (props) => {
|
|
|
21
21
|
const store = useIncorporationCLDAStore();
|
|
22
22
|
useCLDASettingListEffect(null, (result) => {
|
|
23
23
|
const data = [];
|
|
24
|
-
result.map((item) => data.push(item.
|
|
24
|
+
result.map((item) => data.push(item.iso));
|
|
25
25
|
setList([...new Set(data)]);
|
|
26
26
|
}, {
|
|
27
27
|
Filters: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE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AE,CAAC;QACvB,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/NewIncorporationCLDAForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAiB,QAAQ,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,wCAAwC,CAAC;AACnF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KA2BjC,EAAE,EAAE;IACJ,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,iBAAiB,EAAE,IAAI,EAAE,WAAW,EAAE,OAAO,EAAE,gBAAgB,EAAE,GACzF,KAAK,CAAC;IACP,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC;IACzE,MAAM,CAAC,IAAI,C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