@voplus/morpho-csp 6.1.52 → 6.1.54
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/CorporateMentionList/index.js +1 -1
- package/es/components/CorporateMentionList/index.js.map +1 -1
- package/es/data/corporate/hooks.d.ts +3 -1
- package/es/data/corporate/hooks.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.js +8 -3
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js +8 -2
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js +5 -3
- package/es/modules/corporate/background-investigation/risk-match/pages/RiskMatchDefaultView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.js +10 -2
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfilePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js +9 -2
- package/es/modules/corporate/background-investigation/risk-profile/components/RiskProfileQuickView/index.js.map +1 -1
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js +7 -3
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js +9 -4
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js +17 -13
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js +10 -2
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporateTableList/index.js +3 -2
- package/es/modules/corporate/company/components/CorporateTableList/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +9 -2
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerTableList/index.less +0 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +9 -3
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +9 -2
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js +20 -11
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/MemberTableListCard/index.less +0 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +9 -3
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js +9 -2
- package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js +11 -3
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/components/OfficerTableListCard/index.less +0 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +9 -3
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js +8 -3
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js +8 -4
- package/es/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.js +12 -3
- package/es/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js +12 -3
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js +9 -2
- package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js +6 -4
- package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearCard/index.less +0 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearPropertiesView/index.js +12 -3
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js +11 -3
- package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js +7 -2
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js +7 -2
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +9 -2
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +7 -3
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +37 -32
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.d.ts +1 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.js +9 -0
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +6 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassPropertiesView/index.js +12 -3
- package/es/modules/corporate/share-class/components/ShareClassPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/share-class/components/ShareClassQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js +11 -3
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js +12 -3
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js +7 -3
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.js +12 -3
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.js +8 -2
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js +10 -3
- package/es/modules/corporate/virtual-address-mail/pages/VirtualAddressMailDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js +8 -3
- package/es/modules/self-registration/clda-form/components/CLDAFormPropertiesView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.js +8 -2
- package/es/modules/self-registration/clda-form/components/CLDAFormQuickViewDialog/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js +6 -3
- package/es/modules/self-registration/clda-form/pages/CLDAFormClientView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +7 -3
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.js +7 -3
- package/es/modules/self-registration/incorporation-clda/pages/CLDADefaultView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js +33 -28
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,14 +1,20 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
4
4
|
import { Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
5
5
|
import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
6
6
|
import IdentityMenu from "../../controls/IdentityMenu";
|
|
7
7
|
import IdentityInformation from "../IdentityInformation";
|
|
8
|
+
import { useIdentity } from "../../../../../../data/identity";
|
|
8
9
|
import styles from "./index.less";
|
|
9
10
|
const IdentifyQuickViewDialog = (props) => {
|
|
10
11
|
const { identityId, identityName } = props;
|
|
11
|
-
|
|
12
|
+
const [error, setError] = useState(null);
|
|
13
|
+
const identity = useIdentity(identityId, { onError: (e) => setError(e) });
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
setError(null);
|
|
16
|
+
}, [identityId]);
|
|
17
|
+
return observe(() => (React.createElement(QuickViewDialog, { id: props.identityId, visible: props.visible, onCancel: props.onCancel, error: error, header: React.createElement("div", { className: styles["identify-quickView-dialog-header"] },
|
|
12
18
|
React.createElement("div", { className: "identify-quickView-title" }, `${identityName} Identity`),
|
|
13
19
|
React.createElement("div", { className: "tools-bar" },
|
|
14
20
|
React.createElement(ToolBar, { id: props.identityId, showMenu: false },
|
package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO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C,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,QAAQ,GAAI;oBACjC,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,UAAU,EAAE,IAAI,EAAC,QAAQ,GAAG,CAC3C,CACL,CACD,EAEP,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,6BAAK,SAAS,EAAE,MAAM,CAAC,mCAAmC,CAAC;YAC1D,oBAAC,mBAAmB,IAAC,EAAE,EAAE,UAAU,GAAI,CAClC,CACW,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
+
import { useMember } from "../../../../../../data/member";
|
|
4
|
+
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
3
5
|
import { observe } from "@voplus/morpho-ui";
|
|
4
6
|
import CompanyMemberHead from "../CompanyMemberHead";
|
|
5
7
|
import CompanyMemberTabs from "../CompanyMemberTabs";
|
|
@@ -7,8 +9,13 @@ import "./index.less";
|
|
|
7
9
|
const CompanyMemberPropertiesView = (props) => {
|
|
8
10
|
const { id } = props;
|
|
9
11
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
12
|
+
const [error, setError] = useState(null);
|
|
13
|
+
const member = useMember(id, { onError: (e) => setError(e) });
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
setError(null);
|
|
16
|
+
}, [id]);
|
|
10
17
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
-
React.createElement(
|
|
18
|
+
React.createElement(PropertiesView, { className: "member-properties-view-content", error: error },
|
|
12
19
|
React.createElement(CompanyMemberHead, { id: id, open: true, close: true }),
|
|
13
20
|
React.createElement(CompanyMemberTabs, { id: id, properties: true })))));
|
|
14
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,cAAc,MAAM,uDAAuD,CAAC;AACnF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,CAAC;AAEtB,MAAM,2BAA2B,GAAG,CAAC,KAKpC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IACjE,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,SAAS,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAE9D,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,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,cAAc,IAAC,SAAS,EAAC,gCAAgC,EAAC,KAAK,EAAE,KAAK;YACtE,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,QAAC,KAAK,SAAG;YACxC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACxB,CACK,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { Skeleton } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
@@ -10,18 +10,27 @@ import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuick
|
|
|
10
10
|
import MemberShareTransactions from "../MemberShareTransactions";
|
|
11
11
|
import "./index.less";
|
|
12
12
|
const CompanyMemberQuickView = (props) => {
|
|
13
|
+
const { id } = props;
|
|
13
14
|
const { user } = useApplicationContext();
|
|
14
|
-
const
|
|
15
|
+
const [error, setError] = useState(null);
|
|
16
|
+
const member = useMember(props.id, {
|
|
17
|
+
reload: true,
|
|
18
|
+
includes: "permissions",
|
|
19
|
+
onError: (e) => setError(e),
|
|
20
|
+
});
|
|
15
21
|
const store = useMemberStore();
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setError(null);
|
|
24
|
+
}, [id]);
|
|
25
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "company-member-quick-view", header: React.createElement(CompanyMemberHead, { register: member, store: store, accessDisabled: !user.can("view", member.p, { asset: "Access" }), openUrl: `/member/${props.id}`, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
26
|
+
{
|
|
27
|
+
name: "Shares",
|
|
28
|
+
icon: faCircleQuarterStroke,
|
|
29
|
+
title: "Shares",
|
|
30
|
+
detail: React.createElement(MemberShareTransactions, { id: props.id }),
|
|
31
|
+
},
|
|
32
|
+
] },
|
|
33
|
+
React.createElement(Skeleton, { active: true, loading: !member.loaded },
|
|
25
34
|
React.createElement(CompanyMemberProperties, { id: props.id })))));
|
|
26
35
|
};
|
|
27
36
|
export default CompanyMemberQuickView;
|
package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAA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K,CAAC,QAAQ,GACtB,EAEH,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1D,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,qBAAqB;gBAC3B,KAAK,EAAE,QAAQ;gBACf,MAAM,EAAE,oBAAC,uBAAuB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;aACjD;SACD;QAED,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM;YACvC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAC/B,CACM,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
|
@@ -19,16 +19,22 @@ const CompanyMemberDefaultView = () => {
|
|
|
19
19
|
const { id } = useParams();
|
|
20
20
|
const { user } = useApplicationContext();
|
|
21
21
|
const [packUp, setPackUp] = useState(false);
|
|
22
|
+
const [error, setError] = useState(null);
|
|
22
23
|
const tab = useTabItem();
|
|
23
24
|
const store = useMemberStore();
|
|
24
25
|
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
25
|
-
const member = useMember(id, {
|
|
26
|
+
const member = useMember(id, {
|
|
27
|
+
reload: true,
|
|
28
|
+
includes: "tags,permissions,shares",
|
|
29
|
+
onError: (e) => setError(e),
|
|
30
|
+
});
|
|
26
31
|
useEffect(() => {
|
|
27
32
|
tab.title = "Member";
|
|
28
|
-
|
|
33
|
+
setError(null);
|
|
34
|
+
}, [id]);
|
|
29
35
|
return observe(() => {
|
|
30
36
|
var _a;
|
|
31
|
-
return (React.createElement(DefaultViewLayout, { className: "company-member-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUsers }), title: member.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Track member activity, status, and key details in one place.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
37
|
+
return (React.createElement(DefaultViewLayout, { className: "company-member-default-view", error: error, header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUsers }), title: member.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Track member activity, status, and key details in one place.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
32
38
|
React.createElement(Space, { className: "menu-buttons" },
|
|
33
39
|
React.createElement(Access, { disabled: !user.can("view", member.p, { asset: "Access" }) }))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
34
40
|
React.createElement(CompanyMemberMenu, { id: id, title: "Member Menu", unitId: (_a = member.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: (unitId) => store.edit(id, {
|
package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,uBAAuB,MAAM,0CAA0C,CAAC;AAC/E,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,iBAAiB,MAAM,uCAAuC,CAAC;AACtE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,cAAc,CAAC;AAEtB,MAAM,wBAAwB,GAAG,GAAG,EAAE;IACrC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAA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,QAAQ,CAAC,GAClC,CACO,GAEV,EAEH,UAAU,EACT,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,MAAM,CAAC,MAAM;gBAChC,oBAAC,uBAAuB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CACxC;YAGZ,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,GAAI,CACX,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js
CHANGED
|
@@ -1,14 +1,21 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
+
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
4
|
+
import { useOfficer } from "../../../../../../data/officer";
|
|
3
5
|
import { observe } from "@voplus/morpho-ui";
|
|
4
6
|
import OfficerHead from "../OfficerHead";
|
|
5
7
|
import OfficerTabs from "../OfficerTabs";
|
|
6
8
|
import "./index.less";
|
|
7
9
|
const OfficerPropertiesView = (props) => {
|
|
8
10
|
const { id } = props;
|
|
11
|
+
const [error, setError] = useState(null);
|
|
9
12
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
13
|
+
const officer = useOfficer(props.id, { onError: (e) => setError(e) });
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
setError(null);
|
|
16
|
+
}, [id]);
|
|
10
17
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
|
-
React.createElement(
|
|
18
|
+
React.createElement(PropertiesView, { className: "officer-properties-view-content", error: error },
|
|
12
19
|
React.createElement(OfficerHead, { id: id, open: true, close: true }),
|
|
13
20
|
React.createElement(OfficerTabs, { id: id, properties: true })))));
|
|
14
21
|
};
|
package/es/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,cAAc,MAAM,uDAAuD,CAAC;AACnF,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC;IAEjE,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAEtE,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,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,cAAc,IAAC,SAAS,EAAC,iCAAiC,EAAC,KAAK,EAAE,KAAK;YACvE,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,IAAI,QAAC,KAAK,SAAG;YAClC,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAClB,CACK,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { Skeleton } from "antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useApplicationContext } from "@voplus/morpho-data";
|
|
@@ -9,10 +9,18 @@ import OfficerProperties from "../OfficerProperties";
|
|
|
9
9
|
import "./index.less";
|
|
10
10
|
const OfficerQuickView = (props) => {
|
|
11
11
|
const { user } = useApplicationContext();
|
|
12
|
-
const
|
|
12
|
+
const [error, setError] = useState(null);
|
|
13
|
+
const officer = useOfficer(props.id, {
|
|
14
|
+
reload: true,
|
|
15
|
+
includes: "permissions",
|
|
16
|
+
onError: (e) => setError(e),
|
|
17
|
+
});
|
|
13
18
|
const store = useOfficerStore();
|
|
19
|
+
useEffect(() => {
|
|
20
|
+
setError(null);
|
|
21
|
+
}, [props.id]);
|
|
14
22
|
return observe(() => (React.createElement(Skeleton, { active: true, loading: !officer.loaded },
|
|
15
|
-
React.createElement(QuickViewDialog, { ...props, className: "company-officer-quick-view", header: React.createElement(OfficerHead, { register: officer, store: store, accessDisabled: !user.can("view", officer.p, { asset: "Access" }), openUrl: `/officer/${props.id}`, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
23
|
+
React.createElement(QuickViewDialog, { ...props, error: error, className: "company-officer-quick-view", header: React.createElement(OfficerHead, { register: officer, store: store, accessDisabled: !user.can("view", officer.p, { asset: "Access" }), openUrl: `/officer/${props.id}`, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
16
24
|
React.createElement(OfficerProperties, { id: props.id })))));
|
|
17
25
|
};
|
|
18
26
|
export default OfficerQuickView;
|
package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/components/OfficerQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,WAAW,MAAM,yCAAyC,CAAC;AAClE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAC5F,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IACzC,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,OAAO,GAAG,UAAU,CAAC,KAAK,CAAC,EAAE,EAAE;QACpC,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,aAAa;QACvB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC3B,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,eAAe,EAAE,CAAC;IAEhC,SAAS,CAAC,GAAG,EAAE;QACd,QAAQ,CAAC,IAAI,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAEf,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;QACxC,oBAAC,eAAe,OACX,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,SAAS,EAAC,4BAA4B,EACtC,MAAM,EACL,oBAAC,WAAW,IACX,QAAQ,EAAE,OAAO,EACjB,KAAK,EAAE,KAAK,EACZ,cAAc,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,EACjE,OAAO,EAAE,YAAY,KAAK,CAAC,EAAE,EAAE,EAC/B,KAAK,QACL,OAAO,EAAE,KAAK,CAAC,QAAQ,GACtB,EAEH,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;YAE1D,oBAAC,iBAAiB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CAClB,CACR,CACX,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -19,16 +19,22 @@ const OfficerDefaultView = () => {
|
|
|
19
19
|
const { id } = useParams();
|
|
20
20
|
const { user } = useApplicationContext();
|
|
21
21
|
const [packUp, setPackUp] = useState(false);
|
|
22
|
+
const [error, setError] = useState(null);
|
|
22
23
|
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
23
24
|
const tab = useTabItem();
|
|
24
25
|
const store = useOfficerStore();
|
|
25
|
-
const officer = useOfficer(id, {
|
|
26
|
+
const officer = useOfficer(id, {
|
|
27
|
+
reload: true,
|
|
28
|
+
includes: "tags,permissions",
|
|
29
|
+
onError: (e) => setError(e),
|
|
30
|
+
});
|
|
26
31
|
useEffect(() => {
|
|
27
32
|
tab.title = "Officer";
|
|
28
|
-
|
|
33
|
+
setError(null);
|
|
34
|
+
}, [id]);
|
|
29
35
|
return observe(() => {
|
|
30
36
|
var _a;
|
|
31
|
-
return (React.createElement(DefaultViewLayout, { className: "officer-default-view", header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUserTag }), title: officer.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Streamline officer updates and shareholder reporting.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
37
|
+
return (React.createElement(DefaultViewLayout, { className: "officer-default-view", error: error, header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faUserTag }), title: officer.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Streamline officer updates and shareholder reporting.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
32
38
|
React.createElement(Space, { className: "menu-buttons" },
|
|
33
39
|
React.createElement(Access, { disabled: !user.can("view", officer.p, { asset: "Access" }) }))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
34
40
|
React.createElement(CompanyOfficerMenu, { id: id, title: "Officer Menu", unitId: (_a = officer.contact) === null || _a === void 0 ? void 0 : _a.id, store: store, closeAside: true, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), onChangeContact: (unitId) => store.edit(id, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/OfficerDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,iBAAiB,MAAM,oCAAoC,CAAC;AACnE,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,kBAAkB,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,MAAM,+CAA+C,CAAC;AAC/F,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/officer-register/page/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IAAC,EAAE,EAAE,EAAG,EAAE,IAAI,EAAE,KAAK;oBAC5B,oBAAC,kBAAkB,IAClB,EAAE,EAAE,EAAG,EACP,KAAK,EAAC,cAAc,EACpB,MAAM,EAAE,MAAA,OAAO,CAAC,OAAO,0CAAE,EAAE,EAC3B,KAAK,EAAE,KAAK,EACZ,UAAU,QACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAC1C,eAAe,EAAE,CAAC,MAAM,EAAE,EAAE,CAC3B,KAAK,CAAC,IAAI,CAAC,EAAG,EAAE;4BACf,IAAI,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE;4BAC3B,KAAK,EAAE,SAAS;yBAChB,CAAC,EAEH,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAClC,CACO,GAEV,EAEH,UAAU,EACT,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;gBACjC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAG,EAAE,aAAa,SAAG,CAClC;YAGZ,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAG,GAAI,CACL,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
import React, { useMemo, useState } from "react";
|
|
1
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
5
5
|
import ShareTransactionTabs from "../ShareTransactionTabs";
|
|
6
|
+
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
6
7
|
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
7
8
|
import { getTransactionTypeConfig } from "../ShareTransactionTableList/Item/ItemHeader";
|
|
8
9
|
import "./index.less";
|
|
9
10
|
const ShareTransactionPropertiesView = (props) => {
|
|
10
11
|
const { id } = props;
|
|
11
12
|
const [loaded, setLoaded] = useState(true);
|
|
13
|
+
const [error, setError] = useState(null);
|
|
12
14
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
13
|
-
const shareTransaction = useShareTransaction(id);
|
|
15
|
+
const shareTransaction = useShareTransaction(id, { onError: (e) => setError(e) });
|
|
14
16
|
const typeConfig = getTransactionTypeConfig(shareTransaction.transactionType);
|
|
15
|
-
|
|
17
|
+
useEffect(() => {
|
|
18
|
+
setError(null);
|
|
19
|
+
}, [id]);
|
|
20
|
+
return observe(() => (React.createElement(PropertiesView, { className: "share-transaction-properties-view", error: error }, loaded && (React.createElement(ViewContext.Provider, { value: view },
|
|
16
21
|
React.createElement(PropertiesPanelHeader, { id: id, icon: typeConfig.icon, iconBgClass: typeConfig.bgClass, identityVisible: true }),
|
|
17
22
|
React.createElement(ShareTransactionTabs, { id: id, properties: true }))))));
|
|
18
23
|
function reload() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,C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,WAAW,EAAE,UAAU,CAAC,OAAO,EAC/B,eAAe,EAAE,IAAI,GACpB;QACF,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACrB,CACvB,CACe,CACjB,CAAC,CAAC;IACH,SAAS,MAAM;QACd,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -1,10 +1,16 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import { useShareTransaction } from "../../../../../../data/share-transaction";
|
|
3
4
|
import DocumentQuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
4
5
|
import ShareTransactionProperties from "../ShareTransactionProperties";
|
|
5
6
|
const ShareTransactionQuickViewDialog = (props) => {
|
|
6
7
|
const { id } = props;
|
|
7
|
-
|
|
8
|
+
const [error, setError] = useState(null);
|
|
9
|
+
const shareTransaction = useShareTransaction(id, { onError: (e) => setError(e) });
|
|
10
|
+
useEffect(() => {
|
|
11
|
+
setError(null);
|
|
12
|
+
}, [id]);
|
|
13
|
+
return observe(() => (React.createElement(DocumentQuickViewDialog, { ...props, error: error, subButtons: [{ name: "Document" }, { name: "Activities" }, { name: "Link" }] },
|
|
8
14
|
React.createElement(ShareTransactionProperties, { id: id }))));
|
|
9
15
|
};
|
|
10
16
|
export default ShareTransactionQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/components/ShareTransactionQuickViewDialog/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,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,uBAAuB,MAAM,+DAA+D,CAAC;AACpG,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AAEvE,MAAM,+BAA+B,GAAG,CAAC,KAIxC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAElF,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,uBAAuB,OACnB,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAE5E,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,GAAI,CACb,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,+BAA+B,CAAC"}
|
|
@@ -23,21 +23,25 @@ const ShareTransactionDefaultView = () => {
|
|
|
23
23
|
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
24
24
|
const [context] = useState(() => new ReloadState());
|
|
25
25
|
const [packUp, setPackUp] = useState(false);
|
|
26
|
+
const [error, setError] = useState(null);
|
|
26
27
|
const shareTransaction = useShareTransaction(id, {
|
|
27
28
|
reload: true,
|
|
28
29
|
includes: "member-register,certificates,path",
|
|
30
|
+
onError: (e) => setError(e),
|
|
29
31
|
});
|
|
30
32
|
useEffect(() => {
|
|
31
33
|
tab.title = (shareTransaction === null || shareTransaction === void 0 ? void 0 : shareTransaction.name) || "ShareTransaction";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
setError(null);
|
|
35
|
+
}, [id]);
|
|
36
|
+
return observe(() => (React.createElement(ReloadContext.Provider, { value: context },
|
|
37
|
+
React.createElement(DefaultViewLayout, { className: styles["share-transaction-default-view"], error: error, header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faMoneyBillTransfer }), title: shareTransaction.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Ensure compliance with a detailed record of all share movements.", rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
35
38
|
React.createElement(Space, { className: "menu-buttons" },
|
|
36
39
|
React.createElement(SubPasteDropdown, null),
|
|
37
40
|
React.createElement(Publish, null))), toolMenu: React.createElement(ToolBar, { id: id, moreProps: {
|
|
38
41
|
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
39
42
|
}, blankMenu: packUp ? [] : ["Publish", "Paste"] }) }), properties: React.createElement(ShareTransactionProperties, { id: id }) },
|
|
40
|
-
React.createElement(
|
|
43
|
+
React.createElement(Skeleton, { loading: !shareTransaction.loaded },
|
|
44
|
+
React.createElement(ShareTransactionTabs, { id: id, type: "DefaultView" }))))));
|
|
41
45
|
};
|
|
42
46
|
export default ShareTransactionDefaultView;
|
|
43
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EACN,WAAW,EACX,aAAa,GACb,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC;AACjF,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,iBAAiB,MAAM,0DAA0D,CAAC;AACzF,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,gBAAgB,MAAM,mEAAmE,CAAC;AACjG,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,0EAA0E;AAC1E,MAAM,2BAA2B,GAAG,GAAG,EAAE;IACxC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAE3C,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IACzB,MAAM,WAAW,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,iBAAiB,CAAC,EAAG,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACpE,MAAM,CAAC,OAAO,CAAC,GAAG,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,WAAW,EAAE,CAAC,CAAC;IACpD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,gBAAgB,GAAG,mBAAmB,CAAC,EAAG,EAAE;QACjD,MAAM,EAAE,IAAI;QACZ,QAAQ,EAAE,mCAAmC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/company/share-transactions-register/pages/ShareTransactionDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EACN,WAAW,EACX,aAAa,GACb,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAC3F,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACtF,OAAO,EAAE,OAAO,EAAE,MAAM,wDAAwD,CAAC;AACjF,OAAO,0BAA0B,MAAM,6CAA6C,CAAC;AACrF,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,O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,OAAO;QACrC,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,gCAAgC,CAAC,EACnD,KAAK,EAAE,KAAK,EACZ,MAAM,EACL,oBAAC,iBAAiB,IACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,mBAAmB,GAAI,EACjD,KAAK,EAAE,gBAAgB,CAAC,IAAI,EAC5B,MAAM,QACN,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAC/B,WAAW,EAAC,kEAAkE,EAC9E,UAAU,EACT,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;oBAC/C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;wBAC9B,oBAAC,gBAAgB,OAAG;wBACpB,oBAAC,OAAO,OAAG,CACJ,CACsB,EAEhC,QAAQ,EACP,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;qBAC1C,EACD,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,OAAO,CAAC,GAC5C,GAEF,EAEH,UAAU,EAAE,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAG,GAAI;YAEnD,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,gBAAgB,CAAC,MAAM;gBAC1C,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,EAAE,IAAI,EAAC,aAAa,GAAG,CAC1C,CACQ,CACI,CACzB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
-
import React, { useMemo } from "react";
|
|
3
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
4
|
+
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
4
5
|
import { faScrollOld } from "@fortawesome/pro-solid-svg-icons";
|
|
5
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
7
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
@@ -10,11 +11,19 @@ import FilingRecoreMenu from "../../controls/FilingRecoreMenu";
|
|
|
10
11
|
import FilingRecordTabs from "../FilingRecordTabs";
|
|
11
12
|
const FilingRecordPropertiesView = (props) => {
|
|
12
13
|
const id = props.id;
|
|
13
|
-
const
|
|
14
|
+
const [error, setError] = useState(null);
|
|
15
|
+
const filing = useFilingRecore(id, {
|
|
16
|
+
reload: (i) => !i.tags,
|
|
17
|
+
includes: "tags",
|
|
18
|
+
onError: (e) => setError(e),
|
|
19
|
+
});
|
|
14
20
|
const store = useFilingRecoreStore();
|
|
15
21
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
22
|
+
useEffect(() => {
|
|
23
|
+
setError(null);
|
|
24
|
+
}, [id]);
|
|
16
25
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
17
|
-
React.createElement(
|
|
26
|
+
React.createElement(PropertiesView, { className: "module-detail-view product-properties-view", error: error },
|
|
18
27
|
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faScrollOld }), nodeName: filing.name, url: `/filings/${id}`, identityVisible: true, tagProps: { id: id, items: store.items, tags: filing.tags }, nodeMenu: React.createElement(FilingRecoreMenu, { id: id, closeAside: true }) }),
|
|
19
28
|
React.createElement(FilingRecordTabs, { id: id, properties: true })))));
|
|
20
29
|
};
|
package/es/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,cAAc,MAAM,uDAAuD,CAAC;AACnF,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAC1F,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAC/D,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AAEnD,MAAM,0BAA0B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC/E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,eAAe,CAAC,EAAE,EAAE;QAClC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACtB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC3B,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,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,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,cAAc,IAAC,SAAS,EAAC,4CAA4C,EAAC,KAAK,EAAE,KAAK;YAClF,oBAAC,gBAAgB,IAChB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,EACnC,QAAQ,EAAE,MAAM,CAAC,IAAI,EACrB,GAAG,EAAE,YAAY,EAAE,EAAE,EACrB,eAAe,EAAE,IAAI,EACrB,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,EAC3D,QAAQ,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,GAChD;YACF,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACvB,CACK,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,0BAA0B,CAAC"}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import React from "react";
|
|
1
|
+
import React, { useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import FilingRecordHeader from "../FilingRecordHeader";
|
|
4
4
|
import FilingRecordProperties from "../FilingRecordProperties";
|
|
5
|
+
import { useFilingRecore } from "../../../../../data/filing-record";
|
|
5
6
|
import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
6
7
|
import "./index.less";
|
|
7
8
|
const FilingQuickViewDialog = (props) => {
|
|
8
9
|
const { id } = props;
|
|
9
|
-
|
|
10
|
+
const [error, setError] = useState(null);
|
|
11
|
+
const filing = useFilingRecore(id, { onError: (e) => setError(e) });
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setError(null);
|
|
14
|
+
}, [id]);
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "filing-quick-view", subButtons: [{ name: "Document" }, { name: "Activities" }], header: React.createElement(FilingRecordHeader, { id: id, close: true, onClose: props.onCancel }) },
|
|
10
16
|
React.createElement(FilingRecordProperties, { id: id }))));
|
|
11
17
|
};
|
|
12
18
|
export default FilingQuickViewDialog;
|
package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/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,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,cAAc,CAAC;AAEtB,MAAM,qBAAqB,GAAG,CAAC,KAA+D,EAAE,EAAE;IACjG,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,MAAM,GAAG,eAAe,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,mBAAmB,EAC7B,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1D,MAAM,EAAE,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,QAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI;QAErE,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CACjB,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.js
CHANGED
|
@@ -1,21 +1,30 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState, useEffect } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
4
|
import { faScrollOld } from "@fortawesome/pro-solid-svg-icons";
|
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
6
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
7
7
|
import FilingTypeProperties from "../FilingTypeProperties";
|
|
8
|
+
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
8
9
|
import { useFilingType, useFilingTypeStore } from "../../../../../../data/filing-type";
|
|
9
10
|
import FilingTypeTabs from "../FilingTypeTabs";
|
|
10
11
|
import FilingTypeMenu from "../../controls/FilingTypeMenu";
|
|
11
12
|
/** FilingType PropertiesView */
|
|
12
13
|
const FilingTypePropertiesView = (props) => {
|
|
13
14
|
const id = props.id;
|
|
14
|
-
const
|
|
15
|
+
const [error, setError] = useState(null);
|
|
16
|
+
const filingType = useFilingType(id, {
|
|
17
|
+
reload: (i) => !i.tags,
|
|
18
|
+
includes: "tags",
|
|
19
|
+
onError: (e) => setError(e),
|
|
20
|
+
});
|
|
15
21
|
const store = useFilingTypeStore();
|
|
16
22
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
setError(null);
|
|
25
|
+
}, [id]);
|
|
17
26
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
-
React.createElement(
|
|
27
|
+
React.createElement(PropertiesView, { className: "module-detail-view", error: error },
|
|
19
28
|
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faScrollOld }), nodeName: filingType.name, url: `/filing-types/${id}`, tagProps: { id: id, items: store.items, tags: filingType.tags }, nodeMenu: React.createElement(FilingTypeMenu, { id: id, closeAside: true }) }),
|
|
20
29
|
React.createElement(FilingTypeTabs, { id: props.id, details: React.createElement(FilingTypeProperties, { id: props.id }) })))));
|
|
21
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,gBAAgB,MAAM,mDAAmD,CAAC;AACjF,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,cAAc,MAAM,uDAAuD,CAAC;AACnF,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAE3D,gCAAgC;AAChC,MAAM,wBAAwB,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC1D,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,QAAQ,CAAe,IAAI,CAAC,CAAC;IACvD,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE;QACpC,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACtB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;KAC3B,CAAC,CAAC;IACH,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IACnC,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,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,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,cAAc,IAAC,SAAS,EAAC,oBAAoB,EAAC,KAAK,EAAE,KAAK;YAC1D,oBAAC,gBAAgB,IAChB,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI,EACnC,QAAQ,EAAE,UAAU,CAAC,IAAI,EACzB,GAAG,EAAE,iBAAiB,EAAE,EAAE,EAC1B,QAAQ,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,IAAI,EAAE,UAAU,CAAC,IAAI,EAAE,EAC/D,QAAQ,EAAE,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,GAC9C;YACF,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,GAAI,CACjE,CACK,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import FilingTypeHead from "../FilingTypeHead";
|
|
3
3
|
import FilingTypeProperties from "../FilingTypeProperties";
|
|
4
|
-
import React from "react";
|
|
4
|
+
import React, { useState, useEffect } from "react";
|
|
5
|
+
import { useFilingType } from "../../../../../../data/filing-type";
|
|
5
6
|
import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
6
7
|
import { observe } from "@voplus/morpho-ui";
|
|
7
8
|
const FilingTypeQuickView = (props) => {
|
|
8
|
-
|
|
9
|
+
const { id } = props;
|
|
10
|
+
const [error, setError] = useState(null);
|
|
11
|
+
const filingType = useFilingType(id, { onError: (e) => setError(e) });
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
setError(null);
|
|
14
|
+
}, [id]);
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "filingType-quick-view", header: React.createElement(FilingTypeHead, { id: props.id, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
9
16
|
React.createElement(FilingTypeProperties, { id: props.id }))));
|
|
10
17
|
};
|
|
11
18
|
export default FilingTypeQuickView;
|
package/es/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/components/FilingTypeQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,aAAa,EAAsB,MAAM,oCAAoC,CAAC;AACvF,OAAO,eAAe,MAAM,+DAA+D,CAAC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