@voplus/morpho-csp 10.0.19 → 10.0.20
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/background-investigation/risk-match/components/RiskMatchList/index.js +8 -5
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RelatedProfileList/index.js +7 -5
- package/es/modules/corporate/background-investigation/risk-profile/components/RelatedProfileList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.d.ts +8 -4
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js +32 -16
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js +3 -3
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingTimeline/index.d.ts +25 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingTimeline/index.js +137 -0
- package/es/modules/corporate/filing-record/filing-year/components/FilingTimeline/index.js.map +1 -0
- package/package.json +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.css +0 -17
package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { useRiskMatchListEffect } from "../../../../../../data/risk-match";
|
|
5
5
|
import { useAutoUpdateListData } from "../../../../../../data/risk-match/risk-match-events";
|
|
6
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
6
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
7
7
|
import RiskMatchItem from "../RiskMatchItem";
|
|
8
8
|
import "./index.css";
|
|
9
9
|
const RiskMatchList = (props) => {
|
|
@@ -24,10 +24,13 @@ const RiskMatchList = (props) => {
|
|
|
24
24
|
return observe(() => (React.createElement("div", { className: "risk-match-list" },
|
|
25
25
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
26
26
|
React.createElement(ListView, { headerProps: {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
headerToolProps: {
|
|
28
|
+
visible: true,
|
|
29
|
+
addAble: false,
|
|
30
|
+
sortable: false,
|
|
31
|
+
searchOptions: { placeholder: "Search risk matches" },
|
|
32
|
+
preExtra: () => (React.createElement(React.Fragment, null, viewTitle && (React.createElement("div", { className: "flex-1 text-lg leading-[42px] text-font-primary font-semibold" }, viewTitle)))),
|
|
33
|
+
},
|
|
31
34
|
}, asideable: false, renderItem: ({ item, connectDragSource }) => (React.createElement("div", { key: item.id, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item); } },
|
|
32
35
|
React.createElement(RiskMatchItem, { id: item.id }))) })))));
|
|
33
36
|
function filters() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAc,sBAAsB,EAAE,MAAM,mCAAmC,CAAC;AACvF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qDAAqD,CAAC;AAE5F,OAAO,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchList/index.tsx"],"names":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C,KAAK,EAAE,IAAI;YAEpC,oBAAC,QAAQ,IACR,WAAW,EAAE;oBACZ,eAAe,EAAE;wBAChB,OAAO,EAAE,IAAI;wBACb,OAAO,EAAE,KAAK;wBACd,QAAQ,EAAE,KAAK;wBACf,aAAa,EAAE,EAAE,WAAW,EAAE,qBAAqB,EAAE;wBACrD,QAAQ,EAAE,GAAG,EAAE,CAAC,CACf,0CACE,SAAS,IAAI,CACb,6BAAK,SAAS,EAAC,+DAA+D,IAC5E,SAAS,CACL,CACN,CACC,CACH;qBACD;iBACD,EACD,SAAS,EAAE,KAAK,EAChB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAO,EAAE,EAAE,CAAC,CACjD,6BAAK,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,WAAW,sDAAG,IAAI,CAAC,CAAA,EAAA;oBAC1D,oBAAC,aAAa,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACzB,CACN,GACA,CACwB,CACtB,CACN,CAAC,CAAC;IAEH,SAAS,OAAO;QACf,MAAM,MAAM,GAAmB,EAAE,CAAC;QAClC,IAAI,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjF,OAAO,MAAM,CAAC;IACf,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { useRelatedProfileListEffect } from "../../../../../../data/risk-profile";
|
|
5
5
|
import { useAutoUpdateListData } from "../../../../../../data/risk-profile/risk-profile-events";
|
|
6
|
-
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/
|
|
6
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
7
7
|
import RiskProfileItem from "../RiskProfileItem";
|
|
8
8
|
import "./index.css";
|
|
9
9
|
const RelatedProfileList = (props) => {
|
|
@@ -20,10 +20,12 @@ const RelatedProfileList = (props) => {
|
|
|
20
20
|
return observe(() => (React.createElement("div", { className: "related-profile-list" },
|
|
21
21
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
22
22
|
React.createElement(ListView, { headerProps: {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
headerToolProps: {
|
|
24
|
+
visible: true,
|
|
25
|
+
addAble: false,
|
|
26
|
+
sortable: false,
|
|
27
|
+
searchOptions: { placeholder: "Search related profiles" },
|
|
28
|
+
},
|
|
27
29
|
}, renderItem: ({ item, connectDragSource }) => (React.createElement("div", { key: item.id, onClick: () => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, item); } },
|
|
28
30
|
React.createElement(RiskProfileItem, { key: item.id, id: item.id }))), asideable: false })))));
|
|
29
31
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RelatedProfileList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAgB,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,yDAAyD,CAAC;AAChG,OAAO,QAAQ,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components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KAAK;wBACd,QAAQ,EAAE,KAAK;wBACf,aAAa,EAAE,EAAE,WAAW,EAAE,yBAAyB,EAAE;qBACzD;iBACD,EACD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAO,EAAE,EAAE,CAAC,CACjD,6BAAK,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,GAAG,EAAE,WAAC,OAAA,MAAA,KAAK,CAAC,WAAW,sDAAG,IAAI,CAAC,CAAA,EAAA;oBAC1D,oBAAC,eAAe,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACzC,CACN,EACD,SAAS,EAAE,KAAK,GACf,CACwB,CACtB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { IRiskProfile } from "../../../../../../data/risk-profile";
|
|
3
|
-
|
|
4
|
-
declare const RiskProfileList: (props: {
|
|
3
|
+
export type RiskProfileListProps = {
|
|
5
4
|
parentId: string;
|
|
6
|
-
|
|
5
|
+
/** 是否允在 listView 内部打开 aside */
|
|
7
6
|
asideable?: boolean;
|
|
7
|
+
/** 头部的显示方式 */
|
|
8
|
+
headerType?: "dashboard" | "tool";
|
|
9
|
+
title?: string;
|
|
10
|
+
description?: string;
|
|
8
11
|
onTotal?: (total: number) => void;
|
|
9
12
|
onClickItem?: (item: IRiskProfile) => void;
|
|
10
|
-
}
|
|
13
|
+
};
|
|
14
|
+
declare const RiskProfileList: ({ asideable, headerType, title, description, ...props }: RiskProfileListProps) => React.JSX.Element;
|
|
11
15
|
export default RiskProfileList;
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { useRiskProfileListEffect } from "../../../../../../data/risk-profile";
|
|
5
5
|
import { useAutoUpdateListData } from "../../../../../../data/risk-profile/risk-profile-events";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { FontAwesomeIcon as FAIcon, faAddressCardSolid } from "@voplus/morpho-ui/es/faIcons";
|
|
7
|
+
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
|
8
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView";
|
|
8
9
|
import NewRiskProfileForm from "../NewRiskProfileForm";
|
|
9
10
|
import RiskProfileItem from "../RiskProfileItem";
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
11
|
+
const RiskProfileList = ({ asideable = true, headerType = "tool", title = "Risk Profile", description = "Track and manage shared risks across stakeholders.", ...props }) => {
|
|
12
|
+
const { parentId } = props;
|
|
13
|
+
const layoutContext = useViewLayoutContext();
|
|
14
14
|
const list = useCreateListDataState({
|
|
15
15
|
filterDefaults: {
|
|
16
16
|
filters: filters(),
|
|
17
17
|
},
|
|
18
18
|
}, [parentId]);
|
|
19
|
+
const listHeaderProps = {
|
|
20
|
+
visible: true,
|
|
21
|
+
sortable: false,
|
|
22
|
+
onAdd: onAdd,
|
|
23
|
+
searchOptions: { placeholder: "Search risk profiles" },
|
|
24
|
+
};
|
|
19
25
|
/** 如果 list.filters.options变更了就重渲染,使下一行的useWorkTypeListEffect 可以接收新参数*/
|
|
20
26
|
useRenderOnChange(() => list.filters.options);
|
|
21
27
|
useRiskProfileListEffect(list, (result, total) => {
|
|
@@ -24,15 +30,25 @@ const RiskProfileList = (props) => {
|
|
|
24
30
|
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total !== null && total !== void 0 ? total : 0);
|
|
25
31
|
}, { Total: true, ...list.filters.options });
|
|
26
32
|
useAutoUpdateListData(list, (d) => true);
|
|
27
|
-
return observe(() => (React.createElement(
|
|
28
|
-
React.createElement(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
|
34
|
+
React.createElement(ListView, { className: "risk-profile-list", headerProps: {
|
|
35
|
+
headDashboardProps: headerType === "dashboard"
|
|
36
|
+
? {
|
|
37
|
+
headerType: "page",
|
|
38
|
+
avatarIcon: React.createElement(FAIcon, { icon: faAddressCardSolid }),
|
|
39
|
+
title: title,
|
|
40
|
+
description: description,
|
|
41
|
+
listHeaderProps: listHeaderProps,
|
|
42
|
+
}
|
|
43
|
+
: undefined,
|
|
44
|
+
headerToolProps: headerType === "tool" ? listHeaderProps : undefined,
|
|
45
|
+
}, renderItem: ({ item }) => (React.createElement("div", { key: item.id, onClick: () => (props === null || props === void 0 ? void 0 : props.onClickItem) && props.onClickItem(item) },
|
|
46
|
+
React.createElement(RiskProfileItem, { id: item.id }))), asideable: asideable }))));
|
|
47
|
+
function onAdd(asideContext) {
|
|
48
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NewRiskProfileForm, null), {
|
|
49
|
+
span: (layoutContext === null || layoutContext === void 0 ? void 0 : layoutContext.asideColSpan) ? layoutContext.asideColSpan : 12,
|
|
50
|
+
});
|
|
51
|
+
}
|
|
36
52
|
// spec:1961 — CSP: Risk profile list filters by parent node
|
|
37
53
|
function filters() {
|
|
38
54
|
const filter = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileList/index.tsx"],"names":[],"mappings":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AA0B;QACxC,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CAAC,oBAAC,kBAAkB,OAAG,EAAE;YAC/C,IAAI,EAAE,CAAA,aAAa,aAAb,aAAa,uBAAb,aAAa,CAAE,YAAY,EAAC,CAAC,CAAC,aAAa,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE;SACnE,CAAC,CAAC;IACJ,CAAC;IAED,4DAA4D;IAC5D,SAAS,OAAO;QACf,MAAM,MAAM,GAAmB,EAAE,CAAC;QAClC,IAAI,QAAQ;YAAE,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEjF,OAAO,MAAM,CAAC;IACf,CAAC;IAED,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -34,19 +34,19 @@ const RiskProfileTabs = (props) => {
|
|
|
34
34
|
{
|
|
35
35
|
key: "Matches",
|
|
36
36
|
label: "Matches",
|
|
37
|
-
children: React.createElement(RiskMatchList, { parentId: id
|
|
37
|
+
children: React.createElement(RiskMatchList, { parentId: id }),
|
|
38
38
|
},
|
|
39
39
|
{
|
|
40
40
|
key: "RelatedProfiles",
|
|
41
41
|
label: "Related Profiles",
|
|
42
|
-
children: React.createElement(RelatedProfileList, { parentId: id
|
|
42
|
+
children: React.createElement(RelatedProfileList, { parentId: id }),
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
45
|
key: "Document",
|
|
46
46
|
label: (React.createElement(React.Fragment, null,
|
|
47
47
|
"Document ",
|
|
48
48
|
React.createElement(Badge, { count: docTotals, className: "margin-left-10" }))),
|
|
49
|
-
children: (React.createElement(DocumentList, { id: id, multiple: true,
|
|
49
|
+
children: (React.createElement(DocumentList, { id: id, multiple: true, total: false, viewTitle: false, exclude: ["Task", "Ticket", "Deal"] })),
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
key: "Activities",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,eAAe,EACf,mBAAmB,GACnB,MAAM,8DAA8D,CAAC;AACtE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,aAAa,MAAM,8CAA8C,CAAC;AAEzE,MAAM,eAAe,GAAG,CAAC,KAAmD,EAAE,EAAE;;IAC/E,MAAM,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;IAEjC,MAAM,WAAW,GAAG,cAAc,CAAC,EAAE,CAAC,CAAC;IACvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,mBAAmB,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC9C,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,UAAU,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;IAElF,qBAAqB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,KAAK,IAAI,CAAC,CAAC,EAAE;QACxE,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,KAAK;QACX,OAAO,EAAE;YACR,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,EAAE;YAC/C;gBACC,CAAC,EAAE,MAAM;gBACT,CAAC,EAAE,WAAkB;gBACrB,CAAC,EAAE,KAAK;gBACR,EAAE,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,CAAC;aAC9C;SACD;KACD,CAAC,CAAC;IAEH,kDAAkD;IAClD,MAAM,KAAK,GAAuB;QACjC;YACC,GAAG,EAAE,SAAS;YACd,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE,oBAAC,aAAa,IAAC,QAAQ,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EACN,eAAe,EACf,mBAAmB,GACnB,MAAM,8DAA8D,CAAC;AACtE,OAAO,WAAW,MAAM,4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AAK,EACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EACpC,QAAQ,EAAE,KAAK,GACd,CACwB,CACjB,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface FilingRecord {
|
|
3
|
+
id: string;
|
|
4
|
+
title: string;
|
|
5
|
+
deadline: string;
|
|
6
|
+
fileBy: {
|
|
7
|
+
initials: string;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
tags: string[];
|
|
11
|
+
extraTagCount?: number;
|
|
12
|
+
verified: boolean;
|
|
13
|
+
confirmed: boolean;
|
|
14
|
+
}
|
|
15
|
+
export interface FilingGroup {
|
|
16
|
+
id: string;
|
|
17
|
+
dateStr: string;
|
|
18
|
+
records: FilingRecord[];
|
|
19
|
+
}
|
|
20
|
+
export interface FilingTimelineProps {
|
|
21
|
+
corporateId: string;
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
declare const FilingTimeline: (props: FilingTimelineProps) => React.JSX.Element;
|
|
25
|
+
export default FilingTimeline;
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Input, Button, Tag, Dropdown } from "antd";
|
|
3
|
+
import { SearchOutlined, EllipsisOutlined, DownOutlined, SafetyCertificateFilled, CheckCircleFilled, } from "@ant-design/icons";
|
|
4
|
+
import classnames from "classnames";
|
|
5
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
|
6
|
+
import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
7
|
+
import { useFilingYearListEffect } from "../../../../../../data/filing-year";
|
|
8
|
+
import { useAutoUpdateListData } from "../../../../../../data/filing-year/filing-year-events";
|
|
9
|
+
import { toJS } from "mobx";
|
|
10
|
+
import moment from "moment";
|
|
11
|
+
const FilingTimeline = (props) => {
|
|
12
|
+
const { corporateId, className } = props;
|
|
13
|
+
const [expandedGroupIds, setExpandedGroupIds] = useState([]);
|
|
14
|
+
const [hasAutoExpanded, setHasAutoExpanded] = useState(false);
|
|
15
|
+
// spec:1541 — CSP: Filing years filtered by parent corporate node
|
|
16
|
+
const list = useCreateListDataState({ filterDefaults: { filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: corporateId }] } }, [corporateId]);
|
|
17
|
+
useAutoUpdateListData(list, () => true);
|
|
18
|
+
useRenderOnChange(() => list.filters.options);
|
|
19
|
+
useFilingYearListEffect(list, (result) => list.union(result), list.filters.options);
|
|
20
|
+
const toggleGroup = (id) => {
|
|
21
|
+
setExpandedGroupIds((prev) => prev.includes(id) ? prev.filter((gId) => gId !== id) : [...prev, id]);
|
|
22
|
+
};
|
|
23
|
+
const items = [
|
|
24
|
+
{ key: "1", label: "Edit" },
|
|
25
|
+
{ key: "2", label: "Delete", danger: true },
|
|
26
|
+
];
|
|
27
|
+
return observe(() => {
|
|
28
|
+
// let groups = defaultGroups;
|
|
29
|
+
const raw = toJS(list.data);
|
|
30
|
+
const sorted = [...raw].sort((a, b) => new Date(b.fYE).getTime() - new Date(a.fYE).getTime());
|
|
31
|
+
const groups = sorted.map((y) => {
|
|
32
|
+
const dateStr = moment(y.fYE).format("DD MMMM YYYY").toUpperCase();
|
|
33
|
+
const records = (y.filings || []).map((r) => {
|
|
34
|
+
var _a;
|
|
35
|
+
const name = ((_a = r.fileBy) === null || _a === void 0 ? void 0 : _a.name) || "UNKNOWN";
|
|
36
|
+
const initials = name.substring(0, 2).toUpperCase();
|
|
37
|
+
const tags = (r.tags || []).map((t) => t.name);
|
|
38
|
+
return {
|
|
39
|
+
id: r.id,
|
|
40
|
+
title: r.name || "Untitled Filing",
|
|
41
|
+
deadline: r.dueDate ? moment(r.dueDate).format("MMMM DD, YYYY") : "—",
|
|
42
|
+
fileBy: {
|
|
43
|
+
name,
|
|
44
|
+
initials,
|
|
45
|
+
},
|
|
46
|
+
tags: tags.slice(0, 2),
|
|
47
|
+
extraTagCount: tags.length > 2 ? tags.length - 2 : undefined,
|
|
48
|
+
verified: true, // Mock logic as per requested design
|
|
49
|
+
confirmed: true, // Mock logic as per requested design
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
return {
|
|
53
|
+
id: y.id,
|
|
54
|
+
dateStr,
|
|
55
|
+
records,
|
|
56
|
+
};
|
|
57
|
+
});
|
|
58
|
+
if (!hasAutoExpanded && groups.length > 0) {
|
|
59
|
+
setExpandedGroupIds([groups[0].id]);
|
|
60
|
+
setHasAutoExpanded(true);
|
|
61
|
+
}
|
|
62
|
+
return (React.createElement("div", { className: "w-full max-w-[1200px] mx-auto py-6 font-sans" },
|
|
63
|
+
React.createElement("div", { className: "flex items-center gap-4 mb-10" },
|
|
64
|
+
React.createElement(Input, { prefix: React.createElement(SearchOutlined, { className: "text-gray-400" }), placeholder: "Search in filing, document or entities ...", size: "large", className: "flex-1 rounded-md" }),
|
|
65
|
+
React.createElement(Button, { type: "primary", size: "large", className: "bg-[#3b82f6] rounded-md font-semibold px-6 border-none flex items-center justify-center tracking-wide" }, "+ NEW FILING")),
|
|
66
|
+
React.createElement("div", { className: "flex flex-col ml-8" }, groups.map((group, index) => {
|
|
67
|
+
const isExpanded = expandedGroupIds.includes(group.id);
|
|
68
|
+
const isLast = index === groups.length - 1;
|
|
69
|
+
// Colors based on active vs inactive
|
|
70
|
+
const themeColor = isExpanded ? "bg-font-secondary" : "bg-font-grey";
|
|
71
|
+
const ringColor = isExpanded ? "ring-font-secondary/45" : "ring-font-grey/45";
|
|
72
|
+
const lineColor = isExpanded ? "border-font-secondary" : "border-font-grey";
|
|
73
|
+
// Assumes all records in a collapsed group are confirmed for mock purposes
|
|
74
|
+
const confirmedCount = group.records.filter((r) => r.confirmed).length;
|
|
75
|
+
return (React.createElement("div", { key: group.id, className: "relative pl-8 pb-10" },
|
|
76
|
+
React.createElement("div", { className: `absolute top-6 left-0 border-l-[1.5px] ${lineColor} z-0`, style: {
|
|
77
|
+
bottom: isLast ? "0px" : "-24px",
|
|
78
|
+
} }),
|
|
79
|
+
React.createElement("div", { className: "flex justify-between items-center mb-6 relative" },
|
|
80
|
+
React.createElement("div", { className: "absolute left-[-42px] top-1/2 -translate-y-1/2 flex items-center justify-center cursor-pointer", onClick: () => toggleGroup(group.id) },
|
|
81
|
+
React.createElement("div", { className: classnames("px-5 py-2 rounded-full text-xs font-bold text-white shadow-sm ring-[5px] z-10 tracking-wide", themeColor, ringColor) },
|
|
82
|
+
group.dateStr,
|
|
83
|
+
" | ",
|
|
84
|
+
group.records.length,
|
|
85
|
+
" RECORDS")),
|
|
86
|
+
React.createElement("div", { className: "ml-auto" },
|
|
87
|
+
React.createElement("button", { className: "underline-button" }, "ADD RECORD"))),
|
|
88
|
+
React.createElement("div", null, isExpanded ? (React.createElement("div", { className: "flex flex-col gap-4 relative" }, group.records.map((record, rIndex) => (React.createElement("div", { key: record.id, className: "relative" },
|
|
89
|
+
React.createElement("div", { className: classnames("absolute left-[-36px] top-1/2 -translate-y-1/2 w-2.5 h-2.5 rounded-full z-10 ring-3", themeColor, ringColor) }),
|
|
90
|
+
React.createElement("div", { className: "bg-white border border-gray-200 rounded-xl p-5 shadow-sm flex items-center justify-between hover:shadow-md transition-shadow" },
|
|
91
|
+
React.createElement("div", { className: "flex flex-col gap-1.5 w-[25%] pr-4" },
|
|
92
|
+
React.createElement("span", { className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider" }, "Filing Title"),
|
|
93
|
+
React.createElement("span", { className: "text-[13px] font-bold text-gray-800 truncate" }, record.title)),
|
|
94
|
+
React.createElement("div", { className: "flex flex-col gap-1.5 w-[15%] pr-4" },
|
|
95
|
+
React.createElement("span", { className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider" }, "Deadline"),
|
|
96
|
+
React.createElement("span", { className: "text-[13px] font-semibold text-gray-600" }, record.deadline)),
|
|
97
|
+
React.createElement("div", { className: "flex flex-col gap-1.5 w-[20%] pr-4" },
|
|
98
|
+
React.createElement("span", { className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider" }, "File By"),
|
|
99
|
+
React.createElement("div", { className: "flex items-center gap-2" },
|
|
100
|
+
React.createElement("div", { className: "w-6 h-6 bg-blue-100 text-[#3b82f6] text-[10px] font-bold rounded flex items-center justify-center shrink-0" }, record.fileBy.initials),
|
|
101
|
+
React.createElement("span", { className: "text-[13px] text-[#3b82f6] font-bold truncate hover:underline cursor-pointer" }, record.fileBy.name))),
|
|
102
|
+
React.createElement("div", { className: "flex flex-col gap-1.5 w-[15%] pr-4" },
|
|
103
|
+
React.createElement("span", { className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider" }, "Tags"),
|
|
104
|
+
React.createElement("div", { className: "flex items-center gap-1.5 flex-wrap" },
|
|
105
|
+
record.tags.map((t, i) => (React.createElement(Tag, { key: i, className: "text-[10px] bg-gray-100 border border-gray-200 m-0 text-gray-600 font-semibold px-2 py-0.5" }, t))),
|
|
106
|
+
record.extraTagCount && (React.createElement("span", { className: "text-xs text-gray-500 font-semibold ml-1" },
|
|
107
|
+
"+",
|
|
108
|
+
record.extraTagCount)))),
|
|
109
|
+
React.createElement("div", { className: "flex flex-col gap-1.5 w-[20%]" },
|
|
110
|
+
React.createElement("span", { className: "text-[10px] text-gray-400 font-bold uppercase tracking-wider" }, "Confirmation Status"),
|
|
111
|
+
React.createElement("div", { className: "flex items-center gap-4" },
|
|
112
|
+
record.verified && (React.createElement("div", { className: "flex items-center gap-1.5 text-[#3b82f6] font-bold text-xs" },
|
|
113
|
+
React.createElement(SafetyCertificateFilled, { className: "text-sm" }),
|
|
114
|
+
" Verified")),
|
|
115
|
+
record.confirmed && (React.createElement("div", { className: "flex items-center gap-1.5 text-[#3b82f6] font-bold text-xs" },
|
|
116
|
+
React.createElement(CheckCircleFilled, { className: "text-sm" }),
|
|
117
|
+
" Confirmed")))),
|
|
118
|
+
React.createElement("div", { className: "w-[5%] flex justify-end" },
|
|
119
|
+
React.createElement(Dropdown, { menu: { items }, trigger: ["click"] },
|
|
120
|
+
React.createElement(Button, { type: "text", icon: React.createElement(EllipsisOutlined, null), className: "text-gray-600" })))),
|
|
121
|
+
" ",
|
|
122
|
+
isLast && rIndex === group.records.length - 1 && (React.createElement("div", { className: "absolute left-[-36px] top-1/2 bottom-[-100px] w-3 bg-white z-1" })),
|
|
123
|
+
" "))))) : (React.createElement("div", { className: "relative" },
|
|
124
|
+
React.createElement("div", { className: classnames("absolute left-[-36px] top-1/2 -translate-y-1/2 w-2.5 h-2.5 rounded-full z-10 ring-3", themeColor, ringColor) }),
|
|
125
|
+
React.createElement("div", { className: "bg-gray-50/50 border border-gray-200 rounded-xl p-4 shadow-sm flex items-center cursor-pointer hover:bg-gray-100 transition-colors", onClick: () => toggleGroup(group.id) },
|
|
126
|
+
React.createElement(DownOutlined, { className: "text-gray-500 text-xs mr-3" }),
|
|
127
|
+
React.createElement("span", { className: "text-xs font-bold text-gray-600 tracking-wide" },
|
|
128
|
+
confirmedCount,
|
|
129
|
+
"/",
|
|
130
|
+
group.records.length,
|
|
131
|
+
" RECORDS CONFIRMED")),
|
|
132
|
+
isLast && (React.createElement("div", { className: "absolute left-[-36px] top-1/2 bottom-[-100px] w-3 bg-white z-1" })))))));
|
|
133
|
+
}))));
|
|
134
|
+
});
|
|
135
|
+
};
|
|
136
|
+
export default FilingTimeline;
|
|
137
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingTimeline/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,QAAQ,EAAa,MAAM,MAAM,CAAC;AAC/D,OAAO,EACN,cAAc,EACd,gBAAgB,EAChB,YAAY,EACZ,uB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