@voplus/morpho-csp 10.0.9 → 10.0.10
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/CorporateUnitSelectDialog/index.d.ts +1 -1
- package/es/components/CorporateUnitSelectDialog/index.js +4 -12
- package/es/components/CorporateUnitSelectDialog/index.js.map +1 -1
- package/es/components/CorporateUnitSelectDialog/state.d.ts +2 -2
- package/es/components/CorporateUnitSelectDialog/state.js +6 -9
- package/es/components/CorporateUnitSelectDialog/state.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js +3 -1
- package/es/modules/corporate/background-investigation/risk-profile/controls/RiskProfileLevelLabel/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateList/index.js +1 -1
- package/es/modules/corporate/company/components/CorporateList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.d.ts +1 -13
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js +39 -94
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCell.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js +63 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.css +122 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.d.ts +1 -0
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js +95 -66
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js +13 -23
- package/es/modules/corporate/company/controller-register/controls/ControllerStatusLabel/ControllerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.css +22 -0
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.d.ts +1 -0
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js +8 -1
- package/es/modules/corporate/company/controls/CorporateStatusLabel/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.d.ts +3 -2
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js +9 -63
- package/es/modules/corporate/company/member-register/components/MemberTableList/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/{MemberTableList → MemberTableListCard}/TableCellDetail.d.ts +1 -13
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js +77 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js +52 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.d.ts +16 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js +133 -17
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js +12 -15
- package/es/modules/corporate/company/member-register/controls/MemberStatusLabel/MemberStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.d.ts +3 -2
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js +11 -74
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/{OfficerTableList → OfficerTableListCard}/TableCellDetail.d.ts +1 -13
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js +87 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellDetail.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.d.ts +13 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js +65 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/TableCellSimple.js.map +1 -0
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.d.ts +24 -3
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js +140 -22
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.d.ts +2 -0
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js +37 -20
- package/es/modules/corporate/company/officer-register/controls/OfficerStatusLabel/OfficerStatusLabel2.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.css +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionItems/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionProperties/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js +2 -5
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionTabs/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.css +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearListCard/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js +7 -29
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailItem/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailList/index.js.map +1 -1
- package/es/page/RegisterTablePage/Controller.d.ts +3 -0
- package/es/page/RegisterTablePage/Controller.js +134 -0
- package/es/page/RegisterTablePage/Controller.js.map +1 -0
- package/es/page/RegisterTablePage/index.d.ts +3 -0
- package/es/page/RegisterTablePage/index.js +63 -0
- package/es/page/RegisterTablePage/index.js.map +1 -0
- package/package.json +1 -2
- package/es/components/RegisterTable/index.d.ts +0 -31
- package/es/components/RegisterTable/index.js +0 -55
- package/es/components/RegisterTable/index.js.map +0 -1
- package/es/components/StatusLabel/index.d.ts +0 -36
- package/es/components/StatusLabel/index.js +0 -16
- package/es/components/StatusLabel/index.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js +0 -125
- package/es/modules/corporate/company/member-register/components/MemberTableList/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.d.ts +0 -21
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js +0 -86
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/MemberRegisterContainer.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js +0 -140
- package/es/modules/corporate/company/officer-register/components/OfficerTableList/TableCellDetail.js.map +0 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.d.ts +0 -23
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js +0 -87
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.js.map +0 -1
- package/es/modules/corporate/company/pages/RegisterTablePage/index.d.ts +0 -10
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js +0 -151
- package/es/modules/corporate/company/pages/RegisterTablePage/index.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.d.ts +0 -10
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js +0 -52
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.d.ts +0 -7
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js +0 -94
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.d.ts +0 -22
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js +0 -92
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js +0 -9
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.d.ts +0 -5
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js +0 -52
- package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/index.js.map +0 -1
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
2
|
-
import { Modal } from "antd";
|
|
3
|
-
import { useApplicationContext, useDeepMemo } from "@voplus/morpho-data";
|
|
4
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
5
|
-
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
|
-
import { useAutoUpdateListData } from "@voplus/morpho-document-core";
|
|
7
|
-
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
|
8
|
-
import { useCorporate } from "../../../../../../data/corporate";
|
|
9
|
-
import { useOfficerListEffect, useOfficerStore } from "../../../../../../data/officer";
|
|
10
|
-
import OfficerQuickViewDialog from "../OfficerQuickView";
|
|
11
|
-
import SelectOfficerForm from "../SelectOfficerForm";
|
|
12
|
-
import { State } from "./state";
|
|
13
|
-
const OfficerRegisterContainer = (props) => {
|
|
14
|
-
const { officersRegisterId, corporateId, isFilterPresent, onDelete, children } = props;
|
|
15
|
-
const { user } = useApplicationContext();
|
|
16
|
-
const officerStore = useOfficerStore();
|
|
17
|
-
const corporate = useCorporate(corporateId, { reload: (i) => !i.p, includes: "permissions" });
|
|
18
|
-
const [visible, setVisible] = useState(false);
|
|
19
|
-
const [totalCount, setTotalCount] = useState(0);
|
|
20
|
-
const state = useDeepMemo(() => new State(), [officersRegisterId]);
|
|
21
|
-
function filters() {
|
|
22
|
-
const filter = [
|
|
23
|
-
{ c: "ParentNodeId", o: "=", l: "And", v1: officersRegisterId },
|
|
24
|
-
];
|
|
25
|
-
if (isFilterPresent) {
|
|
26
|
-
filter.push({ c: "Present", o: "=", l: "And", v1: "Yes" });
|
|
27
|
-
}
|
|
28
|
-
return filter;
|
|
29
|
-
}
|
|
30
|
-
const list = useCreateListDataState({
|
|
31
|
-
filterDefaults: {
|
|
32
|
-
filters: filters(),
|
|
33
|
-
includes: "tags,permissions",
|
|
34
|
-
},
|
|
35
|
-
}, [officersRegisterId]);
|
|
36
|
-
useAutoUpdateListData(list, (d) => d.parentId === officersRegisterId);
|
|
37
|
-
useRenderOnChange(() => list.filters.options);
|
|
38
|
-
useOfficerListEffect(list, (result, total) => {
|
|
39
|
-
list.union(result);
|
|
40
|
-
setTotalCount(total !== null && total !== void 0 ? total : 0);
|
|
41
|
-
}, {
|
|
42
|
-
Total: true,
|
|
43
|
-
...list.filters.options,
|
|
44
|
-
});
|
|
45
|
-
async function onSave(unit) {
|
|
46
|
-
/** SelectLegalContactDialog 选择/新增有identity信息的unit */
|
|
47
|
-
if (unit) {
|
|
48
|
-
const res = await officerStore.create({
|
|
49
|
-
data: { RegisterId: officersRegisterId, UnitId: unit[0].id, Position: state.position },
|
|
50
|
-
error: "message",
|
|
51
|
-
});
|
|
52
|
-
list.union([res]);
|
|
53
|
-
}
|
|
54
|
-
state.addAble = false;
|
|
55
|
-
}
|
|
56
|
-
const handleDelete = () => {
|
|
57
|
-
Modal.confirm({
|
|
58
|
-
title: "Confirm Delete",
|
|
59
|
-
content: "Are you sure you want to delete this register?",
|
|
60
|
-
okText: "Delete",
|
|
61
|
-
cancelText: "Cancel",
|
|
62
|
-
onOk: () => onDelete === null || onDelete === void 0 ? void 0 : onDelete(corporateId, officersRegisterId),
|
|
63
|
-
});
|
|
64
|
-
};
|
|
65
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
66
|
-
React.createElement(ListDataContext.Provider, { value: list }, children({
|
|
67
|
-
list,
|
|
68
|
-
state,
|
|
69
|
-
dataSource: list.data.map((e, i) => {
|
|
70
|
-
return { key: i, ...e };
|
|
71
|
-
}),
|
|
72
|
-
totalCount,
|
|
73
|
-
setVisible,
|
|
74
|
-
handleDelete,
|
|
75
|
-
corporate,
|
|
76
|
-
user,
|
|
77
|
-
})),
|
|
78
|
-
state.addAble && (React.createElement(UnitsSelectDialog, { type: "click", multiSelect: false, onSelect: onSave, onCancel: () => {
|
|
79
|
-
state.addAble = false;
|
|
80
|
-
} })),
|
|
81
|
-
visible && (React.createElement(SelectOfficerForm, { parentId: officersRegisterId, onCancel: () => setVisible(false) })),
|
|
82
|
-
state.visibleQuickView && (React.createElement(OfficerQuickViewDialog, { id: state.quickId, visible: true, onCancel: () => {
|
|
83
|
-
state.visibleQuickView = false;
|
|
84
|
-
} })))));
|
|
85
|
-
};
|
|
86
|
-
export default OfficerRegisterContainer;
|
|
87
|
-
//# sourceMappingURL=OfficerRegisterContainer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"OfficerRegisterContainer.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerTableListCard/OfficerRegisterContainer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,WAAW,EAAgB,MAAM,qBAAqB,CAAC;AACvF,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAY,oBAAoB,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjG,OAAO,sBAAsB,MAAM,qBAAqB,CAAC;AACzD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAsBhC,MAAM,wBAAwB,GAAG,CAAC,KAAoC,EAAE,EAAE;IACzE,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,eAAe,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IACvF,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,MAAM,SAAS,GAAG,YAAY,CAAC,WAAW,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,E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,IAAI;SACJ,CAAC,CACwB;QAC1B,KAAK,CAAC,OAAO,IAAI,CACjB,oBAAC,iBAAiB,IACjB,IAAI,EAAC,OAAO,EACZ,WAAW,EAAE,KAAK,EAClB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,GAAG,EAAE;gBACd,KAAK,CAAC,OAAO,GAAG,KAAK,CAAC;YACvB,CAAC,GACA,CACF;QACA,OAAO,IAAI,CACX,oBAAC,iBAAiB,IAAC,QAAQ,EAAE,kBAAkB,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CACtF;QACA,KAAK,CAAC,gBAAgB,IAAI,CAC1B,oBAAC,sBAAsB,IACtB,EAAE,EAAE,KAAK,CAAC,OAAO,EACjB,OAAO,EAAE,IAAI,EACb,QAAQ,EAAE,GAAG,EAAE;gBACd,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC;YAChC,CAAC,GACA,CACF,CACC,CACH,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
declare const RegisterTablePage: (props: {
|
|
3
|
-
corporateId: string;
|
|
4
|
-
controllerRegisterId?: string;
|
|
5
|
-
membersRegisterId?: string;
|
|
6
|
-
officersRegisterId?: string;
|
|
7
|
-
shareTransactionId?: string;
|
|
8
|
-
url: string;
|
|
9
|
-
}) => React.JSX.Element;
|
|
10
|
-
export default RegisterTablePage;
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { Tabs, Menu, message } from "antd";
|
|
3
|
-
import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
|
|
4
|
-
import { faShieldHalvedSolid, faUsersSolid, faComputerMouseSolid, faCoinsSolid, } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
6
|
-
import { useParams } from "react-router-dom";
|
|
7
|
-
import { FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
8
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
9
|
-
import MemberTableList from "../../member-register/components/MemberTableList";
|
|
10
|
-
import ControllerTableList from "../../controller-register/components/ControllerTableList";
|
|
11
|
-
import OfficerTableList from "../../officer-register/components/OfficerTableList";
|
|
12
|
-
import AddDropDown from "@voplus/morpho-ui/es/components/layout/ListView/controls/AddDropDown2";
|
|
13
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
14
|
-
import { State } from "../../../../../components/CorporateNavMenu/state";
|
|
15
|
-
import { ConfigProvider } from "antd";
|
|
16
|
-
import antdTheme from "@voplus/morpho-theme/antdTheme";
|
|
17
|
-
import { observe } from "@voplus/morpho-ui";
|
|
18
|
-
const RegisterTablePage = (props) => {
|
|
19
|
-
const { corporateId, controllerRegisterId, membersRegisterId, officersRegisterId, shareTransactionId, url, } = props;
|
|
20
|
-
const layout = useLayout();
|
|
21
|
-
const params = useParams();
|
|
22
|
-
const store = useCorporateStore();
|
|
23
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
24
|
-
const [loaded, setLoaded] = useState(true);
|
|
25
|
-
const [activeKey, setActiveKey] = useState("");
|
|
26
|
-
const [state] = useState(new State(corporateId));
|
|
27
|
-
const corporate = useCorporate(corporateId, { includes: "registers" });
|
|
28
|
-
const pStatus = params.status
|
|
29
|
-
? params.status
|
|
30
|
-
: controllerRegisterId
|
|
31
|
-
? "controller"
|
|
32
|
-
: membersRegisterId
|
|
33
|
-
? "members"
|
|
34
|
-
: officersRegisterId
|
|
35
|
-
? "officers"
|
|
36
|
-
: shareTransactionId
|
|
37
|
-
? "shareTransactions"
|
|
38
|
-
: "";
|
|
39
|
-
useEffect(() => {
|
|
40
|
-
setActiveKey(pStatus);
|
|
41
|
-
}, [pStatus]);
|
|
42
|
-
useEffect(() => {
|
|
43
|
-
state.update(corporate);
|
|
44
|
-
}, [corporate.registers]);
|
|
45
|
-
// 顶部卡片数据
|
|
46
|
-
const statCards = [
|
|
47
|
-
{
|
|
48
|
-
title: "TOTAL REGISTERS",
|
|
49
|
-
value: "24",
|
|
50
|
-
icon: React.createElement(FAIcon, { icon: faUsersSolid, className: "text-font-secondary text-2xl" }),
|
|
51
|
-
borderColor: "border-font-secondary",
|
|
52
|
-
textColor: "text-font-secondary",
|
|
53
|
-
bgIcon: "bg-bg-blue-data",
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
title: "VERIFICATION RATES",
|
|
57
|
-
value: "92%",
|
|
58
|
-
icon: React.createElement(FAIcon, { icon: faShieldHalvedSolid, className: "text-green-data text-2xl" }),
|
|
59
|
-
borderColor: "border-green-data",
|
|
60
|
-
textColor: "text-green-data",
|
|
61
|
-
bgIcon: "bg-bg-green-data",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
title: "PENDING ACTIONS",
|
|
65
|
-
value: "03",
|
|
66
|
-
icon: React.createElement(FAIcon, { icon: faComputerMouseSolid, className: "text-brown-data text-2xl" }),
|
|
67
|
-
borderColor: "border-brown-data",
|
|
68
|
-
textColor: "text-brown-data",
|
|
69
|
-
bgIcon: "bg-bg-brown-data",
|
|
70
|
-
},
|
|
71
|
-
];
|
|
72
|
-
return observe(() => {
|
|
73
|
-
var _a;
|
|
74
|
-
return (React.createElement(ConfigProvider, { theme: antdTheme },
|
|
75
|
-
React.createElement(AsideContent, { context: asideContext },
|
|
76
|
-
React.createElement("div", { className: "flex flex-col h-full" },
|
|
77
|
-
React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCoinsSolid }), title: "Corporate Stakeholder Registry", description: "Effortlessly Manage and Track Controller, Officers, and Company Members" }),
|
|
78
|
-
React.createElement("div", { className: "p-6 bg-bg-blue h-full overflow-hidden font-sans flex flex-col gap-6" },
|
|
79
|
-
React.createElement("div", { className: "grid grid-cols-1 md:grid-cols-3 gap-6 shrink-0" }, statCards.map((card, idx) => (React.createElement("div", { key: idx, className: `bg-white rounded-lg p-5 shadow-sm border-l-8 ${card.borderColor} flex items-center gap-5.5` },
|
|
80
|
-
React.createElement("div", { className: `w-14 h-14 flex items-center justify-center rounded-lg ${card.bgIcon}` }, card.icon),
|
|
81
|
-
React.createElement("div", null,
|
|
82
|
-
React.createElement("div", { className: "text-font-primary text-sm font-semibold mb-1 uppercase" }, card.title),
|
|
83
|
-
React.createElement("div", { className: `${card.textColor} text-2xl font-bold` }, card.value)))))),
|
|
84
|
-
React.createElement("div", { className: "flex-1 bg-white rounded-lg shadow-sm border border-border overflow-hidden" },
|
|
85
|
-
React.createElement(Tabs, { activeKey: activeKey, onChange: onChange, className: "w-full h-full -mb-px [&_.ant-tabs-nav]:bg-bg-table! [&_.ant-tabs-nav]:m-0! [&_.ant-tabs-tab]:px-3! [&_.ant-tabs-tab]:m-0! [&_.ant-tabs-tab-active_.ant-tabs-tab-btn]:text-font-secondary! [&_.ant-tabs-ink-bar]:bg-font-secondary! [&_.ant-tabs-tab]:text-font-primary! [&_.ant-tabs-tab:hover]:text-font-secondary!", items: [
|
|
86
|
-
...(controllerRegisterId
|
|
87
|
-
? [
|
|
88
|
-
{
|
|
89
|
-
key: "controller",
|
|
90
|
-
label: (React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Controller")),
|
|
91
|
-
children: loaded ? (React.createElement(ControllerTableList, { controllerRegisterId: controllerRegisterId, corporateId: corporateId, onReload: onReload, onDelete: () => onDeleteRegister(corporateId, controllerRegisterId) })) : null,
|
|
92
|
-
},
|
|
93
|
-
]
|
|
94
|
-
: []),
|
|
95
|
-
...(membersRegisterId
|
|
96
|
-
? [
|
|
97
|
-
{
|
|
98
|
-
key: "members",
|
|
99
|
-
label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Members"),
|
|
100
|
-
children: (React.createElement(MemberTableList, { membersRegisterId: membersRegisterId, corporateId: corporateId, onDelete: () => onDeleteRegister(corporateId, membersRegisterId) })),
|
|
101
|
-
},
|
|
102
|
-
]
|
|
103
|
-
: []),
|
|
104
|
-
...(officersRegisterId
|
|
105
|
-
? [
|
|
106
|
-
{
|
|
107
|
-
key: "officers",
|
|
108
|
-
label: React.createElement("div", { className: "font-semibold text-sm py-1.5 px-8" }, "Officers"),
|
|
109
|
-
children: (React.createElement(OfficerTableList, { officersRegisterId: officersRegisterId, corporateId: corporateId, onDelete: () => onDeleteRegister(corporateId, officersRegisterId) })),
|
|
110
|
-
},
|
|
111
|
-
]
|
|
112
|
-
: []),
|
|
113
|
-
], tabBarExtraContent: React.createElement("div", { className: "pr-7" },
|
|
114
|
-
React.createElement(AddDropDown, { trigger: ["click"], btnType: React.createElement("button", { type: "button", className: "underline-button uppercase" }, "ADD REGISTER"), overlay: React.createElement(Menu, { onClick: (e) => onAddRegister(e.key), items: (_a = state.addRegister) === null || _a === void 0 ? void 0 : _a.map((r, i) => {
|
|
115
|
-
return {
|
|
116
|
-
key: r.name,
|
|
117
|
-
label: React.createElement(React.Fragment, null,
|
|
118
|
-
"Register of ",
|
|
119
|
-
r.label),
|
|
120
|
-
disabled: r.name !== "OfficersRegister" &&
|
|
121
|
-
r.name !== "ShareTransactionsRegister" &&
|
|
122
|
-
r.name !== "MembersRegister" &&
|
|
123
|
-
r.name !== "ControllerRegister"
|
|
124
|
-
? true
|
|
125
|
-
: false,
|
|
126
|
-
};
|
|
127
|
-
}) }) })) })))))));
|
|
128
|
-
});
|
|
129
|
-
function onReload() {
|
|
130
|
-
setLoaded(false);
|
|
131
|
-
setTimeout(() => {
|
|
132
|
-
setLoaded(true);
|
|
133
|
-
}, 100);
|
|
134
|
-
}
|
|
135
|
-
function onChange(key) {
|
|
136
|
-
layout.history.push(`${url}/registers/${key}`);
|
|
137
|
-
}
|
|
138
|
-
async function onAddRegister(name) {
|
|
139
|
-
const data = await store.register(corporateId, name, {
|
|
140
|
-
error: (error) => message.error(error.message),
|
|
141
|
-
});
|
|
142
|
-
state.update(data);
|
|
143
|
-
}
|
|
144
|
-
async function onDeleteRegister(corporateId, registerId) {
|
|
145
|
-
await store.registersDelete(corporateId, registerId, {
|
|
146
|
-
error: (error) => message.error(error.message),
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
export default RegisterTablePage;
|
|
151
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/pages/RegisterTablePage/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAChF,OAAO,EACN,mBAAmB,EACnB,YAAY,EACZ,oBAAoB,EACpB,YAAY,GACZ,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,eAAe,MAAM,kDAAkD,CAAC;AAC/E,OAAO,mBAAmB,MAAM,0DAA0D,CAAC;AAC3F,OAAO,gBAAgB,MAAM,oDAAoD,CAAC;AAClF,OAAO,WAAW,MAAM,uEAAuE,CAAC;AAChG,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,KAAK,EAAE,MAAM,kDAAkD,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,E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,CAAC,GACD,GAEF,CACG,GAEN,CACG,CACD,CACD,CACQ,CACC,CACjB,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;IAED,SAAS,QAAQ,CAAC,GAAW;QAC5B,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,GAAG,cAAc,GAAG,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,KAAK,UAAU,aAAa,CAAC,IAAY;QACxC,MAAM,IAAI,GAAG,MAAM,KAAK,CAAC,QAAQ,CAAC,WAAW,EAAE,IAAI,EAAE;YACpD,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,KAAK,UAAU,gBAAgB,CAAC,WAAmB,EAAE,UAAkB;QACtE,MAAM,KAAK,CAAC,eAAe,CAAC,WAAW,EAAE,UAAU,EAAE;YACpD,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC;SACrD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { faChevronDownRegular, faChevronUpRegular, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
3
|
-
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
4
|
-
import { useFilingYear } from "../../../../../../data/filing-year";
|
|
5
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
6
|
-
import FilingsTable from "../FilingsTable";
|
|
7
|
-
import NewFilingRecordForm from "../../../components/NewFilingRecordForm";
|
|
8
|
-
/* ---- 单个年份节点 ---- */
|
|
9
|
-
const YearNode = (props) => {
|
|
10
|
-
const { id, isFirst, isLast, isExpanded, isActive, onToggle } = props;
|
|
11
|
-
const filingYear = useFilingYear(id);
|
|
12
|
-
const asideContext = useAsideContentContext();
|
|
13
|
-
return observe(() => {
|
|
14
|
-
var _a;
|
|
15
|
-
const cnt = ((_a = filingYear.filings) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
16
|
-
const borderClasses = isFirst && isLast
|
|
17
|
-
? "rounded-lg"
|
|
18
|
-
: isFirst
|
|
19
|
-
? "rounded-lg rounded-b-none"
|
|
20
|
-
: isLast
|
|
21
|
-
? "border-t-0 rounded-lg rounded-t-none"
|
|
22
|
-
: "border-t-0 rounded-none";
|
|
23
|
-
const lineColor = isActive ? "border-font-secondary/45" : "border-font-grey/45";
|
|
24
|
-
const dotBg = isActive ? "bg-font-secondary" : "bg-font-grey";
|
|
25
|
-
const textColor = isExpanded ? "text-font-secondary" : "text-font-primary";
|
|
26
|
-
const headerBg = isExpanded ? "bg-blue-profile" : "";
|
|
27
|
-
return (React.createElement("div", { className: "relative pl-[45px]" },
|
|
28
|
-
isLast && (React.createElement("div", { className: "absolute left-[15px] top-[26px] bottom-[-1000px] w-1 bg-white z-1" })),
|
|
29
|
-
React.createElement("div", { className: `absolute left-[9px] top-5 w-4 h-4 rounded-full border-3 ${lineColor} z-10` },
|
|
30
|
-
React.createElement("div", { className: `${dotBg} w-full h-full rounded-full` })),
|
|
31
|
-
React.createElement("div", { className: `bg-bg-table border border-border shadow-sm overflow-hidden ${borderClasses}` },
|
|
32
|
-
React.createElement("div", { className: `px-6 py-4 flex justify-between items-center cursor-pointer hover:bg-blue-profile transition-colors ${headerBg} ${isExpanded ? "border-b border-border" : ""}`, onClick: onToggle },
|
|
33
|
-
React.createElement("div", { className: "flex items-center" },
|
|
34
|
-
React.createElement(FAIcon, { icon: isExpanded ? faChevronUpRegular : faChevronDownRegular, className: `mr-3 text-xs ${textColor}` }),
|
|
35
|
-
React.createElement("span", { className: `${textColor} font-bold text-sm mr-3` },
|
|
36
|
-
React.createElement(UTCShortDate, { value: filingYear.fYE, format: "YYYY MMM DD" })),
|
|
37
|
-
React.createElement("span", { className: "text-font-disabled text-sm" },
|
|
38
|
-
isExpanded ? "Open" : "Closed",
|
|
39
|
-
" :",
|
|
40
|
-
cnt,
|
|
41
|
-
" Records")),
|
|
42
|
-
React.createElement("button", { className: "underline-button", onClick: (e) => {
|
|
43
|
-
e.stopPropagation();
|
|
44
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewFilingRecordForm, { filingYearId: id, showView: true }), {
|
|
45
|
-
span: 12,
|
|
46
|
-
});
|
|
47
|
-
} }, "ADD RECORD")),
|
|
48
|
-
isExpanded && React.createElement(FilingsTable, { filingYearId: id }))));
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
export default YearNode;
|
|
52
|
-
//# sourceMappingURL=YearNode.js.map
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"YearNode.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/YearNode.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE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A6B,GAAQ,CACxD;YAEN,6BACC,SAAS,EAAE,8DAA8D,aAAa,EAAE;gBAExF,6BACC,SAAS,EAAE,sGAAsG,QAAQ,IACxH,UAAU,CAAC,CAAC,CAAC,wBAAwB,CAAC,CAAC,CAAC,EACzC,EAAE,EACF,OAAO,EAAE,QAAQ;oBAEjB,6BAAK,SAAS,EAAC,mBAAmB;wBACjC,oBAAC,MAAM,IACN,IAAI,EAAE,UAAU,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,oBAAoB,EAC5D,SAAS,EAAE,gBAAgB,SAAS,EAAE,GACrC;wBACF,8BAAM,SAAS,EAAE,GAAG,SAAS,yBAAyB;4BACrD,oBAAC,YAAY,IAAC,KAAK,EAAE,UAAU,CAAC,GAAG,EAAE,MAAM,EAAC,aAAa,GAAG,CACtD;wBACP,8BAAM,SAAS,EAAC,4BAA4B;4BAC1C,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,QAAQ;;4BAAI,GAAG;uCAChC,CACF;oBACN,gCACC,SAAS,EAAC,kBAAkB,EAC5B,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE;4BACd,CAAC,CAAC,eAAe,EAAE,CAAC;4BACpB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,mBAAmB,IAAC,YAAY,EAAE,EAAE,EAAE,QAAQ,SAAG,EAAE;gCAC3E,IAAI,EAAE,EAAE;6BACR,CAAC,CAAC;wBACJ,CAAC,iBAGO,CACJ;gBAEL,UAAU,IAAI,oBAAC,YAAY,IAAC,YAAY,EAAE,EAAE,GAAI,CAC5C,CACD,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import React, { useState, useEffect } from "react";
|
|
2
|
-
import { toJS } from "mobx";
|
|
3
|
-
import { faScrollOldSolid, FontAwesomeIcon as FAIcon } from "@voplus/morpho-ui/es/faIcons";
|
|
4
|
-
import NewFilingYearDialog from "../NewFilingYearDialog";
|
|
5
|
-
import FilingYearQuickViewDialog from "../FilingYearQuickViewDialog";
|
|
6
|
-
import { ConfigProvider } from "antd";
|
|
7
|
-
import antdTheme from "@voplus/morpho-theme/antdTheme";
|
|
8
|
-
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
9
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
10
|
-
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
|
11
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
|
-
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
13
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
14
|
-
import FilingYearPropertiesView from "../FilingYearPropertiesView";
|
|
15
|
-
import { useFilingYearListEffect } from "../../../../../../data/filing-year";
|
|
16
|
-
import { useAutoUpdateListData } from "../../../../../../data/filing-year/filing-year-events";
|
|
17
|
-
import YearNode from "./YearNode";
|
|
18
|
-
const FilingYearTimeline = (props) => {
|
|
19
|
-
const { corporateId, className = "" } = props;
|
|
20
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
21
|
-
const [visible, setVisible] = useState(false);
|
|
22
|
-
const [quickView, setQuickView] = useState({
|
|
23
|
-
show: false,
|
|
24
|
-
id: "",
|
|
25
|
-
});
|
|
26
|
-
// spec:1541 — CSP: Filing years filtered by parent corporate node
|
|
27
|
-
const list = useCreateListDataState({ filterDefaults: { filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }] } }, [corporateId]);
|
|
28
|
-
useAutoUpdateListData(list, () => true);
|
|
29
|
-
useRenderOnChange(() => list.filters.options);
|
|
30
|
-
useFilingYearListEffect(list, (result) => list.union(result), list.filters.options);
|
|
31
|
-
return observe(() => {
|
|
32
|
-
var _a, _b, _c, _d;
|
|
33
|
-
const raw = toJS(list.data);
|
|
34
|
-
// 按 fYE 降序排列
|
|
35
|
-
const sorted = [...raw].sort((a, b) => new Date(b.fYE).getTime() - new Date(a.fYE).getTime());
|
|
36
|
-
// 按年份分组:{ "2025": [...], "2024": [...] }
|
|
37
|
-
const groups = {};
|
|
38
|
-
sorted.forEach((y) => {
|
|
39
|
-
const year = new Date(y.fYE).getFullYear().toString();
|
|
40
|
-
if (!groups[year])
|
|
41
|
-
groups[year] = [];
|
|
42
|
-
groups[year].push(y);
|
|
43
|
-
});
|
|
44
|
-
const groupEntries = Object.entries(groups).sort((a, b) => new Date(b[0]).getTime() - new Date(a[0]).getTime());
|
|
45
|
-
// 第一个分组视为 CURRENT,其余 ACHIEVED
|
|
46
|
-
const currentYearKey = ((_a = groupEntries[0]) === null || _a === void 0 ? void 0 : _a[0]) || "";
|
|
47
|
-
const firstId = ((_d = (_c = (_b = groupEntries[0]) === null || _b === void 0 ? void 0 : _b[1]) === null || _c === void 0 ? void 0 : _c[0]) === null || _d === void 0 ? void 0 : _d.id) || null;
|
|
48
|
-
// 手风琴:同一时间只有一个展开;默认展开 CURRENT 组的第一个
|
|
49
|
-
// spec:1542 — CSP: First filing year auto-expanded, rest collapsed
|
|
50
|
-
const [expandedId, setExpandedId] = useState(null);
|
|
51
|
-
const [hasAutoExpanded, setHasAutoExpanded] = useState(false);
|
|
52
|
-
useEffect(() => {
|
|
53
|
-
if (!hasAutoExpanded && firstId) {
|
|
54
|
-
setExpandedId(firstId);
|
|
55
|
-
setHasAutoExpanded(true);
|
|
56
|
-
}
|
|
57
|
-
}, [firstId, hasAutoExpanded]);
|
|
58
|
-
const toggleExpand = (id) => {
|
|
59
|
-
setExpandedId((prev) => (prev === id ? null : id));
|
|
60
|
-
};
|
|
61
|
-
return (React.createElement(ConfigProvider, { theme: antdTheme },
|
|
62
|
-
React.createElement(AsideContent, { context: asideContext },
|
|
63
|
-
React.createElement(ListDataContext.Provider, { value: list },
|
|
64
|
-
React.createElement("div", { className: `w-full flex flex-col ${className}` },
|
|
65
|
-
React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faScrollOldSolid }), title: "Filings", description: "Streamline your yearly filing for hassle-Free" }),
|
|
66
|
-
React.createElement(ListHeaderTool, { visible: true, addAble: false, sortable: false, searchOptions: { placeholder: "Search in fillings" }, className: "p-5! [&_.header-tool-space]:gap-3.5 [&_button]:ml-0! [&_.ant-input-outlined]:h-auto! [&_.ant-input-outlined]:border-border! [&_.ant-input-outlined:hover]:border-font-secondary! [&_.ant-input-outlined:focus]:border-font-secondary! [&_.ant-input-outlined:focus-within]:border-font-secondary! [&_button]:font-semibold!", rightExtra: () => (React.createElement("button", { className: "primary-button px-4", onClick: () => setVisible(true) }, "+ NEW FILLING")) }),
|
|
67
|
-
React.createElement(Scrollbars, { autoHide: true },
|
|
68
|
-
React.createElement("div", { className: "px-5" }, groupEntries.map(([year, items]) => {
|
|
69
|
-
const isCurrent = year === currentYearKey;
|
|
70
|
-
const isGroupExpanded = items.some((item) => item.id === expandedId);
|
|
71
|
-
const isActive = isGroupExpanded;
|
|
72
|
-
const lineColor = isActive ? "bg-font-secondary" : "bg-font-grey";
|
|
73
|
-
const pillBorder = isActive
|
|
74
|
-
? "border-4 border-font-secondary/45"
|
|
75
|
-
: "border-4 border-font-grey/45";
|
|
76
|
-
const pillBg = isActive ? "bg-font-secondary" : "bg-font-grey";
|
|
77
|
-
const label = isCurrent ? `${year} CURRENT` : `${year} ACHIEVED`;
|
|
78
|
-
return (React.createElement("div", { key: year, className: "relative pb-6 overflow-hidden" },
|
|
79
|
-
React.createElement("div", { className: `absolute left-[16px] top-6 bottom-0 w-0.5 ${lineColor} z-0` }),
|
|
80
|
-
React.createElement("div", { className: `relative z-10 mb-3 inline-block shadow-sm rounded-full overflow-hidden ${pillBorder}` },
|
|
81
|
-
React.createElement("div", { className: `${pillBg} text-white px-5 py-2 text-xs font-extrabold tracking-wider shadow-inner rounded-full` }, label)),
|
|
82
|
-
items.map((item, idx, arr) => (React.createElement(YearNode, { key: item.id, id: item.id, isFirst: idx === 0, isLast: idx === arr.length - 1, isExpanded: expandedId === item.id, isActive: isActive, onToggle: () => {
|
|
83
|
-
toggleExpand(item.id);
|
|
84
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(FilingYearPropertiesView, { id: item.id }), {
|
|
85
|
-
span: 12,
|
|
86
|
-
});
|
|
87
|
-
} })))));
|
|
88
|
-
})))),
|
|
89
|
-
visible && (React.createElement(NewFilingYearDialog, { corporateId: corporateId, onCancel: () => setVisible(false), onCreate: () => setVisible(false) })),
|
|
90
|
-
quickView.show && (React.createElement(FilingYearQuickViewDialog, { visible: true, id: quickView.id, onCancel: () => setQuickView({ show: false, id: "" }) }))))));
|
|
91
|
-
});
|
|
92
|
-
};
|
|
93
|
-
export default FilingYearTimeline;
|
|
94
|
-
//# sourceMappingURL=index.js.map
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearTimeline/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,gBAAgB,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,8BAA8B,CAAC;AAC3F,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,yBAAyB,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,SAAS,MAAM,gCAAgC,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;A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ing-record/filing-year/components/FilingsTable/TableCell.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare const columnsList: ({
|
|
3
|
-
title: React.JSX.Element;
|
|
4
|
-
dataIndex: string;
|
|
5
|
-
width: string;
|
|
6
|
-
align?: undefined;
|
|
7
|
-
minWidth?: undefined;
|
|
8
|
-
} | {
|
|
9
|
-
title: React.JSX.Element;
|
|
10
|
-
dataIndex: string;
|
|
11
|
-
width?: undefined;
|
|
12
|
-
align?: undefined;
|
|
13
|
-
minWidth?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
title: string;
|
|
16
|
-
align: string;
|
|
17
|
-
dataIndex: string;
|
|
18
|
-
minWidth: string;
|
|
19
|
-
width?: undefined;
|
|
20
|
-
})[];
|
|
21
|
-
declare const TableCell: (props: any) => React.JSX.Element;
|
|
22
|
-
export default TableCell;
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { faFolderSolid, faCalendarCheckSolid, faUserSolid, faBarsProgressSolid, faCertificateSolid, faEllipsisVerticalSolid, FontAwesomeIcon as FAIcon, } from "@voplus/morpho-ui/es/faIcons";
|
|
2
|
-
import { Open } from "@voplus/morpho-document-core/es/controls/ToolBar/buttons";
|
|
3
|
-
import ToolBar from "@voplus/morpho-document-core/es/controls/ToolBar";
|
|
4
|
-
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
|
5
|
-
import IdentityStatus from "@voplus/morpho-org/es/modules/verification/IdentityStatus/IdentityStatus2";
|
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
|
7
|
-
import TagView from "@voplus/morpho-org/es/modules/tag/TagView/TagView2";
|
|
8
|
-
import UnitAvatar from "@voplus/morpho-org/es/components/UnitAvatar/LoadedUnitAvatar";
|
|
9
|
-
import UnitNameNoteAlert from "@voplus/morpho-org/es/components/UnitNameNoteAlert";
|
|
10
|
-
import FilingRecordMenu from "../../../controls/FilingRecordMenu";
|
|
11
|
-
import React from "react";
|
|
12
|
-
import { useFilingRecord, useFilingRecordStore } from "../../../../../../data/filing-record";
|
|
13
|
-
import { getDiffDay } from "./getDiffDay";
|
|
14
|
-
export const columnsList = [
|
|
15
|
-
{
|
|
16
|
-
title: (React.createElement(React.Fragment, null,
|
|
17
|
-
React.createElement(FAIcon, { icon: faFolderSolid }),
|
|
18
|
-
" Filing")),
|
|
19
|
-
dataIndex: "filing",
|
|
20
|
-
width: "25%",
|
|
21
|
-
},
|
|
22
|
-
{
|
|
23
|
-
title: (React.createElement(React.Fragment, null,
|
|
24
|
-
React.createElement(FAIcon, { icon: faCalendarCheckSolid }),
|
|
25
|
-
" Due")),
|
|
26
|
-
dataIndex: "due",
|
|
27
|
-
width: "20%",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
title: (React.createElement(React.Fragment, null,
|
|
31
|
-
React.createElement(FAIcon, { icon: faUserSolid }),
|
|
32
|
-
" File By")),
|
|
33
|
-
dataIndex: "by",
|
|
34
|
-
width: "25%",
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
title: (React.createElement(React.Fragment, null,
|
|
38
|
-
React.createElement(FAIcon, { icon: faBarsProgressSolid }),
|
|
39
|
-
" Tags")),
|
|
40
|
-
dataIndex: "tags",
|
|
41
|
-
width: "20%",
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
title: (React.createElement(React.Fragment, null,
|
|
45
|
-
React.createElement(FAIcon, { icon: faCertificateSolid }),
|
|
46
|
-
" Identity Status")),
|
|
47
|
-
dataIndex: "identity",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
title: " ",
|
|
51
|
-
align: "right",
|
|
52
|
-
dataIndex: "menu",
|
|
53
|
-
minWidth: "68px",
|
|
54
|
-
},
|
|
55
|
-
];
|
|
56
|
-
const renderDate = (date) => date ? (React.createElement(UTCShortDate, { value: date, format: "DD MMM YYYY", className: "text-sm text-font-primary font-semibold" })) : (React.createElement("span", { className: "text-font-primary" }, "__"));
|
|
57
|
-
const TableCell = (props) => {
|
|
58
|
-
const { dataIndex, record, rowIndex, children, ...restProps } = props;
|
|
59
|
-
const store = useFilingRecordStore();
|
|
60
|
-
return observe(() => {
|
|
61
|
-
const filing = useFilingRecord(record === null || record === void 0 ? void 0 : record.id, { reload: (i) => !i.tags, includes: "tags" });
|
|
62
|
-
const renderContent = () => {
|
|
63
|
-
var _a, _b, _c, _d;
|
|
64
|
-
switch (dataIndex) {
|
|
65
|
-
case "filing":
|
|
66
|
-
return (React.createElement("div", { className: "officer-table-item-filing" },
|
|
67
|
-
React.createElement("div", null, filing.name),
|
|
68
|
-
renderDate(filing.dueDate)));
|
|
69
|
-
case "due":
|
|
70
|
-
return (React.createElement("div", { className: "officer-table-item-due" }, filing.exempted ? (React.createElement("span", { className: "exempted" }, "exempted")) : filing.fileDate ? (renderDate(filing.fileDate)) : getDiffDay(filing.dueDate) > 0 ? (React.createElement("span", { className: "due-diffday" }, `Due ${getDiffDay(filing.dueDate)} days`)) : ("__")));
|
|
71
|
-
case "by":
|
|
72
|
-
return ((_a = filing.fileBy) === null || _a === void 0 ? void 0 : _a.id) ? (React.createElement("div", { className: "officer-table-item-by" },
|
|
73
|
-
React.createElement(UnitAvatar, { unit: filing.fileBy, className: "w-6.5! h-6.5! rounded-base! text-[9px]! text-font-secondary! bg-blue-profile! mr-1!" }),
|
|
74
|
-
React.createElement(UnitNameNoteAlert, { id: (_b = filing.fileBy) === null || _b === void 0 ? void 0 : _b.id, name: (_c = filing.fileBy) === null || _c === void 0 ? void 0 : _c.name }))) : ("__");
|
|
75
|
-
case "tags":
|
|
76
|
-
return ((_d = filing.tags) === null || _d === void 0 ? void 0 : _d.length) ? (React.createElement(TagView, { id: record.id, tags: filing.tags, items: store.items, maxCount: 1, className: "[&_.ant-tag]:h-5! [&_.ant-tag]:mr-1.5! [&_.ant-tag]:mt-0! [&_.ant-tag]:px-2.5! [&_.ant-tag]:text-[10px]! [&_.ant-tag]:font-bold! [&_.ant-tag]:text-font-primary! [&_.ant-tag]:bg-bg-grey! [&_.ant-tag]:border-border! [&_.maxCount]:text-font-primary! [&_.maxCount]:text-xs! [&_.maxCount]:mr-0!" })) : ("__");
|
|
77
|
-
case "identity":
|
|
78
|
-
return React.createElement(IdentityStatus, { id: record.id });
|
|
79
|
-
case "menu":
|
|
80
|
-
return (React.createElement("div", { className: "opacity-0 group-hover/row:opacity-100 transition-opacity" },
|
|
81
|
-
React.createElement(ToolBar, { id: record.id, showMenu: false },
|
|
82
|
-
React.createElement(Open, { url: `/filings/${record.id}` }),
|
|
83
|
-
React.createElement(FilingRecordMenu, { id: record.id, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVerticalSolid }) }))));
|
|
84
|
-
default:
|
|
85
|
-
return children;
|
|
86
|
-
}
|
|
87
|
-
};
|
|
88
|
-
return React.createElement("td", { ...restProps }, renderContent());
|
|
89
|
-
});
|
|
90
|
-
};
|
|
91
|
-
export default TableCell;
|
|
92
|
-
//# sourceMappingURL=TableCell.js.map
|
package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"TableCell.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingsTable/TableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,oBAAoB,EACpB,WAAW,EACX,mBAAmB,EACnB,kBAAkB,EAClB,uBAAuB,EACvB,eAAe,IAAI,MAAM,GACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,IAAI,EAAE,MAAM,0DAA0D,CAAC;AAChF,OAAO,OAAO,MAAM,kDAAkD,CAAC;AACvE,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,cAAc,MAAM,2EAA2E,CAAC;AACvG,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,UAAU,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,CACO,CACL,CACN,CAAC;gBACH;oBACC,OAAO,QAAQ,CAAC;YAClB,CAAC;QACF,CAAC,CAAC;QAEF,OAAO,+BAAQ,SAAS,IAAG,aAAa,EAAE,CAAM,CAAC;IAClD,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,SAAS,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function getDiffDay(date: string): number;
|
package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import dayjs from "dayjs";
|
|
2
|
-
// spec:1543 — CSP: Overdue day count uses local midnight difference
|
|
3
|
-
export function getDiffDay(date) {
|
|
4
|
-
const myDate = Date.parse(dayjs(date).format("YYYY-MM-DD"));
|
|
5
|
-
const nowDate = Date.parse(dayjs(new Date()).format("YYYY-MM-DD"));
|
|
6
|
-
const diffDate = nowDate - myDate;
|
|
7
|
-
return Math.floor(diffDate / (1000 * 3600 * 24));
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=getDiffDay.js.map
|
package/es/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"getDiffDay.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingsTable/getDiffDay.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,oEAAoE;AACpE,MAAM,UAAU,UAAU,CAAC,IAAY;IACtC,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;IACnE,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,CAAC;IAClC,OAAO,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,IAAI,GAAG,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC;AAClD,CAAC"}
|