@voplus/morpho-csp 6.0.116 → 6.0.118
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 +2 -0
- package/es/components/CorporateNavMenu/CorporateNavMenu.js +11 -35
- package/es/components/CorporateNavMenu/CorporateNavMenu.js.map +1 -1
- package/es/components/IdentityStatus/IdentityStatus2.d.ts +6 -0
- package/es/components/IdentityStatus/IdentityStatus2.js +36 -0
- package/es/components/IdentityStatus/IdentityStatus2.js.map +1 -0
- package/es/components/IdentityStatus/index.d.ts +5 -0
- package/es/components/IdentityStatus/index.js +24 -0
- package/es/components/IdentityStatus/index.js.map +1 -0
- package/es/components/IdentityStatus/index.less +31 -0
- package/es/data/controller/interfaces.d.ts +2 -1
- package/es/data/corporate/interfaces.d.ts +29 -0
- package/es/modules/corporate/company/components/CapitalCard/index.d.ts +2 -1
- package/es/modules/corporate/company/components/CapitalCard/index.js +19 -29
- package/es/modules/corporate/company/components/CapitalCard/index.js.map +1 -1
- package/es/modules/corporate/company/components/CapitalCard/index.less +50 -31
- package/es/modules/corporate/company/components/CompanyPageHead/index.d.ts +0 -1
- package/es/modules/corporate/company/components/CompanyPageHead/index.js +28 -43
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCapitalCard/index.d.ts +6 -0
- package/es/modules/corporate/company/components/SharesCapitalCard/index.js +26 -0
- package/es/modules/corporate/company/components/SharesCapitalCard/index.js.map +1 -0
- package/es/modules/corporate/company/components/SharesCapitalCard/state.d.ts +16 -0
- package/es/modules/corporate/company/components/SharesCapitalCard/state.js +85 -0
- package/es/modules/corporate/company/components/SharesCapitalCard/state.js.map +1 -0
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js +3 -22
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard2/index.d.ts +3 -1
- package/es/modules/corporate/company/components/SharesCard2/index.js +32 -42
- package/es/modules/corporate/company/components/SharesCard2/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard2/index.less +58 -15
- package/es/modules/corporate/company/components/SharesCard2/state.d.ts +1 -0
- package/es/modules/corporate/company/components/SharesCard2/state.js +11 -0
- package/es/modules/corporate/company/components/SharesCard2/state.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.d.ts +3 -2
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js +6 -6
- package/es/modules/corporate/company/controller-register/components/ControllerList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +17 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +77 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +15 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +118 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +73 -0
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/index.d.ts +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.d.ts +2 -0
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js +5 -5
- package/es/modules/corporate/company/member-register/components/CompanyMemberList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +19 -0
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.d.ts +13 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js +39 -9
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.d.ts +13 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +76 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +7 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +26 -44
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +30 -16
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +19 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.d.ts +13 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js +40 -10
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCell.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.d.ts +13 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +82 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +7 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +41 -56
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +24 -10
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +7 -19
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.js +4 -4
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +7 -16
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/RegistersPage/index.d.ts +4 -0
- package/es/modules/corporate/company/pages/RegistersPage/index.js +42 -0
- package/es/modules/corporate/company/pages/RegistersPage/index.js.map +1 -0
- package/es/modules/corporate/company/pages/RegistersPage/index.less +63 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareMovementsDataIcon/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTablePreview/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.d.ts +3 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionList/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.d.ts +6 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js +51 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/Table.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.d.ts +7 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js +56 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/Item/index.less +161 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.d.ts +8 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js +88 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.js.map +1 -0
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTableList/index.less +20 -0
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js +2 -2
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.d.ts +7 -0
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js +49 -0
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.js.map +1 -0
- package/es/modules/corporate/share-class/components/ShareClassCardList/index.less +49 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.d.ts +6 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js +34 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.js.map +1 -0
- package/es/modules/corporate/share-class/components/ShareClassItemCard/index.less +78 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.d.ts +6 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js +17 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.js.map +1 -0
- package/es/modules/corporate/share-class/pages/ShareClassListPage/index.less +8 -0
- package/package.json +1 -1
- package/es/modules/corporate/company/components/CompanyPageHead/index.less +0 -80
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { Itotal } from "../../data/corporate";
|
|
2
3
|
import "./index.less";
|
|
3
4
|
declare const CorporateNavMenu: (props: {
|
|
4
5
|
id: string;
|
|
5
6
|
url?: string;
|
|
6
7
|
defaultSelectedKeys?: string[];
|
|
7
8
|
showShareClass?: boolean;
|
|
9
|
+
totals: Itotal;
|
|
8
10
|
}) => React.JSX.Element;
|
|
9
11
|
export default CorporateNavMenu;
|
|
@@ -1,25 +1,17 @@
|
|
|
1
1
|
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { faUserEdit, faHandsUsd, faRegistered, faUserTag, faUserVneck, faUsers, faTableRows, faChartNetwork, faFolder, faScrollOld, faShareNodes, faVrCardboard, faGear, faBell, } from "@fortawesome/pro-solid-svg-icons";
|
|
3
3
|
import { Menu, message, Badge } from "antd";
|
|
4
|
-
import { observe
|
|
5
|
-
import { useFilingYearListEffect } from "../../data/filing-year";
|
|
6
|
-
import { useOfficerListEffect } from "../../data/officer";
|
|
7
|
-
import { useMemberListEffect } from "../../data/member";
|
|
8
|
-
import { useControllerListEffect } from "../../data/controller";
|
|
9
|
-
import { useShareTransactionListEffect } from "../../data/share-transaction";
|
|
10
|
-
import { useShareClassListEffect } from "../../data/share-class";
|
|
11
|
-
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
12
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
13
6
|
import NavMenuItem from "./NavMenuItem";
|
|
14
|
-
import {
|
|
7
|
+
import { useCorporateStore, useCorporate } from "../../data/corporate";
|
|
15
8
|
import { State } from "./state";
|
|
16
|
-
import { runInAction } from "mobx";
|
|
17
9
|
import { useLayout } from "@voplus/morpho-data";
|
|
18
10
|
import "./index.less";
|
|
19
11
|
const CorporateNavMenu = (props) => {
|
|
20
12
|
/** 加class name 为了方便做integration tests */
|
|
21
13
|
const classId = "corporate-page";
|
|
22
|
-
const { id, url, defaultSelectedKeys, showShareClass } = props;
|
|
14
|
+
const { id, url, totals, defaultSelectedKeys, showShareClass } = props;
|
|
23
15
|
const layout = useLayout();
|
|
24
16
|
const store = useCorporateStore();
|
|
25
17
|
const [state] = useState(new State(id));
|
|
@@ -27,22 +19,6 @@ const CorporateNavMenu = (props) => {
|
|
|
27
19
|
useEffect(() => {
|
|
28
20
|
state.update(corporate);
|
|
29
21
|
}, [corporate.registers]);
|
|
30
|
-
useRenderOnChange(() => state.nFilingOptions ||
|
|
31
|
-
state.nOfficerOptions ||
|
|
32
|
-
state.nMemberOptions ||
|
|
33
|
-
state.nControllerOptions ||
|
|
34
|
-
state.nShareOptions ||
|
|
35
|
-
state.nShareClassOptions ||
|
|
36
|
-
state.nDocumentOptions);
|
|
37
|
-
useFilingYearListEffect(null, (result, total) => runInAction(() => (state.filingTotals = total || 0)), state.nFilingOptions);
|
|
38
|
-
useShareClassListEffect(null, (result, total) => runInAction(() => (state.shareClassTotals = total || 0)), state.nShareClassOptions);
|
|
39
|
-
useDocumentListEffect(null, (result, total) => {
|
|
40
|
-
state.documentTotals = total || 0;
|
|
41
|
-
}, state.nDocumentOptions);
|
|
42
|
-
useOfficerListEffect(null, (result, total) => runInAction(() => (state.officerTotals = total || 0)), state.nOfficerOptions);
|
|
43
|
-
useMemberListEffect(null, (result, total) => runInAction(() => (state.memberTotals = total || 0)), state.nMemberOptions);
|
|
44
|
-
useControllerListEffect(null, (result, total) => runInAction(() => (state.controllerTotals = total || 0)), state.nControllerOptions);
|
|
45
|
-
useShareTransactionListEffect(null, (result, total) => runInAction(() => (state.shareTotals = total || 0)), state.nShareOptions);
|
|
46
22
|
return observe(() => {
|
|
47
23
|
var _a;
|
|
48
24
|
return (React.createElement(Menu, { className: "company-menu", mode: "inline", defaultSelectedKeys: defaultSelectedKeys, onClick: ({ key }) => onClick(key), items: [
|
|
@@ -93,13 +69,13 @@ const CorporateNavMenu = (props) => {
|
|
|
93
69
|
label: (React.createElement(React.Fragment, null,
|
|
94
70
|
React.createElement("span", { className: "item-name" }, r.type.replace(/.(?=[A-Z])/g, "$& ")),
|
|
95
71
|
React.createElement(Badge, { count: r.type === "OfficersRegister"
|
|
96
|
-
?
|
|
72
|
+
? totals.officers.total
|
|
97
73
|
: r.type === "MembersRegister"
|
|
98
|
-
?
|
|
74
|
+
? totals.members.total
|
|
99
75
|
: r.type === "ControllerRegister"
|
|
100
|
-
?
|
|
76
|
+
? totals.controllers.total
|
|
101
77
|
: r.type === "ShareTransactionsRegister"
|
|
102
|
-
?
|
|
78
|
+
? totals.shareTransactions.total
|
|
103
79
|
: null }))),
|
|
104
80
|
icon: getIcon(r.type),
|
|
105
81
|
className: `/registers/${r.type}`,
|
|
@@ -118,7 +94,7 @@ const CorporateNavMenu = (props) => {
|
|
|
118
94
|
icon: React.createElement(FAIcon, { icon: faShareNodes }),
|
|
119
95
|
label: (React.createElement(React.Fragment, null,
|
|
120
96
|
React.createElement("span", { className: "item-name" }, "Share Class"),
|
|
121
|
-
React.createElement(Badge, { count:
|
|
97
|
+
React.createElement(Badge, { count: totals.shareClasses.total }))),
|
|
122
98
|
className: `${classId}-share-class`,
|
|
123
99
|
}
|
|
124
100
|
: null,
|
|
@@ -127,8 +103,8 @@ const CorporateNavMenu = (props) => {
|
|
|
127
103
|
key: "/filings",
|
|
128
104
|
icon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
129
105
|
label: (React.createElement(React.Fragment, null,
|
|
130
|
-
React.createElement("span", { className: "item-name" }, "
|
|
131
|
-
React.createElement(Badge, { count:
|
|
106
|
+
React.createElement("span", { className: "item-name" }, "Filing Years"),
|
|
107
|
+
React.createElement(Badge, { count: totals.filingYears.total }))),
|
|
132
108
|
className: `${classId}-filings`,
|
|
133
109
|
},
|
|
134
110
|
{
|
|
@@ -136,7 +112,7 @@ const CorporateNavMenu = (props) => {
|
|
|
136
112
|
icon: React.createElement(FAIcon, { icon: faFolder }),
|
|
137
113
|
label: (React.createElement(React.Fragment, null,
|
|
138
114
|
React.createElement("span", { className: "item-name" }, "Documents"),
|
|
139
|
-
React.createElement(Badge, { count:
|
|
115
|
+
React.createElement(Badge, { count: totals.documents.total }))),
|
|
140
116
|
className: `${classId}-documents`,
|
|
141
117
|
},
|
|
142
118
|
],
|
|
@@ -1 +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,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C;IAEH,SAAS,OAAO,CAAC,IAAY;QAC5B,QAAQ,IAAI,EAAE,CAAC;YACd,KAAK,2BAA2B;gBAC/B,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"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { runInAction } from "mobx";
|
|
4
|
+
import styles from "./index.less";
|
|
5
|
+
import classnames from "classnames";
|
|
6
|
+
import { faCircle } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { faCircleDot } from "@fortawesome/pro-regular-svg-icons";
|
|
8
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { useVerificationStore } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
|
|
10
|
+
import { State } from "../../modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/state";
|
|
11
|
+
const IdentityStatus2 = (props) => {
|
|
12
|
+
const verifyStore = useVerificationStore();
|
|
13
|
+
const [state] = useState(new State(verifyStore));
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
runInAction(() => {
|
|
16
|
+
state.id = props.id;
|
|
17
|
+
state.load();
|
|
18
|
+
});
|
|
19
|
+
}, [props.id]);
|
|
20
|
+
return observe(() => {
|
|
21
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
22
|
+
return (React.createElement("div", { className: classnames(styles["identity-verification"], props.className) },
|
|
23
|
+
React.createElement("span", { className: classnames("verification", {
|
|
24
|
+
checked: (_b = (_a = state.verification) === null || _a === void 0 ? void 0 : _a.verifiedBy) === null || _b === void 0 ? void 0 : _b.id,
|
|
25
|
+
}) },
|
|
26
|
+
React.createElement(FAIcon, { icon: ((_d = (_c = state.verification) === null || _c === void 0 ? void 0 : _c.verifiedBy) === null || _d === void 0 ? void 0 : _d.id) ? faCircleDot : faCircle }),
|
|
27
|
+
" Verified"),
|
|
28
|
+
React.createElement("span", { className: classnames("verification", {
|
|
29
|
+
checked: (_f = (_e = state.verification) === null || _e === void 0 ? void 0 : _e.confirmedBy) === null || _f === void 0 ? void 0 : _f.id,
|
|
30
|
+
}) },
|
|
31
|
+
React.createElement(FAIcon, { icon: ((_h = (_g = state.verification) === null || _g === void 0 ? void 0 : _g.confirmedBy) === null || _h === void 0 ? void 0 : _h.id) ? faCircleDot : faCircle }),
|
|
32
|
+
" Confirm")));
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
export default IdentityStatus2;
|
|
36
|
+
//# sourceMappingURL=IdentityStatus2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IdentityStatus2.js","sourceRoot":"","sources":["../../../src/components/IdentityStatus/IdentityStatus2.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,oBAAoB,EAAE,MAAM,sFAAsF,CAAC;AAC5H,OAAO,EAAE,KAAK,EAAE,MAAM,yGAAyG,CAAC;AAEhI,MAAM,eAAe,GAAG,CAAC,KAAyC,EAAE,EAAE;IACrE,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;YACpB,KAAK,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,uBAAuB,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;YAC3E,8BACC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE;oBACrC,OAAO,EAAE,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,0CAAE,EAAE;iBAC3C,CAAC;gBAEF,oBAAC,MAAM,IAAC,IAAI,EAAE,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,0CAAE,EAAE,EAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,GAAI;4BACvE;YACP,8BACC,SAAS,EAAE,UAAU,CAAC,cAAc,EAAE;oBACrC,OAAO,EAAE,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,0CAAE,EAAE;iBAC5C,CAAC;gBAEF,oBAAC,MAAM,IAAC,IAAI,EAAE,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,0CAAE,EAAE,EAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,GAAI;2BACxE,CACF,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { runInAction } from "mobx";
|
|
4
|
+
import styles from "./index.less";
|
|
5
|
+
import { useVerificationStore } from "@voplus/morpho-org/es/modules/verification/VerificationInformation/VerificationStore";
|
|
6
|
+
import { State } from "../../modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/state";
|
|
7
|
+
const IdentityStatus = (props) => {
|
|
8
|
+
const verifyStore = useVerificationStore();
|
|
9
|
+
const [state] = useState(new State(verifyStore));
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
runInAction(() => {
|
|
12
|
+
state.id = props.id;
|
|
13
|
+
state.load();
|
|
14
|
+
});
|
|
15
|
+
}, [props.id]);
|
|
16
|
+
return observe(() => {
|
|
17
|
+
var _a, _b, _c, _d;
|
|
18
|
+
return (React.createElement("div", { className: styles["identity-status"] },
|
|
19
|
+
((_b = (_a = state.verification) === null || _a === void 0 ? void 0 : _a.verifiedBy) === null || _b === void 0 ? void 0 : _b.id) && React.createElement("span", { className: "verified" }, "Verified"),
|
|
20
|
+
((_d = (_c = state.verification) === null || _c === void 0 ? void 0 : _c.confirmedBy) === null || _d === void 0 ? void 0 : _d.id) && React.createElement("span", null, "Confirm")));
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
export default IdentityStatus;
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/IdentityStatus/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,sFAAsF,CAAC;AAC5H,OAAO,EAAE,KAAK,EAAE,MAAM,yGAAyG,CAAC;AAEhI,MAAM,cAAc,GAAG,CAAC,KAAqB,EAAE,EAAE;IAChD,MAAM,WAAW,GAAG,oBAAoB,EAAE,CAAC;IAC3C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;IAEjD,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE;YAChB,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;YACpB,KAAK,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACJ,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,iBAAiB,CAAC;YACvC,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,UAAU,0CAAE,EAAE,KAAI,8BAAM,SAAS,EAAC,UAAU,eAAgB;YAChF,CAAA,MAAA,MAAA,KAAK,CAAC,YAAY,0CAAE,WAAW,0CAAE,EAAE,KAAI,4CAAoB,CACvD,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
.identity-status {
|
|
2
|
+
:global {
|
|
3
|
+
span {
|
|
4
|
+
display: inline-block;
|
|
5
|
+
height: 30px;
|
|
6
|
+
line-height: 30px;
|
|
7
|
+
color: #217eb2;
|
|
8
|
+
background: #f4f9ff;
|
|
9
|
+
padding: 0 8px;
|
|
10
|
+
border-radius: 5px;
|
|
11
|
+
font-weight: bold;
|
|
12
|
+
&.verified {
|
|
13
|
+
color: #197659;
|
|
14
|
+
background: #e3fff0;
|
|
15
|
+
margin-right: 10px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
.identity-verification {
|
|
22
|
+
:global {
|
|
23
|
+
.verification {
|
|
24
|
+
color: #868686;
|
|
25
|
+
margin-left: 10px;
|
|
26
|
+
&.checked {
|
|
27
|
+
color: #217eb2;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IAddress } from "@voplus/morpho-org";
|
|
2
2
|
import { ILoadable } from "@voplus/morpho-data";
|
|
3
|
-
import { INode } from "@voplus/morpho-document-core";
|
|
3
|
+
import { INode, ITag } from "@voplus/morpho-document-core";
|
|
4
4
|
export interface IController extends ILoadable, INode {
|
|
5
5
|
/** id of corporate */
|
|
6
6
|
id: string;
|
|
@@ -28,4 +28,5 @@ export interface IController extends ILoadable, INode {
|
|
|
28
28
|
email?: string;
|
|
29
29
|
phone?: string;
|
|
30
30
|
lastNotice?: string;
|
|
31
|
+
tags?: ITag[];
|
|
31
32
|
}
|
|
@@ -65,6 +65,35 @@ export interface ICorporate extends ILoadable, INode {
|
|
|
65
65
|
registerOfOfficersReport?: IOfficer[];
|
|
66
66
|
registerOfMembersReport?: ICompanyMember[];
|
|
67
67
|
registerOfControllersReport?: IController[];
|
|
68
|
+
totals: Itotal;
|
|
69
|
+
}
|
|
70
|
+
export interface Itotal {
|
|
71
|
+
controllers: {
|
|
72
|
+
total: number;
|
|
73
|
+
};
|
|
74
|
+
documents: {
|
|
75
|
+
total: number;
|
|
76
|
+
};
|
|
77
|
+
filings: {
|
|
78
|
+
due: number;
|
|
79
|
+
};
|
|
80
|
+
filingYears: {
|
|
81
|
+
total: number;
|
|
82
|
+
};
|
|
83
|
+
members: {
|
|
84
|
+
total: number;
|
|
85
|
+
active: number;
|
|
86
|
+
};
|
|
87
|
+
officers: {
|
|
88
|
+
total: number;
|
|
89
|
+
active: number;
|
|
90
|
+
};
|
|
91
|
+
shareClasses: {
|
|
92
|
+
total: number;
|
|
93
|
+
};
|
|
94
|
+
shareTransactions: {
|
|
95
|
+
total: number;
|
|
96
|
+
};
|
|
68
97
|
}
|
|
69
98
|
export interface IMember {
|
|
70
99
|
name: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
+
import { ICapital } from "../../../../../data/corporate";
|
|
2
3
|
import "./index.less";
|
|
3
4
|
declare const CapitalCard: (props: {
|
|
4
|
-
corporateid: string;
|
|
5
5
|
unitId: string;
|
|
6
|
+
capital: ICapital[];
|
|
6
7
|
}) => React.JSX.Element;
|
|
7
8
|
export default CapitalCard;
|
|
@@ -1,40 +1,30 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
|
4
|
-
import {
|
|
4
|
+
import { Empty, Carousel } from "antd";
|
|
5
5
|
import Tip from "@voplus/morpho-ui/es/controls/Tit";
|
|
6
|
-
import { useCorporateStore } from "../../../../../data/corporate";
|
|
7
6
|
import { faSackDollar } from "@fortawesome/pro-solid-svg-icons";
|
|
8
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
9
8
|
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
9
|
+
import CurrencyAmount from "@voplus/morpho-ui/es/controls/CurrencyAmount";
|
|
10
|
+
import classnames from "classnames";
|
|
12
11
|
import "./index.less";
|
|
13
12
|
const CapitalCard = (props) => {
|
|
14
|
-
const {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
React.createElement(
|
|
24
|
-
React.createElement("div", { className: "capital-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
React.createElement("div", { className: "capital-amount" }, (_d = (_c = state.capital) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.amount),
|
|
30
|
-
React.createElement("div", { className: "capital-text" }, "Total Capital Amount"),
|
|
31
|
-
React.createElement("span", { className: "capital-status" }, "Stable Capital Reserves"),
|
|
32
|
-
React.createElement("div", { className: "update-open" },
|
|
33
|
-
"Update on ",
|
|
34
|
-
dayjs().format("DD MMM YYYY"),
|
|
35
|
-
" ",
|
|
36
|
-
React.createElement(Open, { url: `/corporates/unit/${unitId}/share-class` })))));
|
|
37
|
-
});
|
|
13
|
+
const { capital, unitId } = props;
|
|
14
|
+
return observe(() => (React.createElement(Card, { className: "capital-card shadow ring-1 ring-black ring-opacity-5" },
|
|
15
|
+
React.createElement("div", { className: "capital-card-head" },
|
|
16
|
+
React.createElement(FAIcon, { icon: faSackDollar }),
|
|
17
|
+
" Capital",
|
|
18
|
+
React.createElement(Tip, { className: "capital-tip", content: "capital...." }),
|
|
19
|
+
React.createElement("span", { className: "capital-card-open" },
|
|
20
|
+
React.createElement(Open, { url: `/corporates/unit/${unitId}/share-class` }))),
|
|
21
|
+
React.createElement(Carousel, { autoplay: capital.length <= 1 ? false : true, className: classnames({ hide: capital.length <= 1 }) },
|
|
22
|
+
capital.map((c, i) => (React.createElement("div", { className: "capital-content", key: i },
|
|
23
|
+
React.createElement("div", { className: "capital-currency" }, c.currency),
|
|
24
|
+
React.createElement("div", { className: "capital-info" }, "Capital Currency"),
|
|
25
|
+
React.createElement(CurrencyAmount, { amount: c.amount }),
|
|
26
|
+
React.createElement("div", null, "Total Capital Amount")))),
|
|
27
|
+
!capital.length && React.createElement(Empty, null)))));
|
|
38
28
|
};
|
|
39
29
|
export default CapitalCard;
|
|
40
30
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CapitalCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CapitalCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,GAAG,MAAM,mCAAmC,CAAC;AAEpD,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,cAAc,MAAM,8CA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
|
|
2
2
|
.capital-card {
|
|
3
3
|
background: #fff;
|
|
4
4
|
border-radius: 5px;
|
|
5
|
-
padding: 12px
|
|
5
|
+
padding: 12px 15px 8px;
|
|
6
6
|
.capital-card-head {
|
|
7
7
|
font-size: 16px;
|
|
8
8
|
color: #217eb2;
|
|
@@ -14,41 +14,60 @@
|
|
|
14
14
|
color: #e6e6e6;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
+
.capital-card-open {
|
|
18
|
+
float: right;
|
|
19
|
+
.ant-btn {
|
|
20
|
+
font-size: 12px;
|
|
21
|
+
color: #e6e6e6;
|
|
22
|
+
padding: 0;
|
|
23
|
+
&:hover {
|
|
24
|
+
color: #217eb2;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
17
28
|
}
|
|
18
|
-
.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
+
.ant-carousel {
|
|
30
|
+
.slick-slider {
|
|
31
|
+
&.hide {
|
|
32
|
+
.slick-dots {
|
|
33
|
+
display: none !important;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
.slick-list {
|
|
37
|
+
padding-bottom: 20px;
|
|
38
|
+
}
|
|
39
|
+
.slick-dots-bottom {
|
|
40
|
+
bottom: 6px;
|
|
41
|
+
}
|
|
42
|
+
.slick-dots li {
|
|
43
|
+
width: 4px;
|
|
44
|
+
&.slick-active {
|
|
45
|
+
button {
|
|
46
|
+
background: #868686;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
button {
|
|
50
|
+
width: 6px;
|
|
51
|
+
height: 6px;
|
|
52
|
+
border-radius: 50%;
|
|
53
|
+
background: #cbcbcb;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
29
57
|
}
|
|
30
|
-
.capital-
|
|
58
|
+
.capital-content {
|
|
31
59
|
color: #5d5d5d;
|
|
60
|
+
font: normal normal 600 14px/19px Open Sans;
|
|
32
61
|
}
|
|
33
|
-
.capital-
|
|
34
|
-
|
|
35
|
-
height: 30px;
|
|
36
|
-
line-height: 30px;
|
|
37
|
-
font-weight: bold;
|
|
38
|
-
color: #4e9b47;
|
|
39
|
-
background: #ebfee8;
|
|
40
|
-
padding: 0 12px;
|
|
41
|
-
border-radius: 5px;
|
|
62
|
+
.capital-currency {
|
|
63
|
+
font: normal normal bold 23px/32px Open Sans;
|
|
42
64
|
}
|
|
43
|
-
.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
color: #217eb2;
|
|
50
|
-
}
|
|
51
|
-
}
|
|
65
|
+
.capital-info {
|
|
66
|
+
font: normal normal normal 12px/17px Open Sans;
|
|
67
|
+
}
|
|
68
|
+
.ant-statistic-content {
|
|
69
|
+
font: normal normal bold 38px/52px Open Sans;
|
|
70
|
+
color: #217eb2;
|
|
52
71
|
}
|
|
53
72
|
}
|
|
54
73
|
}
|
|
@@ -1,20 +1,15 @@
|
|
|
1
1
|
import React, { useMemo, useEffect } from "react";
|
|
2
|
-
import { observe
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
5
5
|
import CorporateMenu from "../../controls/CorporateMenu";
|
|
6
6
|
import { useCorporate } from "../../../../../data/corporate";
|
|
7
|
-
import { useFilingYearListEffect } from "../../../../../data/filing-year";
|
|
8
|
-
import { useOfficerListEffect } from "../../../../../data/officer";
|
|
9
|
-
import { useMemberListEffect } from "../../../../../data/member";
|
|
10
7
|
import { faHourglass, faUserGroup, faUserTie, faEllipsisVertical, } from "@fortawesome/pro-solid-svg-icons";
|
|
11
|
-
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
|
12
8
|
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem";
|
|
13
9
|
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
14
10
|
import { State } from "../../../../../components/CorporateNavMenu/state";
|
|
15
|
-
import
|
|
11
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
16
12
|
import dayjs from "dayjs";
|
|
17
|
-
import "./index.less";
|
|
18
13
|
const CompanyPageHead = (props) => {
|
|
19
14
|
const { id, unitId, showActive } = props;
|
|
20
15
|
const unit = useUnit(unitId);
|
|
@@ -23,42 +18,32 @@ const CompanyPageHead = (props) => {
|
|
|
23
18
|
useEffect(() => {
|
|
24
19
|
state.update(corporate);
|
|
25
20
|
}, [corporate.registers]);
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
React.createElement(Open, { url: `/corporates/unit/${unitId}/registers/MembersRegister` }),
|
|
53
|
-
React.createElement("span", null, state.memberTotals),
|
|
54
|
-
"Members")),
|
|
55
|
-
React.createElement("div", { className: "head-active" },
|
|
56
|
-
React.createElement("div", { className: "active-icon" },
|
|
57
|
-
React.createElement(FAIcon, { icon: faUserTie })),
|
|
58
|
-
React.createElement("div", { className: "head-active-content" },
|
|
59
|
-
React.createElement(Open, { url: `/corporates/unit/${unitId}/registers/OfficersRegister` }),
|
|
60
|
-
React.createElement("span", null, state.officerTotals),
|
|
61
|
-
"Officers")))))));
|
|
21
|
+
return observe(() => (React.createElement(PageHeadDashboard, { avatar: React.createElement(AvatarItem, { id: unitId }), title: React.createElement(React.Fragment, null,
|
|
22
|
+
React.createElement(UnitNameNoteAlert, { id: unit.id, name: unit.name }),
|
|
23
|
+
React.createElement(CorporateMenu, { id: id, unitId: unitId, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })), description: React.createElement(React.Fragment, null,
|
|
24
|
+
"Created on ",
|
|
25
|
+
dayjs(corporate.registrationDate).format("DD MMM YYYY")), active: showActive
|
|
26
|
+
? [
|
|
27
|
+
{
|
|
28
|
+
icon: React.createElement(FAIcon, { icon: faHourglass }),
|
|
29
|
+
figure: corporate.totals.filings.due,
|
|
30
|
+
name: "Due Filings",
|
|
31
|
+
url: `/corporates/unit/${unitId}/filings`,
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
icon: React.createElement(FAIcon, { icon: faUserGroup }),
|
|
35
|
+
figure: corporate.totals.members.active,
|
|
36
|
+
name: "Members",
|
|
37
|
+
url: `/corporates/unit/${unitId}/registers/MembersRegister`,
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
icon: React.createElement(FAIcon, { icon: faUserTie }),
|
|
41
|
+
figure: corporate.totals.officers.active,
|
|
42
|
+
name: "Officers",
|
|
43
|
+
url: `/corporates/unit/${unitId}/registers/OfficersRegister`,
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
: undefined })));
|
|
62
47
|
};
|
|
63
48
|
CompanyPageHead.defaultProps = {
|
|
64
49
|
showActive: true,
|
|
@@ -1 +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,SAAS,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CompanyPageHead/index.tsx"],"names":[],"mappings":"AA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