@voplus/morpho-csp 6.0.113 → 6.0.115
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/modules/corporate/company/components/CompanyPageHead/index.d.ts +11 -4
- package/es/modules/corporate/company/components/CompanyPageHead/index.js +6 -3
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.d.ts +2 -1
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js +70 -26
- package/es/modules/corporate/company/components/SharesCard2/SharesReportChart.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +1 -0
- package/es/modules/corporate/company/pages/CompanyPage/index.js +23 -21
- package/es/modules/corporate/company/pages/CompanyPage/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CompanyPage/index.less +0 -4
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js +34 -20
- package/es/modules/corporate/company/pages/CorporateClientView/Dashboard.js.map +1 -1
- package/es/modules/corporate/company/pages/CorporateClientView/index.js +57 -57
- package/es/modules/corporate/company/pages/CorporateClientView/index.js.map +1 -1
- package/es/modules/corporate/company/pages/CorporateClientView/index.less +13 -16
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js +4 -4
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/index.less +11 -17
- package/package.json +1 -1
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import "./index.less";
|
|
3
|
-
declare const CompanyPageHead:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare const CompanyPageHead: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
unitId: string;
|
|
7
|
+
/** is show active */
|
|
8
|
+
showActive?: boolean;
|
|
9
|
+
}): React.JSX.Element;
|
|
10
|
+
defaultProps: {
|
|
11
|
+
showActive: boolean;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
7
14
|
export default CompanyPageHead;
|
|
@@ -16,7 +16,7 @@ import { runInAction } from "mobx";
|
|
|
16
16
|
import dayjs from "dayjs";
|
|
17
17
|
import "./index.less";
|
|
18
18
|
const CompanyPageHead = (props) => {
|
|
19
|
-
const { id, unitId } = props;
|
|
19
|
+
const { id, unitId, showActive } = props;
|
|
20
20
|
const unit = useUnit(unitId);
|
|
21
21
|
const state = useMemo(() => new State(id), [unitId]);
|
|
22
22
|
const corporate = useCorporate(id, { includes: "registers" });
|
|
@@ -37,7 +37,7 @@ const CompanyPageHead = (props) => {
|
|
|
37
37
|
React.createElement("div", null,
|
|
38
38
|
"Created on ",
|
|
39
39
|
dayjs(corporate.registrationDate).format("DD MMM YYYY")))),
|
|
40
|
-
React.createElement("div", { className: "head-active-list" },
|
|
40
|
+
showActive && (React.createElement("div", { className: "head-active-list" },
|
|
41
41
|
React.createElement("div", { className: "head-active" },
|
|
42
42
|
React.createElement("div", { className: "active-icon" },
|
|
43
43
|
React.createElement(FAIcon, { icon: faHourglass })),
|
|
@@ -58,7 +58,10 @@ const CompanyPageHead = (props) => {
|
|
|
58
58
|
React.createElement("div", { className: "head-active-content" },
|
|
59
59
|
React.createElement(Open, { url: `/corporates/unit/${unitId}/registers/OfficersRegister` }),
|
|
60
60
|
React.createElement("span", null, state.officerTotals),
|
|
61
|
-
"Officers"))))));
|
|
61
|
+
"Officers")))))));
|
|
62
|
+
};
|
|
63
|
+
CompanyPageHead.defaultProps = {
|
|
64
|
+
showActive: true,
|
|
62
65
|
};
|
|
63
66
|
export default CompanyPageHead;
|
|
64
67
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EACN,WAAW,EACX,WAAW,EACX,SAAS,EACT,kBAAkB,GAClB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,MAAM,eAAe,GAAG,CAAC,
|
|
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,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aA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,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;oBACnC,oBAAC,IAAI,IAAC,GAAG,EAAE,oBAAoB,MAAM,UAAU,GAAI;oBACnD,kCAAO,KAAK,CAAC,YAAY,CAAQ;kCAE5B,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;oBACnC,oBAAC,IAAI,IAAC,GAAG,EAAE,oBAAoB,MAAM,4BAA4B,GAAI;oBACrE,kCAAO,KAAK,CAAC,YAAY,CAAQ;8BAE5B,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;oBACnC,oBAAC,IAAI,IAAC,GAAG,EAAE,oBAAoB,MAAM,6BAA6B,GAAI;oBACtE,kCAAO,KAAK,CAAC,aAAa,CAAQ;+BAE7B,CACD,CACD,CACN,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,UAAU,EAAE,IAAI;CAChB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IMember } from "../../../../../data/corporate";
|
|
3
|
+
import "./index.less";
|
|
3
4
|
declare const SharesReportChart: (props: {
|
|
4
5
|
share: IMember[];
|
|
5
|
-
color
|
|
6
|
+
color?: string[];
|
|
6
7
|
}) => React.JSX.Element;
|
|
7
8
|
export default SharesReportChart;
|
|
@@ -1,31 +1,75 @@
|
|
|
1
|
-
import React, { useEffect } from "react";
|
|
2
|
-
import { Chart } from "@antv/g2";
|
|
1
|
+
import React, { useEffect, useRef } from "react";
|
|
3
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { Pie, G2 } from "@antv/g2plot";
|
|
4
|
+
import "./index.less";
|
|
4
5
|
const SharesReportChart = (props) => {
|
|
5
|
-
const { share
|
|
6
|
-
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
6
|
+
const { share } = props;
|
|
7
|
+
const G = G2.getEngine("canvas");
|
|
8
|
+
const divEl = useRef(null);
|
|
9
|
+
useEffect(() => {
|
|
10
|
+
if (divEl.current) {
|
|
11
|
+
const columnPlot = new Pie(divEl.current, {
|
|
12
|
+
width: 180,
|
|
13
|
+
height: 180,
|
|
14
|
+
appendPadding: 10,
|
|
15
|
+
data: share,
|
|
16
|
+
angleField: "shares",
|
|
17
|
+
colorField: "name",
|
|
18
|
+
radius: 0.75,
|
|
19
|
+
legend: false,
|
|
20
|
+
color: props.color,
|
|
21
|
+
label: {
|
|
22
|
+
type: "inner",
|
|
23
|
+
labelHeight: 40,
|
|
24
|
+
formatter: (data, mappingData) => {
|
|
25
|
+
const group = new G.Group({});
|
|
26
|
+
group.addShape({
|
|
27
|
+
type: "circle",
|
|
28
|
+
attrs: {
|
|
29
|
+
x: 0,
|
|
30
|
+
y: 0,
|
|
31
|
+
width: 40,
|
|
32
|
+
height: 50,
|
|
33
|
+
r: 5,
|
|
34
|
+
fill: mappingData.color,
|
|
35
|
+
},
|
|
36
|
+
});
|
|
37
|
+
// group.addShape({
|
|
38
|
+
// type: "text",
|
|
39
|
+
// attrs: {
|
|
40
|
+
// x: 10,
|
|
41
|
+
// y: 8,
|
|
42
|
+
// text: `${data.name}`,
|
|
43
|
+
// fill: mappingData.color,
|
|
44
|
+
// },
|
|
45
|
+
// });
|
|
46
|
+
// group.addShape({
|
|
47
|
+
// type: "text",
|
|
48
|
+
// attrs: {
|
|
49
|
+
// x: 0,
|
|
50
|
+
// y: 25,
|
|
51
|
+
// text: `${data.shares}股 ${data.percentage}%`,
|
|
52
|
+
// fill: "rgba(0, 0, 0, 0.65)",
|
|
53
|
+
// fontWeight: 700,
|
|
54
|
+
// },
|
|
55
|
+
// });
|
|
56
|
+
return group;
|
|
57
|
+
},
|
|
58
|
+
},
|
|
59
|
+
tooltip: {
|
|
60
|
+
// 默认tooltip要显示的字段
|
|
61
|
+
fields: ["name", "percentage", "shares"],
|
|
62
|
+
formatter: (datum) => {
|
|
63
|
+
return { name: datum.name, value: `${datum.shares}股 ${datum.percentage}%` };
|
|
64
|
+
},
|
|
65
|
+
},
|
|
66
|
+
interactions: [{ type: "element-selected" }, { type: "element-active" }],
|
|
67
|
+
});
|
|
68
|
+
columnPlot.render();
|
|
69
|
+
}
|
|
70
|
+
}, []);
|
|
71
|
+
return observe(() => (React.createElement("div", { className: "shares-card-item" },
|
|
72
|
+
React.createElement("div", { ref: divEl }))));
|
|
29
73
|
};
|
|
30
74
|
export default SharesReportChart;
|
|
31
75
|
//# sourceMappingURL=SharesReportChart.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SharesReportChart.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/SharesCard2/SharesReportChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"SharesReportChart.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/SharesCard2/SharesReportChart.tsx"],"names":[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AAW,CAAC,KAAK;6BACvB;yBACD,CAAC,CAAC;wBACH,mBAAmB;wBACnB,iBAAiB;wBACjB,YAAY;wBACZ,WAAW;wBACX,UAAU;wBACV,0BAA0B;wBAC1B,6BAA6B;wBAC7B,MAAM;wBACN,MAAM;wBACN,mBAAmB;wBACnB,iBAAiB;wBACjB,YAAY;wBACZ,UAAU;wBACV,WAAW;wBACX,iDAAiD;wBACjD,iCAAiC;wBACjC,qBAAqB;wBACrB,MAAM;wBACN,MAAM;wBACN,OAAO,KAAK,CAAC;oBACd,CAAC;iBACD;gBACD,OAAO,EAAE;oBACR,kBAAkB;oBAClB,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,EAAE,QAAQ,CAAC;oBACxC,SAAS,EAAE,CAAC,KAAK,EAAE,EAAE;wBACpB,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC,MAAM,KAAK,KAAK,CAAC,UAAU,GAAG,EAAE,CAAC;oBAC7E,CAAC;iBACD;gBACD,YAAY,EAAE,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,CAAC;aACxE,CAAC,CAAC;YACH,UAAU,CAAC,MAAM,EAAE,CAAC;QACrB,CAAC;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,kBAAkB;QAChC,6BAAK,GAAG,EAAE,KAAK,GAAI,CACd,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
|
@@ -8,6 +8,7 @@ import { CurrentContactContext } from "@voplus/morpho-document-core/es/data/cont
|
|
|
8
8
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
9
9
|
import AnnualFilings from "../../../filing-record/components/AnnualFilings";
|
|
10
10
|
import Dashboard from "./Dashboard";
|
|
11
|
+
import { Skeleton } from "antd";
|
|
11
12
|
import CompanyMemberList from "../../member-register/components/CompanyMemberList";
|
|
12
13
|
import DocumentPage from "@voplus/morpho-document/es/pages/DocumentPage";
|
|
13
14
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
@@ -16,7 +17,7 @@ import ControllerList from "../../controller-register/components/ControllerList"
|
|
|
16
17
|
import ShareTransactionList from "../../share-transactions-register/components/ShareTransactionList";
|
|
17
18
|
import ShareClassList from "../../../share-class/components/ShareClassList";
|
|
18
19
|
import VirtualAddressList from "../../../virtual-address/components/VirtualAddressList";
|
|
19
|
-
import NotificationList from "@voplus/morpho-workspace/es/modules/notification/components/
|
|
20
|
+
import NotificationList from "@voplus/morpho-workspace/es/modules/notification/components/AllNewNotificationList";
|
|
20
21
|
import CorporateNavMenu from "../../../../../components/CorporateNavMenu/CorporateNavMenu";
|
|
21
22
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
22
23
|
import CompanySetting from "./CompanySetting";
|
|
@@ -41,26 +42,27 @@ const CompanyPage = (props) => {
|
|
|
41
42
|
return observe(() => {
|
|
42
43
|
var _a;
|
|
43
44
|
return (React.createElement(CurrentContactContext.Provider, { value: { contact: corporate.unit } },
|
|
44
|
-
React.createElement(
|
|
45
|
-
React.createElement(MainContent
|
|
46
|
-
React.createElement(
|
|
47
|
-
React.createElement(
|
|
48
|
-
React.createElement(
|
|
49
|
-
|
|
50
|
-
React.createElement(
|
|
51
|
-
React.createElement(
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
45
|
+
React.createElement(Skeleton, { loading: !corporate.loaded },
|
|
46
|
+
React.createElement(MainContent, { className: "company-page" },
|
|
47
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
48
|
+
React.createElement(NavPanel, null,
|
|
49
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
50
|
+
React.createElement(CorporateNavMenu, { id: corporate.id, url: url, defaultSelectedKeys: ["/dashboard"], showShareClass: ((_a = state.corporate) === null || _a === void 0 ? void 0 : _a.liabilityType) === "LimitedByShares" })))),
|
|
51
|
+
React.createElement("div", { className: "company-page-content" },
|
|
52
|
+
React.createElement(Routes, null,
|
|
53
|
+
React.createElement(Route, { path: "dashboard", element: React.createElement(Dashboard, { corporate: corporate, unitId: params.id, membersRegisterId: state.MemberId, officersRegisterId: state.OfficerId }) }),
|
|
54
|
+
React.createElement(Route, { path: "registers/OfficersRegister", element: state.OfficerId ? (React.createElement(OfficerList, { officersRegisterId: state.OfficerId, corporateId: corporate.id, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
55
|
+
React.createElement(Route, { path: "registers/ShareTransactionsRegister", element: state.shareTransactionId ? (React.createElement(ShareTransactionList, { shareTransactionId: state.shareTransactionId, corporateId: corporate.id, memberId: state.MemberId, headerTitle: "ShareTransactions Register", onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
56
|
+
React.createElement(Route, { path: "registers/MembersRegister", element: state.MemberId ? (React.createElement(CompanyMemberList, { membersRegisterId: state.MemberId, corporateId: corporate.id, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
57
|
+
React.createElement(Route, { path: "registers/ControllerRegister", element: state.ControllerId && loaded ? (React.createElement(ControllerList, { controllerRegisterId: state.ControllerId, corporateId: corporate.id, onReload: onReload, onRedirect: () => layout.history.replace(`${url}/dashboard`) })) : null }),
|
|
58
|
+
React.createElement(Route, { path: "filings", element: React.createElement(AnnualFilings, { id: corporate.id }) }),
|
|
59
|
+
React.createElement(Route, { path: "share-class", element: React.createElement(ShareClassList, { corporateId: corporate.id }) }),
|
|
60
|
+
React.createElement(Route, { path: "documents", element: React.createElement(DocumentPage, { root: corporate.id, route: `${url}/documents`, className: "corporate-documents", tabTitle: `Corporate - ${corporate.name}` || "Corporate" }) }),
|
|
61
|
+
React.createElement(Route, { path: "virtual-address", element: React.createElement(VirtualAddressList, { corporateId: corporate.id }) }),
|
|
62
|
+
React.createElement(Route, { path: "notification", element: React.createElement(NotificationList, { parentId: corporate.id, recipient: corporate.unit }) }),
|
|
63
|
+
React.createElement(Route, { path: "activities", element: React.createElement(ActivityLog, { id: corporate.id, isTitle: true }) }),
|
|
64
|
+
React.createElement(Route, { path: "settings", element: React.createElement(CompanySetting, { id: props.id, liabilityType: corporate.liabilityType }) }),
|
|
65
|
+
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) })))))));
|
|
64
66
|
});
|
|
65
67
|
function onReload() {
|
|
66
68
|
setLoaded(false);
|
|
@@ -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,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,oEAAoE,CAAC;AAC3G,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,aAAa,MAAM,iDAAiD,CAAC;AAC5E,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,YAAY,MAAM,+CAA+C,CAAC;AACzE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AAC,EAAE,EAClB,KAAK,EAAE,GAAG,GAAG,YAAY,EACzB,SAAS,EAAC,qBAAqB,EAC/B,QAAQ,EAAE,eAAe,SAAS,CAAC,IAAI,EAAE,IAAI,WAAW,GACvD,GAEF;4BACF,oBAAC,KAAK,IACL,IAAI,EAAC,iBAAiB,EACtB,OAAO,EAAE,oBAAC,kBAAkB,IAAC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAI,GACzD;4BACF,oBAAC,KAAK,IACL,IAAI,EAAC,cAAc,EACnB,OAAO,EAAE,oBAAC,gBAAgB,IAAC,QAAQ,EAAE,SAAS,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,CAAC,IAAI,GAAI,GAC/E;4BACF,oBAAC,KAAK,IAAC,IAAI,EAAC,YAAY,EAAC,OAAO,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,SAAG,GAAI;4BAC/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;4BACF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACJ,CACqB,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"}
|
|
@@ -1,40 +1,54 @@
|
|
|
1
|
-
import React, { useRef } from "react";
|
|
1
|
+
import React, { useRef, useState, useLayoutEffect } from "react";
|
|
2
2
|
import { Col, Row } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import
|
|
4
|
+
import SharesCard2 from "../../components/SharesCard2";
|
|
5
|
+
import CapitalCard from "../../components/CapitalCard";
|
|
6
|
+
import MemberTableListCard from "../../member-register/components/MemberTableListCard";
|
|
7
|
+
import OfficerTableListCard from "../../officer-register/components/OfficerTableListCard";
|
|
8
|
+
import CompanyPageHead from "../../components/CompanyPageHead";
|
|
5
9
|
import CompanyProperties from "../../components/CompanyProperties/CompanyPropertiesCard";
|
|
6
10
|
import RelatedDocument from "@voplus/morpho-org/es/controls/RelatedDocument";
|
|
7
|
-
import
|
|
11
|
+
import FilingTimeLineCard from "../../../filing-record/components/FilingTimeLineCard";
|
|
8
12
|
import ContactPropertiesCard from "@voplus/morpho-org/es/components/ContactProperties/ContactPropertiesCard";
|
|
9
|
-
import OfficerListCard from "../../officer-register/components/OfficerListCard";
|
|
10
|
-
import FilingRecordTimeLine from "../../../filing-record/components/FilingRecordTimeLine";
|
|
11
13
|
import styles from "./index.less";
|
|
12
14
|
const Dashboard = (props) => {
|
|
13
15
|
const { corporate, membersRegisterId, officersRegisterId } = props;
|
|
14
16
|
const ref = useRef(null);
|
|
17
|
+
const [activitiesHeight, setActivitiesHeight] = useState();
|
|
18
|
+
useLayoutEffect(() => {
|
|
19
|
+
var _a;
|
|
20
|
+
setActivitiesHeight((_a = ref.current) === null || _a === void 0 ? void 0 : _a.offsetHeight);
|
|
21
|
+
});
|
|
15
22
|
return observe(() => {
|
|
16
|
-
var _a, _b, _c, _d;
|
|
23
|
+
var _a, _b, _c, _d, _e;
|
|
17
24
|
return (React.createElement("div", { className: styles["dashboard-content"], ref: ref },
|
|
18
|
-
React.createElement(
|
|
19
|
-
|
|
20
|
-
React.createElement("div", { className: "flex-1 min-w-0" },
|
|
21
|
-
React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, corporate.name))),
|
|
25
|
+
React.createElement(CompanyPageHead, { id: corporate.id, unitId: props.unitId, showActive: false }),
|
|
26
|
+
React.createElement(RelatedDocument, { className: "dashboard-related-document" },
|
|
22
27
|
React.createElement(Row, { gutter: [16, 0] },
|
|
23
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl:
|
|
28
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: 6 },
|
|
24
29
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
25
30
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId })),
|
|
26
|
-
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: ((_a = corporate.latestFilingYear) === null || _a === void 0 ? void 0 : _a.id) ? 12 : 18 },
|
|
32
|
+
React.createElement(Row, { gutter: [16, 0] },
|
|
33
|
+
React.createElement(Col, { xl: 15 },
|
|
34
|
+
React.createElement(SharesCard2, { corporateid: corporate.id, unitId: props.unitId })),
|
|
35
|
+
React.createElement(Col, { xl: 9 },
|
|
36
|
+
React.createElement(CapitalCard, { corporateid: corporate.id, unitId: props.unitId }))),
|
|
37
|
+
officersRegisterId && (React.createElement(OfficerTableListCard, { isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
38
|
+
membersRegisterId && (React.createElement(MemberTableListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id }))),
|
|
39
|
+
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: ((_b = corporate.latestFilingYear) === null || _b === void 0 ? void 0 : _b.id) ? 6 : 0 }, ((_c = corporate.latestFilingYear) === null || _c === void 0 ? void 0 : _c.id) && (React.createElement("div", { style: { height: `${activitiesHeight - 120}px` }, className: "filing-time-line-height" },
|
|
40
|
+
React.createElement(FilingTimeLineCard, { filingYearId: corporate.latestFilingYear.id })))),
|
|
31
41
|
React.createElement(Col, { xs: 24, sm: 24, md: 24, lg: 24, xl: 0 },
|
|
32
42
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
33
43
|
props.unitId && React.createElement(ContactPropertiesCard, { id: props.unitId }),
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
44
|
+
React.createElement(Row, { gutter: [16, 0] },
|
|
45
|
+
React.createElement(Col, { xs: 15, sm: 15, md: 15, lg: 15, xl: 0 },
|
|
46
|
+
React.createElement(SharesCard2, { corporateid: corporate.id, unitId: props.unitId })),
|
|
47
|
+
React.createElement(Col, { xs: 9, sm: 9, md: 9, lg: 9, xl: 0 },
|
|
48
|
+
React.createElement(CapitalCard, { corporateid: corporate.id, unitId: props.unitId }))),
|
|
49
|
+
officersRegisterId && (React.createElement(OfficerTableListCard, { officersRegisterId: officersRegisterId, corporateId: corporate.id })),
|
|
50
|
+
membersRegisterId && (React.createElement(MemberTableListCard, { membersRegisterId: membersRegisterId, corporateId: corporate.id })),
|
|
51
|
+
((_d = corporate.latestFilingYear) === null || _d === void 0 ? void 0 : _d.id) && (React.createElement(FilingTimeLineCard, { filingYearId: (_e = corporate.latestFilingYear) === null || _e === void 0 ? void 0 : _e.id })))))));
|
|
38
52
|
});
|
|
39
53
|
};
|
|
40
54
|
export default Dashboard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CorporateClientView/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CorporateClientView/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,GAA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AC,MAAM,GAAI,CAC3D,CACD;wBACL,kBAAkB,IAAI,CACtB,oBAAC,oBAAoB,IACpB,kBAAkB,EAAE,kBAAkB,EACtC,WAAW,EAAE,SAAS,CAAC,EAAE,GACxB,CACF;wBACA,iBAAiB,IAAI,CACrB,oBAAC,mBAAmB,IACnB,iBAAiB,EAAE,iBAAiB,EACpC,WAAW,EAAE,SAAS,CAAC,EAAE,GACxB,CACF;wBACA,CAAA,MAAA,SAAS,CAAC,gBAAgB,0CAAE,EAAE,KAAI,CAClC,oBAAC,kBAAkB,IAAC,YAAY,EAAE,MAAA,SAAS,CAAC,gBAAgB,0CAAE,EAAE,GAAI,CACpE,CACI,CACD,CACW,CACb,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import React, { useEffect, useState } from "react";
|
|
2
2
|
import { Navigate, Route, Routes, useParams, useResolvedPath } from "react-router-dom";
|
|
3
|
-
import { faTableRows, faScrollOld,
|
|
3
|
+
import { faTableRows, faScrollOld, faBell, faEnvelopesBulk, faClipboardListCheck, faFileInvoiceDollar, } from "@fortawesome/pro-solid-svg-icons";
|
|
4
4
|
import { State } from "./state";
|
|
5
|
-
import { Menu } from "antd";
|
|
5
|
+
import { Menu, Skeleton } from "antd";
|
|
6
6
|
import { observe, useAutorunEffect, NavPanel } from "@voplus/morpho-ui";
|
|
7
7
|
import { useCorporate } from "../../../../../data/corporate";
|
|
8
8
|
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
10
|
import AnnualFilings from "../../../filing-record/components/AnnualFilings";
|
|
11
11
|
import Dashboard from "./Dashboard";
|
|
12
|
-
import CorporateMenu from "../../controls/CorporateMenu";
|
|
13
12
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
14
13
|
import { CurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
|
15
|
-
import NotificationList from "@voplus/morpho-workspace/es/modules/notification/components/
|
|
14
|
+
import NotificationList from "@voplus/morpho-workspace/es/modules/notification/components/AllNewNotificationList";
|
|
16
15
|
import VirtualAddressMailList from "../../../virtual-address-mail/components/VirtualAddressMailList";
|
|
17
16
|
import Scrollbars from "react-custom-scrollbars-2";
|
|
18
17
|
import "./index.less";
|
|
@@ -36,59 +35,60 @@ const CorporateClientView = () => {
|
|
|
36
35
|
useAutorunEffect(() => {
|
|
37
36
|
tab.title = `Corporate - ${corporate.name}` || "Corporate";
|
|
38
37
|
});
|
|
39
|
-
return observe(() =>
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
React.createElement(
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
38
|
+
return observe(() => {
|
|
39
|
+
var _a;
|
|
40
|
+
return (React.createElement(CurrentContactContext.Provider, { value: { contact: corporate.unit } },
|
|
41
|
+
React.createElement(Skeleton, { loading: !corporate.loaded },
|
|
42
|
+
React.createElement(MainContent, { className: "company-page" },
|
|
43
|
+
React.createElement(MainContent.Nav, { collapsible: true },
|
|
44
|
+
React.createElement(NavPanel, null,
|
|
45
|
+
React.createElement(Scrollbars, { autoHide: true },
|
|
46
|
+
React.createElement(Menu, { className: "nav-panel-menu", mode: "inline", defaultSelectedKeys: ["/dashboard"], selectedKeys: [menuKey], items: [
|
|
47
|
+
{
|
|
48
|
+
key: "/dashboard",
|
|
49
|
+
label: "Dashboard",
|
|
50
|
+
className: `${classId}-dashboard`,
|
|
51
|
+
icon: React.createElement(FAIcon, { icon: faTableRows }),
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
key: "/filings",
|
|
55
|
+
label: "Filings",
|
|
56
|
+
className: `${classId}-filings`,
|
|
57
|
+
icon: React.createElement(FAIcon, { icon: faScrollOld }),
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
key: "/mails",
|
|
61
|
+
label: "Mails",
|
|
62
|
+
className: `${classId}-mails`,
|
|
63
|
+
icon: React.createElement(FAIcon, { icon: faEnvelopesBulk }),
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
key: "/work-schedules",
|
|
67
|
+
label: "Work Schedules",
|
|
68
|
+
className: `${classId}-workSchedules`,
|
|
69
|
+
icon: React.createElement(FAIcon, { icon: faClipboardListCheck }),
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
key: "/statement",
|
|
73
|
+
label: "Statement",
|
|
74
|
+
className: `${classId}-statement`,
|
|
75
|
+
icon: React.createElement(FAIcon, { icon: faFileInvoiceDollar }),
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
key: "/notification",
|
|
79
|
+
label: "Notification",
|
|
80
|
+
className: `${classId}-notification`,
|
|
81
|
+
icon: React.createElement(FAIcon, { icon: faBell }),
|
|
82
|
+
},
|
|
83
|
+
], onClick: ({ key }) => onClick(key) })))),
|
|
84
|
+
React.createElement("div", { className: "company-page-content" },
|
|
85
|
+
React.createElement(Routes, null,
|
|
86
|
+
React.createElement(Route, { path: "dashboard", element: React.createElement(Dashboard, { corporate: corporate, unitId: (_a = corporate.unit) === null || _a === void 0 ? void 0 : _a.id, membersRegisterId: state.MemberId, officersRegisterId: state.OfficerId }) }),
|
|
87
|
+
React.createElement(Route, { path: "filings", element: React.createElement(AnnualFilings, { id: corporate.id }) }),
|
|
88
|
+
React.createElement(Route, { path: "notification", element: React.createElement(NotificationList, { parentId: corporate.id }) }),
|
|
89
|
+
React.createElement(Route, { path: "mails", element: React.createElement(VirtualAddressMailList, { corporateId: corporate.id }) }),
|
|
90
|
+
React.createElement(Route, { path: "/", element: React.createElement(Navigate, { to: "dashboard" }) })))))));
|
|
91
|
+
});
|
|
92
92
|
function onClick(key) {
|
|
93
93
|
setMenuKey(key.toString());
|
|
94
94
|
layout.history.push(`${url}${key}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CorporateClientView/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,EACN,WAAW,EACX,WAAW,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/CorporateClientView/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,EACN,WAAW,EACX,WAAW,EAEX,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,mBAAmB,GACnB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,KAAK,EAAE,MA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pF,oBAAC,KAAK,IAAC,IAAI,EAAC,OAAO,EAAC,OAAO,EAAE,oBAAC,sBAAsB,IAAC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAI,GAAI;4BACtF,oBAAC,KAAK,IAAC,IAAI,EAAC,GAAG,EAAC,OAAO,EAAE,oBAAC,QAAQ,IAAC,EAAE,EAAC,WAAW,GAAG,GAAI,CAChD,CACJ,CACO,CACJ,CACqB,CACjC,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,OAAO,CAAC,GAAW;QAC3B,UAAU,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC,CAAC;QAC3B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,GAAG,GAAG,EAAE,CAAC,CAAC;IACrC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -31,30 +31,27 @@
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
.dashboard-content {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: column;
|
|
34
36
|
height: 100%;
|
|
35
37
|
background: #f5f9fc;
|
|
36
38
|
|
|
37
39
|
:global {
|
|
38
|
-
.
|
|
39
|
-
|
|
40
|
-
border-radius: 0;
|
|
41
|
-
margin-top: 10px;
|
|
40
|
+
.dashboard-related-document {
|
|
41
|
+
margin: 0;
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
-
.
|
|
45
|
-
|
|
44
|
+
.document-table-list-card,
|
|
45
|
+
.capital-card,
|
|
46
|
+
.shares-card,
|
|
47
|
+
.subscriptions-schedule-time-line-card {
|
|
48
|
+
margin-bottom: 15px;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
|
-
.
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
border-radius: 0.5rem;
|
|
53
|
-
border: 1px solid rgb(229 231 235);
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.activity-log-view,.activity-log-view3 {
|
|
57
|
-
background: #fff;
|
|
51
|
+
.filing-time-line-height {
|
|
52
|
+
.subscriptions-schedule-time-line-card {
|
|
53
|
+
height: 100%;
|
|
54
|
+
}
|
|
58
55
|
}
|
|
59
56
|
}
|
|
60
57
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
2
2
|
import React, { useState } from "react";
|
|
3
|
+
import { faCheck, faThumbsUp } from "@fortawesome/pro-light-svg-icons";
|
|
4
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
3
5
|
import { useFilingRecoreListEffect } from "../../../../../data/filing-record";
|
|
4
6
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
5
7
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
@@ -46,10 +48,8 @@ const FilingTimeLineCard = (props) => {
|
|
|
46
48
|
React.createElement("div", { className: "time-line-month-title" }, m.name),
|
|
47
49
|
React.createElement(Timeline, { items: m.items.map((item, index) => {
|
|
48
50
|
return {
|
|
49
|
-
className: classnames("time-line-dot",
|
|
50
|
-
|
|
51
|
-
green: item.fileDate,
|
|
52
|
-
}),
|
|
51
|
+
className: classnames("time-line-dot"),
|
|
52
|
+
dot: item.fileDate ? (React.createElement(FAIcon, { icon: faCheck, color: "#fff" })) : (React.createElement(FAIcon, { icon: faThumbsUp, color: "#fff" })),
|
|
53
53
|
children: (React.createElement("div", { className: "time-line-info" },
|
|
54
54
|
React.createElement("div", { className: "time-line-name", onClick: () => onQuickView(item.id) }, item.name),
|
|
55
55
|
React.createElement("div", null, item.dueDate ? (React.createElement(UTCShortDate, { value: item.dueDate, format: "DD MMM" })) : null))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingTimeLineCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,E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E,CAAC,CAAC,IAAI;oCAC5B,6BAAK,SAAS,EAAC,uBAAuB,IAAE,CAAC,CAAC,IAAI,CAAO;oCACrD,oBAAC,QAAQ,IACR,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;4CAClC,OAAO;gDACN,SAAS,EAAE,UAAU,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingTimeLineCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAiB,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACjD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,cAAc,CAAC;AACtB,OAAO,qBAAqB,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wDAAwD,CAAC;AAE/F,MAAM,kBAAkB,GAAG,CAAC,KAA+B,EAAE,EAAE;IAC9D,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAA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AC,CAAC,CACf,oBAAC,YAAY,IAAC,KAAK,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,EAAC,QAAQ,GAAG,CACrD,CAAC,CAAC,CAAC,IAAI,CACH,CACD,CACN;6CACD,CAAC;wCACH,CAAC,CAAC,GACD,CACG,CACN,CAAC;4BACH,CAAC,CAAC,CACA,CACH,CACS,CACN,CACM,CACR,CACD,CACA;QACN,gBAAgB,CAAC,OAAO,IAAI,gBAAgB,CAAC,EAAE,IAAI,CACnD,oBAAC,qBAAqB,IAAC,EAAE,EAAE,gBAAgB,CAAC,EAAG,EAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,WAAW,GAAI,CACzF,CACyB,CAC3B,CAAC,CAAC;IAEH,iBAAiB;IACjB,SAAS,WAAW,CAAC,EAAW;QAC/B,mBAAmB,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC;IACrE,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -30,24 +30,18 @@
|
|
|
30
30
|
}
|
|
31
31
|
.time-line-dot {
|
|
32
32
|
padding-bottom: 16px;
|
|
33
|
-
&.blue {
|
|
34
|
-
.ant-timeline-item-head {
|
|
35
|
-
color: #52c41a;
|
|
36
|
-
border-color: #52c41a;
|
|
37
|
-
background: #52c41a;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
&.green {
|
|
41
|
-
.ant-timeline-item-head {
|
|
42
|
-
color: #21b242;
|
|
43
|
-
border-color: #21b242;
|
|
44
|
-
background: #21b242;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
33
|
.ant-timeline-item-head {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
34
|
+
display: flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
justify-content: center;
|
|
37
|
+
font-size: 10px;
|
|
38
|
+
width: 16px;
|
|
39
|
+
height: 16px;
|
|
40
|
+
border-radius: 50%;
|
|
41
|
+
color: #21b242;
|
|
42
|
+
border-color: #21b242;
|
|
43
|
+
background: #21b242;
|
|
44
|
+
inset-inline-start: 10px;
|
|
51
45
|
}
|
|
52
46
|
}
|
|
53
47
|
.time-line-info {
|