@voplus/morpho-csp 6.0.110 → 6.0.111
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/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 +28 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.js.map +1 -0
- package/es/modules/corporate/company/components/CompanyPageHead/index.less +34 -0
- package/es/modules/corporate/company/pages/CompanyPage/Dashboard.js +14 -32
- 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/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,UAA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
|
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;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,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,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,28 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
+
import { faEllipsisVertical } from "@fortawesome/pro-solid-svg-icons";
|
|
5
|
+
import { useUnit } from "@voplus/morpho-org/es/data";
|
|
6
|
+
import CorporateMenu from "../../controls/CorporateMenu";
|
|
7
|
+
import { useCorporate } from "../../../../../data/corporate";
|
|
8
|
+
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem";
|
|
9
|
+
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
10
|
+
import dayjs from "dayjs";
|
|
11
|
+
import "./index.less";
|
|
12
|
+
const CompanyPageHead = (props) => {
|
|
13
|
+
const { id, unitId } = props;
|
|
14
|
+
const unit = useUnit(unitId);
|
|
15
|
+
const corporate = useCorporate(props.id);
|
|
16
|
+
return observe(() => (React.createElement("div", { className: "company-page-head" },
|
|
17
|
+
React.createElement("div", { className: "company-unit" },
|
|
18
|
+
React.createElement(AvatarItem, { id: unitId }),
|
|
19
|
+
React.createElement("div", { className: "company-unit-info" },
|
|
20
|
+
React.createElement("div", { className: "company-unit-name" },
|
|
21
|
+
React.createElement(UnitNameNoteAlert, { id: unit.id, name: unit.name }),
|
|
22
|
+
React.createElement(CorporateMenu, { id: id, unitId: unitId, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })),
|
|
23
|
+
React.createElement("div", null,
|
|
24
|
+
"Created on ",
|
|
25
|
+
dayjs(corporate.registrationDate).format("DD MMM YYYY")))))));
|
|
26
|
+
};
|
|
27
|
+
export default CompanyPageHead;
|
|
28
|
+
//# 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,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AACrD,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,MAAM,eAAe,GAAG,CAAC,KAAqC,EAAE,EAAE;IACjE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,mBAAmB;QACjC,6BAAK,SAAS,EAAC,cAAc;YAC5B,oBAAC,UAAU,IAAC,EAAE,EAAE,MAAM,GAAI;YAC1B,6BAAK,SAAS,EAAC,mBAAmB;gBACjC,6BAAK,SAAS,EAAC,mBAAmB;oBACjC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,GAAI;oBACnD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,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,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
}
|
|
34
|
+
}
|
|
@@ -1,10 +1,9 @@
|
|
|
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";
|
|
@@ -13,8 +12,7 @@ import OfficerListCard from "../../officer-register/components/OfficerListCard";
|
|
|
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,17 +25,11 @@ 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
34
|
React.createElement(Col, { xs: 0, sm: 0, md: 0, lg: 0, xl: 8 },
|
|
43
35
|
React.createElement(CompanyProperties, { id: corporate.id }),
|
|
@@ -47,10 +39,10 @@ const Dashboard = (props) => {
|
|
|
47
39
|
officersRegisterId && (React.createElement(OfficerListCard, { isFilterPresent: true, officersRegisterId: officersRegisterId, corporateId: corporate.id, style: { height: "400px" } })),
|
|
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 }),
|
|
@@ -58,20 +50,10 @@ const Dashboard = (props) => {
|
|
|
58
50
|
officersRegisterId && (React.createElement(OfficerListCard, { officersRegisterId: officersRegisterId, corporateId: corporate.id, style: { height: "400px" } })),
|
|
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,OAA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wBACxC,CAAA,MAAA,SAAS,CAAC,gBAAgB,0CAAE,EAAE,KAAI,CAClC,oBAAC,oBAAoB,IACpB,YAAY,EAAE,MAAA,SAAS,CAAC,gBAAgB,0CAAE,EAAE,EAC5C,KAAK,EAAC,8BAA8B,GACnC,CACF;wBACD,6BAAK,KAAK,EAAE,EAAE,MAAM,EAAE,GAAG,gBAAiB,GAAG,GAAG,IAAI,EAAE;4BACrD,oBAAC,eAAe,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,GAAI,CAChC,CACD,CACD,CACW,CACb,CACN,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,cAAc;QACtB,UAAU,CAAC,CAAC,OAAO,CAAC,CAAC;IACtB,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,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,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,WAAW,MAAM,+CAA+C,CAAC;AACxE,OAAO,cAAc,MAAM,qDAAqD,CAAC;AACjF,OAAO,oBAAoB,MAAM,mEAAmE,CAAC;AACrG,OAAO,cAAc,MAAM,gDAAgD,CAAC;AAC5E,OAAO,kBAAkB,MAAM,wDAAwD,CA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GACvD,GAEF;wBACF,oBAAC,KAAK,IACL,IAAI,EAAC,iBAAiB,EACtB,OAAO,EAAE,oBAAC,kBAAkB,IAAC,WAAW,EAAE,SAAS,CAAC,EAAE,GAAI,GACzD;wBACF,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;wBACF,oBAAC,KAAK,IAAC,IAAI,EAAC,YAAY,EAAC,OAAO,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,SAAS,CAAC,EAAE,EAAE,OAAO,SAAG,GAAI;wBAC/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
|
}
|