@voplus/morpho-csp 8.0.2 → 8.0.4
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/data/filing-record/FilingRecordStore.d.ts +7 -7
- package/es/data/filing-record/filing-record-events/useAutoUpdateListData.d.ts +2 -2
- package/es/data/filing-record/filing-record-events/useOnDeleteFilingRecore.d.ts +2 -2
- package/es/data/filing-record/filing-record-events/useOnNewFilingRecore.d.ts +2 -2
- package/es/data/filing-record/hooks.d.ts +3 -3
- package/es/data/filing-record/interfaces.d.ts +1 -1
- package/es/data/filing-record/types.d.ts +2 -2
- package/es/data/filing-year/interfaces.d.ts +2 -2
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.d.ts +0 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js +2 -2
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.d.ts +4 -9
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js +6 -15
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js +7 -14
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileTabs/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateTabs/index.js +9 -12
- package/es/modules/corporate/company/components/CorporateTabs/index.js.map +1 -1
- package/es/modules/corporate/company/components/SharesCapitalCard/state.d.ts +2 -2
- package/es/modules/corporate/company/components/SharesCapitalCard/state.js +4 -4
- package/es/modules/corporate/company/components/SharesCard/index.d.ts +1 -1
- package/es/modules/corporate/company/components/SharesCard/index.js +3 -3
- package/es/modules/corporate/company/components/SharesCard/state.d.ts +2 -2
- package/es/modules/corporate/company/components/SharesCard/state.js +4 -4
- package/es/modules/corporate/company/components/SharesCard2/state.d.ts +2 -2
- package/es/modules/corporate/company/components/SharesCard2/state.js +4 -4
- package/es/modules/corporate/company/controls/CorporateMenu/index.js +4 -2
- package/es/modules/corporate/company/controls/CorporateMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingList/index.d.ts +2 -2
- package/es/modules/corporate/filing-record/components/FilingTimeLineCard/state.d.ts +5 -5
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js +12 -13
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js +11 -15
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearTabs/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.js +3 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js +2 -3
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/Cancel.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js +2 -3
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/RevokePhysical.js.map +1 -1
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js +2 -3
- package/es/modules/corporate/share-certificate/controls/ShareCertificateMenu/items/UndoCancel.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.d.ts +0 -1
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js +8 -6
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.js.map +1 -1
- package/es/modules/corporate/share-class/controls/ShareClassMenu/index.js +4 -2
- package/es/modules/corporate/share-class/controls/ShareClassMenu/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.d.ts +0 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js +13 -17
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js +2 -0
- package/es/modules/corporate/virtual-address/controls/VirtualAddressMenu/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.d.ts +0 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js +13 -15
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js +5 -3
- package/es/modules/corporate/virtual-address-mail/controls/VirtualAddressMailMenu/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/corporate/share-class/components/ShareClassTabs/index.less +0 -8
- package/es/modules/corporate/virtual-address/components/VirtualAddressTabs/index.less +0 -8
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailTabs/index.less +0 -8
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ApiEndPoint } from "@voplus/api";
|
|
2
2
|
import { CountedMap, Store, FilterOption, StoreActionOptions } from "@voplus/morpho-data";
|
|
3
3
|
import { CreateFilingRecoreOptions, DeleteFilingRecoreOptions, EditFilingRecoreOptions, LoadFilingRecoreOptions, FilingRecoreNotifyOptions } from "./types";
|
|
4
|
-
import {
|
|
4
|
+
import { IFilingRecord } from "./interfaces";
|
|
5
5
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
6
6
|
/** Quotation store supply backend functions. */
|
|
7
7
|
export declare class FilingRecoreStore extends Store {
|
|
@@ -12,14 +12,14 @@ export declare class FilingRecoreStore extends Store {
|
|
|
12
12
|
private readonly _filingRecoreCreated;
|
|
13
13
|
constructor(endpoint: ApiEndPoint);
|
|
14
14
|
/** All currently used corporate. */
|
|
15
|
-
readonly items: CountedMap<string,
|
|
15
|
+
readonly items: CountedMap<string, IFilingRecord>;
|
|
16
16
|
/** Event fires when a delete filingRecore has been deleted. */
|
|
17
|
-
get FilingRecoreDeletedEvent(): import("strongly-typed-events").IEvent<FilingRecoreStore,
|
|
17
|
+
get FilingRecoreDeletedEvent(): import("strongly-typed-events").IEvent<FilingRecoreStore, IFilingRecord>;
|
|
18
18
|
/** Event fires when a new FilingRecore has been created. */
|
|
19
|
-
get FilingRecoreCreatedEvent(): import("strongly-typed-events").IEvent<FilingRecoreStore,
|
|
19
|
+
get FilingRecoreCreatedEvent(): import("strongly-typed-events").IEvent<FilingRecoreStore, IFilingRecord>;
|
|
20
20
|
notify(id: string, options: FilingRecoreNotifyOptions): Promise<any>;
|
|
21
21
|
/** Create a new Identity. */
|
|
22
|
-
create(options: CreateFilingRecoreOptions): Promise<
|
|
22
|
+
create(options: CreateFilingRecoreOptions): Promise<IFilingRecord>;
|
|
23
23
|
/** Edit an existing item on server. */
|
|
24
24
|
edit(id: string, options: EditFilingRecoreOptions): Promise<void>;
|
|
25
25
|
/** filingRecore 內有文件不能delete */
|
|
@@ -27,8 +27,8 @@ export declare class FilingRecoreStore extends Store {
|
|
|
27
27
|
/** Load a list of documents from server.
|
|
28
28
|
* @param {LoadDocumentListOptions}
|
|
29
29
|
*/
|
|
30
|
-
loadList(options?: LoadDocumentListOptions): Promise<
|
|
31
|
-
load(id: string, options: LoadFilingRecoreOptions): Promise<
|
|
30
|
+
loadList(options?: LoadDocumentListOptions): Promise<IFilingRecord[]>;
|
|
31
|
+
load(id: string, options: LoadFilingRecoreOptions): Promise<IFilingRecord>;
|
|
32
32
|
/** count */
|
|
33
33
|
count(options: {
|
|
34
34
|
data: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFilingRecord } from "../interfaces";
|
|
2
2
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
3
3
|
/** React hook to call action when a new FilingRecore has been created. */
|
|
4
|
-
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d:
|
|
4
|
+
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: IFilingRecord, event: string) => boolean) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FilingRecoreStore } from "../FilingRecordStore";
|
|
2
|
-
import {
|
|
2
|
+
import { IFilingRecord } from "../interfaces";
|
|
3
3
|
/** React hook to call action when a delete FilingRecore has been created. */
|
|
4
|
-
export declare const useOnDeleteFilingRecore: (action: (store: FilingRecoreStore, doc:
|
|
4
|
+
export declare const useOnDeleteFilingRecore: (action: (store: FilingRecoreStore, doc: IFilingRecord) => void) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { FilingRecoreStore } from "../FilingRecordStore";
|
|
2
|
-
import {
|
|
2
|
+
import { IFilingRecord } from "../interfaces";
|
|
3
3
|
/** React hook to call action when a new FilingRecore has been created. */
|
|
4
|
-
export declare const useOnNewFilingRecore: (action: (store: FilingRecoreStore, doc:
|
|
4
|
+
export declare const useOnNewFilingRecore: (action: (store: FilingRecoreStore, doc: IFilingRecord) => void) => void;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
|
2
|
-
import {
|
|
2
|
+
import { IFilingRecord } from "./interfaces";
|
|
3
3
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import { LoadFilingRecoreOptions } from ".";
|
|
5
5
|
/** React hook to retrieve a filingRecore
|
|
6
6
|
* @param {string} id - id of the filingRecore
|
|
7
7
|
* @param {LoadDocumentOptions} options - options
|
|
8
8
|
*/
|
|
9
|
-
export declare const useFilingRecore: (id: string, options?: LoadFilingRecoreOptions) =>
|
|
10
|
-
export declare const useFilingRecoreListEffect: (list: ListDataContextState<
|
|
9
|
+
export declare const useFilingRecore: (id: string, options?: LoadFilingRecoreOptions) => IFilingRecord;
|
|
10
|
+
export declare const useFilingRecoreListEffect: (list: ListDataContextState<IFilingRecord> | null, effect: (list: any[], total: number) => void, options?: LoadDocumentListOptions) => void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
import { ITag, INode } from "@voplus/morpho-document-core";
|
|
3
|
-
export interface
|
|
3
|
+
export interface IFilingRecord extends ILoadable, INode {
|
|
4
4
|
id: string;
|
|
5
5
|
name: string;
|
|
6
6
|
dueDate: string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
|
2
2
|
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
|
3
|
-
import {
|
|
3
|
+
import { IFilingRecord } from "./interfaces";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
5
|
/** Custom load org contact options type */
|
|
6
6
|
export type LoadFilingRecoreOptions = {
|
|
7
7
|
/** Comma separated include options e.g. path */
|
|
8
8
|
includes?: string;
|
|
9
|
-
} & LoadOptions<
|
|
9
|
+
} & LoadOptions<IFilingRecord>;
|
|
10
10
|
export type FilingRecoreCreateOptions = {
|
|
11
11
|
FilingYearId: string;
|
|
12
12
|
Name: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
|
2
2
|
import { INode } from "@voplus/morpho-document-core";
|
|
3
|
-
import {
|
|
3
|
+
import { IFilingRecord } from "../filing-record";
|
|
4
4
|
export interface IFilingYear extends INode, ILoadable {
|
|
5
5
|
id: string;
|
|
6
6
|
parentId: string;
|
|
7
7
|
fYE: string;
|
|
8
|
-
filings?:
|
|
8
|
+
filings?: IFilingRecord[];
|
|
9
9
|
}
|
package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.js
CHANGED
|
@@ -6,12 +6,12 @@ import NodeHeaderLayout from "@voplus/morpho-ui/es/controls/NodeHeaderLayout";
|
|
|
6
6
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
7
7
|
import RiskMatchDataBar from "../../controls/RiskMatchDataBar";
|
|
8
8
|
const RiskMatchHeader = (props) => {
|
|
9
|
-
const { id
|
|
9
|
+
const { id } = props;
|
|
10
10
|
const riskMatch = useRiskMatch(id);
|
|
11
11
|
return observe(() => (React.createElement(NodeHeaderLayout, { content: riskMatch.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
12
12
|
React.createElement(Open, { url: `/risk-match/${id}` }),
|
|
13
13
|
React.createElement(Reload, null),
|
|
14
|
-
|
|
14
|
+
React.createElement(Close, { action: props.onClose })), more: React.createElement(RiskMatchDataBar, { id: id }) })));
|
|
15
15
|
};
|
|
16
16
|
export default RiskMatchHeader;
|
|
17
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAE/D,MAAM,eAAe,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAC9E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAE/D,MAAM,eAAe,GAAG,CAAC,KAA2C,EAAE,EAAE;IACvE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EAAE,SAAS,CAAC,IAAI,EACvB,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,eAAe,EAAE,EAAE,GAAI;YAClC,oBAAC,MAAM,OAAG;YACV,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,OAAO,GAAI,CACvB,EAEX,IAAI,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI,GACjC,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
|
@@ -14,7 +14,7 @@ const RiskMatchQuickView = (props) => {
|
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
setError(null);
|
|
16
16
|
}, [id]);
|
|
17
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "riskMatch-quick-view", header: React.createElement(RiskMatchHeader, { id: id,
|
|
17
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "riskMatch-quick-view", header: React.createElement(RiskMatchHeader, { id: id, onClose: props.onCancel }), buttons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
18
18
|
{
|
|
19
19
|
name: "properties",
|
|
20
20
|
icon: faAlignLeftRegular,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAC;AAClE,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAC9F,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,YAAY,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEpE,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,sBAAsB,EAChC,MAAM,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../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AAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,kBAAkB;gBACxB,KAAK,EAAE,mBAAmB;gBAC1B,MAAM,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;aACnC;SACD;QAED,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACV,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.d.ts
CHANGED
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const RiskMatchTabs: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}): React.JSX.Element;
|
|
7
|
-
defaultProps: {
|
|
8
|
-
report: boolean;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
2
|
+
declare const RiskMatchTabs: (props: {
|
|
3
|
+
id: string;
|
|
4
|
+
report?: boolean;
|
|
5
|
+
}) => React.JSX.Element;
|
|
11
6
|
export default RiskMatchTabs;
|
package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import React, { useState
|
|
2
|
-
import {
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
5
6
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
6
7
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
8
|
import RiskMatchReport from "../RiskMatchReport";
|
|
@@ -11,15 +12,12 @@ const RiskMatchTabs = (props) => {
|
|
|
11
12
|
/**Tabs 当前激活 tab 面板的 key */
|
|
12
13
|
const [activeKey, setActiveKey] = useState("Result");
|
|
13
14
|
const [docTotals, setDocTotals] = useState(0);
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setActiveKey("Result");
|
|
16
|
-
}, [id]);
|
|
17
15
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
18
16
|
Total: true,
|
|
19
17
|
List: false,
|
|
20
18
|
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: id }],
|
|
21
19
|
});
|
|
22
|
-
return observe(() => (React.createElement(
|
|
20
|
+
return observe(() => (React.createElement(DocumentTabs, { id: id, active: activeKey, actionPlan: false, onChange: (key) => setActiveKey(key), tabItems: report
|
|
23
21
|
? [
|
|
24
22
|
{ key: "Result", label: "Result", children: React.createElement(RiskMatchResult, { id: id }) },
|
|
25
23
|
{ key: "Report", label: "Report", children: React.createElement(RiskMatchReport, { id: id }) },
|
|
@@ -33,7 +31,7 @@ const RiskMatchTabs = (props) => {
|
|
|
33
31
|
{
|
|
34
32
|
key: "Activities",
|
|
35
33
|
label: "Activities",
|
|
36
|
-
children:
|
|
34
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
|
37
35
|
},
|
|
38
36
|
]
|
|
39
37
|
: [
|
|
@@ -48,16 +46,9 @@ const RiskMatchTabs = (props) => {
|
|
|
48
46
|
{
|
|
49
47
|
key: "Activities",
|
|
50
48
|
label: "Activities",
|
|
51
|
-
children:
|
|
49
|
+
children: React.createElement(React.Fragment, null, activeKey === "Activities" ? React.createElement(ActivityLog, { id: id }) : null),
|
|
52
50
|
},
|
|
53
51
|
] })));
|
|
54
|
-
/**切换面板的回调*/
|
|
55
|
-
function onChange(activeKey) {
|
|
56
|
-
setActiveKey(activeKey);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
RiskMatchTabs.defaultProps = {
|
|
60
|
-
report: true,
|
|
61
52
|
};
|
|
62
53
|
export default RiskMatchTabs;
|
|
63
54
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/background-investigation/risk-match/components/RiskMatchTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,eAAe,MAAM,oBAAoB,CAAC;AACjD,OAAO,eAAe,MAAM,oBAAoB,CAAC;AAEjD,MAAM,aAAa,GAAG,CAAC,KAAuC,EAAE,EAAE;IACjE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAC7B,2BAA2B;IAC3B,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,QAAQ,CAAC,CAAC;IACrD,MAAM,CAAC,SAAS,EAAE,YAAY,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;IAE9C,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,CAAC,EAAE,CAAC,EAAE,cAAc,EAAE,CAAC,EAAE,G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AAU;oBACf,KAAK,EAAE,CACN;;wBAEC,oBAAC,KAAK,IAAC,KAAK,EAAE,SAAS,EAAE,SAAS,EAAC,gBAAgB,GAAG,CACpD,CACH;oBACD,QAAQ,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,GAAI;iBACzE;gBACD;oBACC,GAAG,EAAE,YAAY;oBACjB,KAAK,EAAE,YAAY;oBACnB,QAAQ,EAAE,0CAAG,SAAS,KAAK,YAAY,CAAC,CAAC,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;iBAC5E;aACA,GAEJ,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,24 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
|
+
import { Badge, Skeleton } from "antd";
|
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
4
|
import { useRiskProfile } from "../../../../../../data/risk-profile";
|
|
3
|
-
import
|
|
5
|
+
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
4
6
|
import { SendFormContext, SendFormContextData, } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
|
5
7
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
8
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
9
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
7
10
|
import RelatedProfileList from "../RelatedProfileList";
|
|
8
11
|
import RiskMatchList from "../../../risk-match/components/RiskMatchList";
|
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
|
10
|
-
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
11
12
|
const RiskProfileTabs = (props) => {
|
|
12
13
|
var _a;
|
|
13
14
|
const { id, properties } = props;
|
|
14
15
|
const riskProfile = useRiskProfile(id);
|
|
15
16
|
const openType = useMemo(() => new SendFormContextData("Dialog"), []);
|
|
16
17
|
const [docTotals, setDocTotals] = useState(0);
|
|
17
|
-
|
|
18
|
-
const [activeKey, setActiveKey] = useState("");
|
|
19
|
-
useEffect(() => {
|
|
20
|
-
setActiveKey(properties ? "Properties" : "Matches");
|
|
21
|
-
}, [id]);
|
|
18
|
+
const [activeKey, setActiveKey] = useState(properties ? "Properties" : "Matches");
|
|
22
19
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
23
20
|
Total: true,
|
|
24
21
|
List: false,
|
|
@@ -59,11 +56,7 @@ const RiskProfileTabs = (props) => {
|
|
|
59
56
|
properties && items.unshift({ key: "Properties", label: "Properties", children: properties });
|
|
60
57
|
return observe(() => (React.createElement(Skeleton, { active: true, loading: !riskProfile.loaded },
|
|
61
58
|
React.createElement(SendFormContext.Provider, { value: openType },
|
|
62
|
-
React.createElement(
|
|
63
|
-
/**切换面板的回调*/
|
|
64
|
-
function onChange(activeKey) {
|
|
65
|
-
setActiveKey(activeKey);
|
|
66
|
-
}
|
|
59
|
+
React.createElement(DocumentTabs, { id: id, active: activeKey, actionPlan: false, onChange: (key) => setActiveKey(key), tabItems: items })))));
|
|
67
60
|
};
|
|
68
61
|
export default RiskProfileTabs;
|
|
69
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -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,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,EA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AAK,EAAE,YAAY,EAAE,QAAQ,EAAE,UAAU,EAAE,CAAC,CAAC;IAE9F,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,WAAW,CAAC,MAAM;QAC5C,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ;YACxC,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,SAAS,EACjB,UAAU,EAAE,KAAK,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"}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
import React, {
|
|
2
|
-
import { Badge, Skeleton
|
|
1
|
+
import React, { useState } from "react";
|
|
2
|
+
import { Badge, Skeleton } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useCorporate } from "../../../../../data/corporate";
|
|
5
5
|
import { useDocumentListEffect } from "@voplus/morpho-document-core";
|
|
6
6
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
7
8
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
|
8
9
|
const CorporateTabs = (props) => {
|
|
9
10
|
const { id, details } = props;
|
|
10
11
|
const [docTotals, setDocTotals] = useState(0);
|
|
11
12
|
const corporate = useCorporate(id);
|
|
12
13
|
/**Tabs 当前激活 tab 面板的 key */
|
|
13
|
-
const [activeKey, setActiveKey] = useState("");
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setActiveKey(details ? "Details" : "Document");
|
|
16
|
-
}, [id]);
|
|
14
|
+
const [activeKey, setActiveKey] = useState(details ? "Details" : "Document");
|
|
17
15
|
useDocumentListEffect(null, (result, total) => setDocTotals(total || 0), {
|
|
18
16
|
Total: true,
|
|
19
17
|
List: false,
|
|
@@ -34,12 +32,11 @@ const CorporateTabs = (props) => {
|
|
|
34
32
|
},
|
|
35
33
|
];
|
|
36
34
|
details && items.unshift({ key: "Details", label: "Details", children: details });
|
|
37
|
-
return observe(() =>
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
35
|
+
return observe(() => {
|
|
36
|
+
var _a;
|
|
37
|
+
return (React.createElement(Skeleton, { active: true, loading: !corporate.loaded },
|
|
38
|
+
React.createElement(DocumentTabs, { id: id, active: activeKey, onChange: (key) => setActiveKey(key), actionPlan: !!((_a = corporate.flags) === null || _a === void 0 ? void 0 : _a.includes("ActionPlan")), tabItems: items })));
|
|
39
|
+
});
|
|
43
40
|
};
|
|
44
41
|
export default CorporateTabs;
|
|
45
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/components/CorporateTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,Y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AAE,EAAE,GAAI,CAAC,CAAC,CAAC,IAAI,CAAI;SAC5E;KACD,CAAC;IAEF,OAAO,IAAI,KAAK,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;IAElF,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,SAAS,CAAC,MAAM;YAC1C,oBAAC,YAAY,IACZ,EAAE,EAAE,EAAE,EACN,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,YAAY,CAAC,GAAG,CAAC,EACpC,UAAU,EAAE,CAAC,CAAC,CAAA,MAAA,SAAS,CAAC,KAAK,0CAAE,QAAQ,CAAC,YAAY,CAAC,CAAA,EACrD,QAAQ,EAAE,KAAK,GACd,CACQ,CACX,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IShare, CorporateStore } from "../../../../../data/corporate";
|
|
2
2
|
export declare class State {
|
|
3
|
-
private
|
|
3
|
+
private corporateId;
|
|
4
4
|
private store;
|
|
5
5
|
shares: IShare;
|
|
6
6
|
loading: boolean;
|
|
7
7
|
color: string[];
|
|
8
8
|
capitalCurrency?: string;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(corporateId: string, store: CorporateStore);
|
|
10
10
|
update(): Promise<void>;
|
|
11
11
|
get capital(): {
|
|
12
12
|
key: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { makeObservable, observable, action, computed } from "mobx";
|
|
3
3
|
export class State {
|
|
4
|
-
constructor(
|
|
5
|
-
Object.defineProperty(this, "
|
|
4
|
+
constructor(corporateId, store) {
|
|
5
|
+
Object.defineProperty(this, "corporateId", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
configurable: true,
|
|
8
8
|
writable: true,
|
|
9
|
-
value:
|
|
9
|
+
value: corporateId
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(this, "store", {
|
|
12
12
|
enumerable: true,
|
|
@@ -53,7 +53,7 @@ export class State {
|
|
|
53
53
|
async update() {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
this.loading = true;
|
|
56
|
-
this.shares = await this.store.shares(this.
|
|
56
|
+
this.shares = await this.store.shares(this.corporateId);
|
|
57
57
|
this.capitalCurrency = (_b = (_a = this.shares) === null || _a === void 0 ? void 0 : _a.capital[0]) === null || _b === void 0 ? void 0 : _b.currency;
|
|
58
58
|
this.loading = false;
|
|
59
59
|
}
|
|
@@ -8,12 +8,12 @@ import SharesCardItem from "./SharesCardItem";
|
|
|
8
8
|
import Capital from "./Capital";
|
|
9
9
|
import "./index.less";
|
|
10
10
|
const SharesCard = (props) => {
|
|
11
|
-
const {
|
|
11
|
+
const { corporateId } = props;
|
|
12
12
|
const store = useCorporateStore();
|
|
13
|
-
const [state] = useState(new State(
|
|
13
|
+
const [state] = useState(new State(corporateId, store));
|
|
14
14
|
useEffect(() => {
|
|
15
15
|
state.update();
|
|
16
|
-
}, [
|
|
16
|
+
}, [corporateId]);
|
|
17
17
|
return observe(() => {
|
|
18
18
|
var _a, _b;
|
|
19
19
|
return (React.createElement(ListCard, { style: { height: "auto" } },
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { IShare, CorporateStore } from "../../../../../data/corporate";
|
|
2
2
|
export declare class State {
|
|
3
|
-
private
|
|
3
|
+
private corporateId;
|
|
4
4
|
private store;
|
|
5
5
|
shares: IShare;
|
|
6
6
|
loading: boolean;
|
|
7
|
-
constructor(
|
|
7
|
+
constructor(corporateId: string, store: CorporateStore);
|
|
8
8
|
update(): Promise<void>;
|
|
9
9
|
get capital(): {
|
|
10
10
|
key: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { makeObservable, observable, action, computed } from "mobx";
|
|
3
3
|
export class State {
|
|
4
|
-
constructor(
|
|
5
|
-
Object.defineProperty(this, "
|
|
4
|
+
constructor(corporateId, store) {
|
|
5
|
+
Object.defineProperty(this, "corporateId", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
configurable: true,
|
|
8
8
|
writable: true,
|
|
9
|
-
value:
|
|
9
|
+
value: corporateId
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(this, "store", {
|
|
12
12
|
enumerable: true,
|
|
@@ -30,7 +30,7 @@ export class State {
|
|
|
30
30
|
}
|
|
31
31
|
async update() {
|
|
32
32
|
this.loading = true;
|
|
33
|
-
this.shares = await this.store.shares(this.
|
|
33
|
+
this.shares = await this.store.shares(this.corporateId);
|
|
34
34
|
this.loading = false;
|
|
35
35
|
}
|
|
36
36
|
get capital() {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { IShare, CorporateStore } from "../../../../../data/corporate";
|
|
2
2
|
export declare class State {
|
|
3
|
-
private
|
|
3
|
+
private corporateId;
|
|
4
4
|
private store;
|
|
5
5
|
shares: IShare;
|
|
6
6
|
loading: boolean;
|
|
7
7
|
color: string[];
|
|
8
8
|
capitalCurrency?: string;
|
|
9
|
-
constructor(
|
|
9
|
+
constructor(corporateId: string, store: CorporateStore);
|
|
10
10
|
update(): Promise<void>;
|
|
11
11
|
get capital(): {
|
|
12
12
|
key: number;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { __decorate } from "tslib";
|
|
2
2
|
import { makeObservable, observable, action, computed } from "mobx";
|
|
3
3
|
export class State {
|
|
4
|
-
constructor(
|
|
5
|
-
Object.defineProperty(this, "
|
|
4
|
+
constructor(corporateId, store) {
|
|
5
|
+
Object.defineProperty(this, "corporateId", {
|
|
6
6
|
enumerable: true,
|
|
7
7
|
configurable: true,
|
|
8
8
|
writable: true,
|
|
9
|
-
value:
|
|
9
|
+
value: corporateId
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(this, "store", {
|
|
12
12
|
enumerable: true,
|
|
@@ -53,7 +53,7 @@ export class State {
|
|
|
53
53
|
async update() {
|
|
54
54
|
var _a, _b;
|
|
55
55
|
this.loading = true;
|
|
56
|
-
this.shares = await this.store.shares(this.
|
|
56
|
+
this.shares = await this.store.shares(this.corporateId);
|
|
57
57
|
this.capitalCurrency = (_b = (_a = this.shares) === null || _a === void 0 ? void 0 : _a.capital[0]) === null || _b === void 0 ? void 0 : _b.currency;
|
|
58
58
|
this.loading = false;
|
|
59
59
|
}
|
|
@@ -2,10 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
3
3
|
import { observe, MenuTitle } from "@voplus/morpho-ui";
|
|
4
4
|
import { Access, Open, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
5
|
-
import { faAddressCardRegular, faChartUserRegular, faPanelEwsRegular } from "@voplus/morpho-ui/es/faIcons";
|
|
5
|
+
import { faAddressCardRegular, faChartUserRegular, faPanelEwsRegular, } from "@voplus/morpho-ui/es/faIcons";
|
|
6
6
|
import { useCorporate, useCorporateStore } from "../../../../../data/corporate";
|
|
7
7
|
import SubPasteContactMenu from "@voplus/morpho-org/es/controls/ToolBar/SubPasteContactMenu";
|
|
8
8
|
import SubPasteNodeMenu from "@voplus/morpho-org/es/controls/ToolBar/SubPasteNodeMenu";
|
|
9
|
+
import ActionPlanGroup from "@voplus/morpho-org/es/controls/NodeMenu/ActionPlanGroup";
|
|
9
10
|
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
10
11
|
import Routes from "../../../../../routes";
|
|
11
12
|
import Disabled from "./items/Disabled";
|
|
@@ -13,11 +14,12 @@ const CorporateMenu = (props) => {
|
|
|
13
14
|
const { user } = useApplicationContext();
|
|
14
15
|
const corp = useCorporate(props.id, { reload: (i) => !i.p, includes: "permissions" });
|
|
15
16
|
const store = useCorporateStore();
|
|
16
|
-
return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: props.icon, menus: React.createElement(React.Fragment, null,
|
|
17
|
+
return observe(() => (React.createElement(NodeMenu, { id: props.id, icon: props.icon, store: store, menus: React.createElement(React.Fragment, null,
|
|
17
18
|
React.createElement(MenuTitle, { title: "Corporate Menu" }),
|
|
18
19
|
React.createElement(SubPasteNodeMenu, null),
|
|
19
20
|
React.createElement(Disabled, { disabled: true, action: () => onChangeStatus("Disabled") }),
|
|
20
21
|
React.createElement(Access, { disabled: !user.can("view", corp.p, { asset: "Access" }) }),
|
|
22
|
+
React.createElement(ActionPlanGroup, null),
|
|
21
23
|
React.createElement(Delete, { action: onDelete }),
|
|
22
24
|
React.createElement(MenuTitle, { title: "Contact Menu" }),
|
|
23
25
|
React.createElement(SubPasteContactMenu, { unitId: props.id }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/company/controls/CorporateMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACrF,OAAO,EACN,oB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
1
|
import React from "react";
|
|
2
2
|
import { FilterOption } from "@voplus/morpho-data";
|
|
3
|
-
import {
|
|
3
|
+
import { IFilingRecord } from "../../../../../data/filing-record";
|
|
4
4
|
import "./index.less";
|
|
5
5
|
export type FilingListProps = {
|
|
6
6
|
/** Secretary Center id */
|
|
@@ -20,7 +20,7 @@ export type FilingListProps = {
|
|
|
20
20
|
/** Call back when received total number of tax. */
|
|
21
21
|
onTotal?: (total: number) => void;
|
|
22
22
|
onAdd?: () => void;
|
|
23
|
-
onClickItem?: (item:
|
|
23
|
+
onClickItem?: (item: IFilingRecord) => void;
|
|
24
24
|
};
|
|
25
25
|
declare const FilingList: {
|
|
26
26
|
(props: FilingListProps): React.JSX.Element;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFilingRecord } from "../../../../../data/filing-record";
|
|
2
2
|
export declare class State {
|
|
3
3
|
constructor();
|
|
4
4
|
/** 日期 月份 分类 */
|
|
5
|
-
dateList:
|
|
6
|
-
groupByMonth(items:
|
|
7
|
-
monthList(data:
|
|
5
|
+
dateList: IFilingRecord[];
|
|
6
|
+
groupByMonth(items: IFilingRecord[]): any;
|
|
7
|
+
monthList(data: IFilingRecord[]): {
|
|
8
8
|
name: string;
|
|
9
|
-
items:
|
|
9
|
+
items: IFilingRecord[];
|
|
10
10
|
}[];
|
|
11
11
|
}
|