@voplus/morpho-csp 6.1.54 → 6.1.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/corporate/background-investigation/risk-match/components/RiskMatchPropertiesView/index.js +5 -8
- 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 +6 -8
- 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 +4 -4
- 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 +5 -8
- 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 +6 -8
- 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 +5 -7
- package/es/modules/corporate/background-investigation/risk-profile/pages/RiskProfileDefaultView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js +5 -8
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js +5 -7
- package/es/modules/corporate/clda/components/CLDAQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js +15 -17
- package/es/modules/corporate/clda/pages/CLDAClientView/index.js.map +1 -1
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js +5 -8
- package/es/modules/corporate/company/components/CorporatePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js +5 -8
- package/es/modules/corporate/company/controller-register/components/ControllerPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js +4 -4
- package/es/modules/corporate/company/controller-register/page/ControllerDefaultView/index.js.map +1 -1
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js +5 -7
- package/es/modules/corporate/company/identity/components/IdentifyQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/components/CompanyMemberPropertiesView/index.js +5 -8
- 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 +5 -7
- package/es/modules/corporate/company/member-register/components/CompanyMemberQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/member-register/page/CompanyMemberDefaultView/index.js +4 -4
- 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 +5 -8
- 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 +5 -7
- package/es/modules/corporate/company/officer-register/components/OfficerQuickView/index.js.map +1 -1
- package/es/modules/corporate/company/officer-register/page/OfficerDefaultView/index.js +4 -4
- 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 +5 -8
- 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 +5 -7
- 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 +4 -5
- 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 +5 -8
- package/es/modules/corporate/filing-record/components/FilingRecordPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/components/FilingRecordQuickViewDialog/index.js +5 -7
- 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 +5 -8
- 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 +5 -7
- 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 +4 -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/FilingYearPropertiesView/index.js +5 -8
- 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 +5 -7
- 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 +5 -7
- 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 +5 -7
- package/es/modules/corporate/filing-record/pages/FilingClientView/index.js.map +1 -1
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js +5 -7
- package/es/modules/corporate/filing-record/pages/FilingDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js +5 -8
- package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js +5 -8
- package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js +34 -33
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.d.ts +0 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.js +0 -9
- package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.js.map +1 -1
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js +4 -6
- package/es/modules/corporate/share-certificate/pages/ShareCertificateDefaultView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassPropertiesView/index.js +5 -8
- package/es/modules/corporate/share-class/components/ShareClassPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/share-class/components/ShareClassQuickViewDialog/index.js +6 -8
- package/es/modules/corporate/share-class/components/ShareClassQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js +5 -7
- package/es/modules/corporate/share-class/pages/ShareClassDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js +5 -8
- package/es/modules/corporate/virtual-address/components/VirtualAddressPropertiesView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js +6 -8
- package/es/modules/corporate/virtual-address/components/VirtualAddressQuickViewDialog/index.js.map +1 -1
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js +5 -7
- package/es/modules/corporate/virtual-address/pages/VirtualAddressDefaultView/index.js.map +1 -1
- package/es/modules/corporate/virtual-address-mail/components/VirtualAddressMailPropertiesView/index.js +5 -8
- 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 +6 -8
- 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 +5 -7
- 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 +5 -8
- 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 +5 -7
- 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 +5 -6
- 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 +5 -8
- 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 +5 -8
- 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 +29 -29
- package/es/modules/self-registration/incorporation-clda/pages/IncorporationCLDAClientView/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,7 @@ import { useFilingType } from "../../../../../../data/filing-type";
|
|
|
5
5
|
import { useParams } from "react-router";
|
|
6
6
|
import { runInAction } from "mobx";
|
|
7
7
|
import { Space } from "antd";
|
|
8
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
8
9
|
import { faEllipsisVertical, faScroll } from "@fortawesome/pro-solid-svg-icons";
|
|
9
10
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
11
|
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
@@ -19,15 +20,14 @@ import styles from "./index.less";
|
|
|
19
20
|
const FilingTypeDefaultView = () => {
|
|
20
21
|
const { id } = useParams();
|
|
21
22
|
const [packUp, setPackUp] = useState(false);
|
|
22
|
-
const
|
|
23
|
-
const filingType = useFilingType(id, { onError:
|
|
23
|
+
const handleError = useHandleError();
|
|
24
|
+
const filingType = useFilingType(id, { onError: handleError });
|
|
24
25
|
const tab = useTabItem();
|
|
25
26
|
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
26
27
|
useEffect(() => {
|
|
27
|
-
setError(null);
|
|
28
28
|
runInAction(() => (tab.title = filingType.name));
|
|
29
29
|
}, [id]);
|
|
30
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-type-default-view"],
|
|
30
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-type-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faScroll }), title: filingType.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Organize, filter, and manage filings by type for better efficiency.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
31
31
|
React.createElement(Space, { className: "menu-buttons" },
|
|
32
32
|
React.createElement(Access, null))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
33
33
|
React.createElement(FilingTypeMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }), blankMenu: packUp ? [] : ["Access"] })) }), properties: React.createElement(FilingTypeProperties, { id: id }) },
|
package/es/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/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,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAChF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,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,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,cAAc,MAAM,iCAAiC,CAAC;AAC7D,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,qBAAqB,GAAG,GAAG,EAAE;IAClC,MAAM,EAAE,EAAE,EAAE,GAAG,SAAS,EAAkB,CAAC;IAC3C,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC5C,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-type/pages/FilingTypeDefaultView/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,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,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CAAC,CAAC,GAAG,CAAC,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAC,CAAC;IAClD,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAET,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,iBAAiB,IACjB,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC,EAC7C,MAAM,EACL,oBAAC,iBAAiB,IACjB,UAAU,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,QAAQ,GAAI,EACtC,KAAK,EAAE,UAAU,CAAC,IAAI,EACtB,MAAM,QACN,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAC/B,WAAW,EAAC,qEAAqE,EACjF,UAAU,EACT,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;gBAC3C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;oBAC9B,oBAAC,MAAM,OAAG,CACH,CACkB,EAE5B,QAAQ,EACP,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAG,EAAE,IAAI,EAAE,KAAK;gBAC5B,oBAAC,cAAc,IACd,EAAE,EAAE,EAAG,EACP,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAC1C,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,GAClC,CACO,GAEV,EAEH,UAAU,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,GAAI;QAE7C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAG,GAAI,CACR,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearPropertiesView/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo
|
|
1
|
+
import React, { useMemo } 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";
|
|
@@ -6,7 +6,7 @@ import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
|
6
6
|
import PropertiesHeader from "@voplus/morpho-org/es/components/PropertiesHeader";
|
|
7
7
|
import FilingYearProperties from "../FilingYearProperties";
|
|
8
8
|
import FilingYearMenu from "../../controls/FilingYearMenu";
|
|
9
|
-
import
|
|
9
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
10
10
|
import { useFilingYear, useFilingYearStore } from "../../../../../../data/filing-year";
|
|
11
11
|
import { isUtcString } from "@voplus/morpho-ui/es/controls/UTCDatePicker/state";
|
|
12
12
|
import FilingYearTabs from "../FilingYearTabs";
|
|
@@ -17,18 +17,15 @@ dayjs.extend(utc);
|
|
|
17
17
|
const FilingYearPropertiesView = (props) => {
|
|
18
18
|
const { id } = props;
|
|
19
19
|
const store = useFilingYearStore();
|
|
20
|
-
const
|
|
20
|
+
const handleError = useHandleError();
|
|
21
21
|
const filingYear = useFilingYear(id, {
|
|
22
22
|
reload: (i) => !i.tags,
|
|
23
23
|
includes: "tags",
|
|
24
|
-
onError:
|
|
24
|
+
onError: handleError,
|
|
25
25
|
});
|
|
26
26
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
27
|
-
useEffect(() => {
|
|
28
|
-
setError(null);
|
|
29
|
-
}, [id]);
|
|
30
27
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
31
|
-
React.createElement(
|
|
28
|
+
React.createElement("div", { className: "module-detail-view" },
|
|
32
29
|
React.createElement(PropertiesHeader, { id: id, icon: React.createElement(FAIcon, { icon: faScrollOld }), nodeName: `Filing Year ${isUtcString(filingYear.fYE)
|
|
33
30
|
? dayjs(filingYear.fYE).utc().format("YYYY-MM-DD")
|
|
34
31
|
: dayjs(filingYear.fYE).format("YYYY-MM-DD")}`, url: `/filing-years/${id}`, tagProps: { id: id, items: store.items, tags: filingYear.tags }, nodeMenu: React.createElement(FilingYearMenu, { id: id, closeAside: true }) }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,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,+BAA+B,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,mDAAmD,CAAC;AAChF,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,GAAG,MAAM,kBAAkB,CAAC;AAEnC,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAElB,gCAAgC;AAChC,MAAM,wBAAwB,GAAG,CAAC,KAA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AAC,EAAE,EAAE,UAAU,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,GAAI,CAC/E,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
package/es/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import FilingYearHeader from "../FilingYearHeader";
|
|
4
4
|
import FilingYearProperties from "../FilingYearProperties";
|
|
@@ -6,15 +6,13 @@ import { faAlignLeft } from "@fortawesome/pro-light-svg-icons";
|
|
|
6
6
|
import { useFilingYear } from "../../../../../../data/filing-year";
|
|
7
7
|
import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
8
8
|
import FilingTimeLine from "../../../components/FilingRecordTimeLine";
|
|
9
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
9
10
|
import "./index.less";
|
|
10
11
|
const FilingYearQuickViewDialog = (props) => {
|
|
11
12
|
const { id } = props;
|
|
12
|
-
const
|
|
13
|
-
const filingYear = useFilingYear(id, { onError:
|
|
14
|
-
|
|
15
|
-
setError(null);
|
|
16
|
-
}, [id]);
|
|
17
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, className: "filingYear-quick-view", header: React.createElement(FilingYearHeader, { id: id, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
13
|
+
const handleError = useHandleError();
|
|
14
|
+
const filingYear = useFilingYear(id, { onError: handleError });
|
|
15
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "filingYear-quick-view", header: React.createElement(FilingYearHeader, { id: id, close: true, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }], items: [
|
|
18
16
|
{
|
|
19
17
|
name: "properties",
|
|
20
18
|
icon: faAlignLeft,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/components/FilingYearQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,cAAc,MAAM,0CAA0C,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,EAAE,EAAE,OAAO,EAAE,WAAW,EAAE,CAAC,CAAC;IAE/D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,uBAAuB,EACjC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,QAAC,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EACnE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,EAC1D,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,+BAA+B;gBACtC,MAAM,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI;aACxC;SACD;QAED,oBAAC,cAAc,IAAC,YAAY,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,GAAI,CAChD,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useState, useMemo
|
|
1
|
+
import React, { useState, useMemo } from "react";
|
|
2
2
|
import { useTabItem } from "@voplus/morpho-data";
|
|
3
3
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
@@ -6,6 +6,7 @@ import { faEllipsisVertical, faCalendar } from "@fortawesome/pro-solid-svg-icons
|
|
|
6
6
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { useFilingYear } from "../../../../../../data/filing-year";
|
|
8
8
|
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
9
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
9
10
|
import { Access } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
10
11
|
import DownloadFiles from "../../controls/FilingYearMenu/items/DownloadFiles";
|
|
11
12
|
import { NodeMenuContext, NodeMenuState } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
@@ -23,17 +24,14 @@ const FilingYearDefaultView = () => {
|
|
|
23
24
|
const tab = useTabItem();
|
|
24
25
|
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
25
26
|
const [packUp, setPackUp] = useState(false);
|
|
26
|
-
const
|
|
27
|
+
const handleError = useHandleError();
|
|
27
28
|
const filingYear = useFilingYear(id, {
|
|
28
29
|
reload: true,
|
|
29
30
|
includes: "permissions",
|
|
30
|
-
onError:
|
|
31
|
+
onError: handleError,
|
|
31
32
|
});
|
|
32
33
|
useAutorunEffect(() => (tab.title = "Filing Year"));
|
|
33
|
-
|
|
34
|
-
setError(null);
|
|
35
|
-
}, [id]);
|
|
36
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-year-default-view"], error: error, header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCalendar }), title: React.createElement(UTCShortDate, { value: filingYear.fYE }), upAble: true, onPackUp: (up) => setPackUp(up), description: "A comprehensive view of annual filing records.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
34
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-year-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faCalendar }), title: React.createElement(UTCShortDate, { value: filingYear.fYE }), upAble: true, onPackUp: (up) => setPackUp(up), description: "A comprehensive view of annual filing records.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
37
35
|
React.createElement(Space, { className: "menu-buttons" },
|
|
38
36
|
React.createElement(DownloadFiles, null),
|
|
39
37
|
React.createElement(Access, null))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
package/es/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/pages/FilingYearDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,E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,EAAE,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAG,GAAI;QAE7C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAG,EAAE,SAAS,SAAG,CAClB,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { useTabItem } from "@voplus/morpho-data";
|
|
3
3
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
4
4
|
import { useParams } from "react-router-dom";
|
|
@@ -8,6 +8,7 @@ import { useFilingRecore } from "../../../../../data/filing-record";
|
|
|
8
8
|
import { faEllipsisVertical, faScrollOld } from "@fortawesome/pro-solid-svg-icons";
|
|
9
9
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
10
|
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
11
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
11
12
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
12
13
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
13
14
|
import FilingRecoreMenu from "../../controls/FilingRecoreMenu";
|
|
@@ -15,18 +16,15 @@ import styles from "./index.less";
|
|
|
15
16
|
/** The FilingRecord Page component with router parameters support. */
|
|
16
17
|
const FilingClientView = () => {
|
|
17
18
|
const { id } = useParams();
|
|
18
|
-
const
|
|
19
|
+
const handleError = useHandleError();
|
|
19
20
|
const tab = useTabItem();
|
|
20
21
|
const filing = useFilingRecore(id, {
|
|
21
22
|
reload: true,
|
|
22
23
|
includes: "filing-year,permissions",
|
|
23
|
-
onError:
|
|
24
|
+
onError: handleError,
|
|
24
25
|
});
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
setError(null);
|
|
27
|
-
}, [id]);
|
|
28
26
|
useAutorunEffect(() => (tab.title = "Filing"));
|
|
29
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-client-view"],
|
|
27
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-client-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faScrollOld }), title: filing.name, description: "A centralized view of all filing records and statuses.", rightExtra: React.createElement(ToolBar, { id: id, more: false },
|
|
30
28
|
React.createElement(FilingRecoreMenu, { id: id, icon: React.createElement(FAIcon, { icon: faEllipsisVertical }) })) }), properties: React.createElement(FilingRecordProperties, { id: id, verificationVisible: false }) },
|
|
31
29
|
React.createElement(FilingRecordTabs, { id: id }))));
|
|
32
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/pages/FilingClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/pages/FilingClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,sBAAsB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC9D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CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import React, { useMemo, useState
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
3
3
|
import { useParams } from "react-router-dom";
|
|
4
4
|
import FilingRecordProperties from "../../components/FilingRecordProperties";
|
|
@@ -15,6 +15,7 @@ import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/Pa
|
|
|
15
15
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
16
16
|
import FilingRecoreMenu from "../../controls/FilingRecoreMenu";
|
|
17
17
|
import { NotifyFiling } from "../../controls/FilingRecoreMenu/items";
|
|
18
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
18
19
|
import styles from "./index.less";
|
|
19
20
|
/** The FilingRecord Page component with router parameters support. */
|
|
20
21
|
const FilingDefaultView = () => {
|
|
@@ -23,17 +24,14 @@ const FilingDefaultView = () => {
|
|
|
23
24
|
const menuContext = useMemo(() => new NodeMenuState(id), [id]);
|
|
24
25
|
const { user } = useApplicationContext();
|
|
25
26
|
const [packUp, setPackUp] = useState(false);
|
|
26
|
-
const
|
|
27
|
+
const handleError = useHandleError();
|
|
27
28
|
const filing = useFilingRecore(id, {
|
|
28
29
|
reload: true,
|
|
29
30
|
includes: "filing-year,permissions",
|
|
30
|
-
onError:
|
|
31
|
+
onError: handleError,
|
|
31
32
|
});
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
setError(null);
|
|
34
|
-
}, [id]);
|
|
35
33
|
useAutorunEffect(() => (tab.title = "Filing"));
|
|
36
|
-
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-default-view"],
|
|
34
|
+
return observe(() => (React.createElement(DefaultViewLayout, { className: styles["filing-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faScrollOld }), title: filing.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "A centralized view of all filing records and statuses.", rightExtra: React.createElement(NodeMenuContext.Provider, { value: menuContext },
|
|
37
35
|
React.createElement(Space, { className: "menu-buttons" },
|
|
38
36
|
React.createElement(NotifyFiling, null),
|
|
39
37
|
React.createElement(Access, { disabled: !user.can("view", filing.p, { asset: "Access" }) }))), toolMenu: React.createElement(ToolBar, { id: id, more: false },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/pages/FilingDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/filing-record/pages/FilingDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,sBAAsB,MAAM,yCAAyC,CAAC;AAC7E,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AACvE,OAAO,EAAE,eAAe,EAAE,aAAa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ACN,QAAQ,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,SAAS,CAAC,EAAE,CAAC,EAC/B,WAAW,EAAC,wDAAwD,EACpE,UAAU,EACT,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,WAAW;gBAC3C,oBAAC,KAAK,IAAC,SAAS,EAAC,cAAc;oBAC9B,oBAAC,YAAY,OAAG;oBAChB,oBAAC,MAAM,IAAC,QAAQ,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC,GAAI,CAC/D,CACkB,EAE5B,QAAQ,EACP,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAG,EAAE,IAAI,EAAE,KAAK;gBAC5B,oBAAC,gBAAgB,IAChB,EAAE,EAAE,EAAG,EACP,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI,EAC1C,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE,QAAQ,CAAC,GAClD,CACO,GAEV,EAEH,UAAU,EAAE,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAG,GAAI;QAE/C,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAG,GAAI,CACV,CACpB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,iBAAiB,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.js
CHANGED
|
@@ -1,22 +1,19 @@
|
|
|
1
|
-
import React, { useMemo, useState
|
|
1
|
+
import React, { useMemo, useState } 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 { useShareCertificate } from "../../../../../data/share-certificate";
|
|
5
|
-
import PropertiesView from "@voplus/morpho-ui/es/components/layout/PropertiesView";
|
|
6
5
|
import PropertiesPanelHeader from "@voplus/morpho-document/es/components/PropertiesPanelHeader";
|
|
7
6
|
import ShareCertificateTabs from "../ShareCertificateTabs";
|
|
7
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
8
8
|
import "./index.less";
|
|
9
9
|
const ShareCertificatePropertiesView = (props) => {
|
|
10
10
|
const id = props.id;
|
|
11
11
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
12
12
|
const [loaded, setLoaded] = useState(true);
|
|
13
|
-
const
|
|
14
|
-
const shareCertificate = useShareCertificate(id, { onError:
|
|
15
|
-
useEffect(() => {
|
|
16
|
-
setError(null);
|
|
17
|
-
}, [id]);
|
|
13
|
+
const handleError = useHandleError();
|
|
14
|
+
const shareCertificate = useShareCertificate(id, { onError: handleError });
|
|
18
15
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
19
|
-
React.createElement(
|
|
16
|
+
React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
|
20
17
|
React.createElement(PropertiesPanelHeader, { id: id, onReload: onReload, identityVisible: true }),
|
|
21
18
|
React.createElement(ShareCertificateTabs, { id: id, properties: true })))))));
|
|
22
19
|
/** reload data */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificatePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAm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AC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
package/es/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React, { useState
|
|
1
|
+
import React, { useState } from "react";
|
|
2
2
|
import { Open, Reload, Close } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
+
import { useMetaStore, useHandleError } from "@voplus/morpho-document-core";
|
|
5
5
|
import { useShareCertificate } from "../../../../../data/share-certificate";
|
|
6
6
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
7
7
|
import QuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
|
@@ -11,12 +11,9 @@ const ShareCertificateQuickViewDialog = (props) => {
|
|
|
11
11
|
const { id } = props;
|
|
12
12
|
const [loaded, setLoaded] = useState(true);
|
|
13
13
|
const meta = useMetaStore();
|
|
14
|
-
const
|
|
15
|
-
const shareCertificate = useShareCertificate(id, { reload: true, onError:
|
|
16
|
-
|
|
17
|
-
setError(null);
|
|
18
|
-
}, [id]);
|
|
19
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, error: error, header: React.createElement(React.Fragment, null, loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false, tools: React.createElement(ToolBar, { id: id },
|
|
14
|
+
const handleError = useHandleError();
|
|
15
|
+
const shareCertificate = useShareCertificate(id, { reload: true, onError: handleError });
|
|
16
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, header: React.createElement(React.Fragment, null, loaded && (React.createElement(DocumentHeader, { id: id, quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, quickDataBarVisible: false, descriptionVisible: false, tools: React.createElement(ToolBar, { id: id },
|
|
20
17
|
React.createElement(Open, { url: meta.getRoute(shareCertificate) }),
|
|
21
18
|
React.createElement(Reload, { action: onReload }),
|
|
22
19
|
React.createElement(Close, { action: props.onCancel })) }))), subButtons: [{ name: "Document" }, { name: "Activities" }, { name: "Link" }] },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/components/ShareCertificateQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAC5E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,eAAe,MAAM,+DAA+D,CAAC;AAC5F,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,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,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,WAAW,GAAG,cAAc,EAAE,CAAC;IACrC,MAAM,gBAAgB,GAAG,mBAAmB,CA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import { Button, Result, Skeleton } from "antd";
|
|
11
11
|
import { State } from "./state";
|
|
12
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
12
13
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
13
|
-
import ErrorBoundaryView from "@voplus/morpho-ui/es/components/layout/ErrorBoundaryView";
|
|
14
14
|
import ShareCertificate from "../../components/ShareCertificate";
|
|
15
15
|
import DisclaimerDialog from "./DisclaimerDialog";
|
|
16
16
|
import ActivityLogTpl from "./ActivityLogTpl";
|
|
@@ -22,6 +22,7 @@ const ShareCertificateClientView = () => {
|
|
|
22
22
|
const tab = useTabItem();
|
|
23
23
|
const ref = useRef(null);
|
|
24
24
|
const { user } = useApplicationContext();
|
|
25
|
+
const handleError = useHandleError();
|
|
25
26
|
const [certScale, setCertScale] = useState();
|
|
26
27
|
const [certHeight, setCertHeight] = useState();
|
|
27
28
|
const [state] = useState(new State(user.info.unit.id));
|
|
@@ -30,12 +31,11 @@ const ShareCertificateClientView = () => {
|
|
|
30
31
|
const shareCertificate = useShareCertificate(id, {
|
|
31
32
|
reload: true,
|
|
32
33
|
includes: "qr,signatures",
|
|
33
|
-
onError:
|
|
34
|
+
onError: handleError,
|
|
34
35
|
});
|
|
35
36
|
const AsideAccept = observe(() => (React.createElement(DisclaimerDialog, { visible: true, mobile: true, onAccept: onCloseDisclaimer })));
|
|
36
37
|
useAutorunEffect(() => (tab.title = shareCertificate.name || "Share Certificate"));
|
|
37
38
|
useEffect(() => {
|
|
38
|
-
state.error = null;
|
|
39
39
|
if (!layout.ui.mobile) {
|
|
40
40
|
asideContext.openAside(React.createElement(ActivityLogTpl, { id: id }), { span: 6 });
|
|
41
41
|
}
|
|
@@ -50,36 +50,37 @@ const ShareCertificateClientView = () => {
|
|
|
50
50
|
});
|
|
51
51
|
return observe(() => {
|
|
52
52
|
var _a, _b;
|
|
53
|
-
return (React.createElement(ReloadContext.Provider, { value: context },
|
|
54
|
-
React.createElement("div", { className: "share-certificate-client-
|
|
55
|
-
React.createElement("div", { className: "
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
React.createElement(
|
|
60
|
-
React.createElement(
|
|
61
|
-
React.createElement(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
React.createElement("div", { className: "
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
React.createElement(
|
|
73
|
-
|
|
74
|
-
React.createElement(
|
|
75
|
-
React.createElement(
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
React.createElement("div", { className: "
|
|
53
|
+
return (React.createElement(ReloadContext.Provider, { value: context },
|
|
54
|
+
React.createElement(AsideContent, { context: asideContext }, !layout.ui.mobile ? (React.createElement("div", { className: styles["share-certificate-client-view"] },
|
|
55
|
+
React.createElement("div", { className: "share-certificate-client-header" },
|
|
56
|
+
React.createElement("div", { className: "text-2xl font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, shareCertificate.name),
|
|
57
|
+
((_a = shareCertificate.shareholder) === null || _a === void 0 ? void 0 : _a.id) === user.info.unit.id && (React.createElement(Button, { onClick: () => window.location.assign(window.location.origin +
|
|
58
|
+
`/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) }, "Download"))),
|
|
59
|
+
React.createElement("div", { className: "share-certificate-client-body" },
|
|
60
|
+
React.createElement(Skeleton, { active: true, loading: !shareCertificate.loaded }, shareCertificate.certificateType === "Digital" ? (React.createElement(Scrollbars, { autoHide: true },
|
|
61
|
+
React.createElement("div", { className: "share-certificate-tep" },
|
|
62
|
+
React.createElement(ShareCertificate, { id: id, canEdit: false })))) : (React.createElement("div", { className: "share-certificate-type-error" },
|
|
63
|
+
React.createElement(Result, { status: "warning", title: "Certificate Type Error", subTitle: "Please contact your consultant for assistance." }))))),
|
|
64
|
+
React.createElement("div", { className: "share-certificate-client-footer" },
|
|
65
|
+
React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")),
|
|
66
|
+
state.promptInformationVisible && (React.createElement(DisclaimerDialog, { visible: state.isPromptInformation, onAccept: state.promptInformationClose })))) : (React.createElement("div", { className: styles["share-certificate-client-view-m"] },
|
|
67
|
+
React.createElement("header", null,
|
|
68
|
+
((_b = shareCertificate.shareholder) === null || _b === void 0 ? void 0 : _b.id) === user.info.unit.id ? (React.createElement(Button, { size: "small", className: "share-certificate-download", onClick: () => window.location.assign(window.location.origin +
|
|
69
|
+
`/api/csp/shares/certificates/${id}/pdf?access_token=${encodeURIComponent(user.info.accessToken)}`) },
|
|
70
|
+
React.createElement(FAIcon, { icon: faArrowDownToLine }))) : (React.createElement("div", { className: "share-certificate-download-placeholder" })),
|
|
71
|
+
React.createElement("div", { className: "share-certificate-title" }, shareCertificate.name),
|
|
72
|
+
React.createElement(Button, { size: "small", onClick: toggleActivity },
|
|
73
|
+
React.createElement(FAIcon, { icon: faBars }))),
|
|
74
|
+
React.createElement("div", { className: "share-certificate-client-body", ref: ref },
|
|
75
|
+
React.createElement(Skeleton, { active: true, loading: !shareCertificate.loaded }, shareCertificate.certificateType === "Digital" ? (React.createElement(Scrollbars, { autoHide: true },
|
|
76
|
+
React.createElement("div", { className: "share-cert-scale", style: {
|
|
77
|
+
transform: `scaleX(${certScale}) scaleY(${certScale})`,
|
|
78
|
+
height: `${certHeight}px`,
|
|
79
|
+
} },
|
|
80
|
+
React.createElement(ShareCertificate, { mobile: true, id: id, canEdit: false })))) : (React.createElement("div", { className: "share-certificate-type-error" },
|
|
81
|
+
React.createElement(Result, { status: "warning", title: "Certificate Type Error", subTitle: "Please contact your consultant for assistance." }))))),
|
|
82
|
+
React.createElement("div", { className: "share-certificate-client-footer" },
|
|
83
|
+
React.createElement("div", { className: "uppercase" }, "Powered by VOPLUS Digital CSP")))))));
|
|
83
84
|
});
|
|
84
85
|
async function onCloseDisclaimer() {
|
|
85
86
|
state.promptInformationClose();
|
package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EACN,WAAW,EACX,aAAa,GACb,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACnF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5E,OAAO,EACN,WAAW,EACX,aAAa,GACb,MAAM,4DAA4D,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,EAA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true
|
|
16
16
|
});
|
|
17
|
-
Object.defineProperty(this, "error", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: null
|
|
22
|
-
});
|
|
23
17
|
Object.defineProperty(this, "promptInformationClose", {
|
|
24
18
|
enumerable: true,
|
|
25
19
|
configurable: true,
|
|
@@ -38,9 +32,6 @@ export class State {
|
|
|
38
32
|
__decorate([
|
|
39
33
|
observable
|
|
40
34
|
], State.prototype, "isPromptInformation", void 0);
|
|
41
|
-
__decorate([
|
|
42
|
-
observable
|
|
43
|
-
], State.prototype, "error", void 0);
|
|
44
35
|
__decorate([
|
|
45
36
|
computed
|
|
46
37
|
], State.prototype, "promptInformationVisible", null);
|
package/es/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,MAAM,OAAO,KAAK;
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/share-certificate/pages/ShareCertificateClientView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpE,MAAM,OAAO,KAAK;IAGjB,YAAoB,MAAc;QAAtB;;;;mBAAQ,MAAM;WAAQ;QAFf;;;;mBAAsB,IAAI;WAAC;QAYvC;;;;mBAAyB,GAAG,EAAE;gBACpC,IAAI,CAAC,mBAAmB,GAAG,KAAK,CAAC;gBACjC,YAAY,CAAC,OAAO,CAAC,uCAAuC,IAAI,CAAC,MAAM,EAAE,EAAE,OAAO,CAAC,CAAC;YACrF,CAAC;WAAC;QAZD,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAGD,IAAW,wBAAwB;QAClC,OAAO,YAAY,CAAC,OAAO,CAAC,uCAAuC,IAAI,CAAC,MAAM,EAAE,CAAC,KAAK,OAAO,CAAC;IAC/F,CAAC;CAOD;AAhBmB;IAAlB,UAAU;kDAAmC;AAO9C;IADC,QAAQ;qDAGR;AAGM;IADN,MAAM;qDAIL"}
|
|
@@ -14,6 +14,7 @@ import { DocumentMenuContext, DocumentMenuState } from "@voplus/morpho-document-
|
|
|
14
14
|
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
15
15
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
16
16
|
import SubPasteDropdown from "@voplus/morpho-document/es/controls/DocumentMenu/SubPasteDropdown";
|
|
17
|
+
import { useHandleError } from "@voplus/morpho-document-core";
|
|
17
18
|
import { SendToShareholder, SendToSignee, Download, } from "../../controls/ShareCertificateMenu/items";
|
|
18
19
|
import styles from "./index.less";
|
|
19
20
|
/** The ShareCertificate Page component with router parameters support. */
|
|
@@ -22,21 +23,18 @@ const ShareCertificateDefaultView = () => {
|
|
|
22
23
|
const tab = useTabItem();
|
|
23
24
|
const menuContext = useMemo(() => new DocumentMenuState(id), [id]);
|
|
24
25
|
const [packUp, setPackUp] = useState(false);
|
|
25
|
-
const
|
|
26
|
+
const handleError = useHandleError();
|
|
26
27
|
const shareCertificate = useShareCertificate(id, {
|
|
27
28
|
reload: true,
|
|
28
29
|
includes: "certificate,qr,signatures",
|
|
29
|
-
onError:
|
|
30
|
+
onError: handleError,
|
|
30
31
|
});
|
|
31
32
|
const [context] = useState(() => new ReloadState());
|
|
32
|
-
useEffect(() => {
|
|
33
|
-
setError(null);
|
|
34
|
-
}, [id]);
|
|
35
33
|
useEffect(() => {
|
|
36
34
|
tab.title = (shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.name) || "ShareCertificate";
|
|
37
35
|
}, [shareCertificate === null || shareCertificate === void 0 ? void 0 : shareCertificate.name]);
|
|
38
36
|
return observe(() => (React.createElement(ReloadContext.Provider, { value: context },
|
|
39
|
-
React.createElement(DefaultViewLayout, { className: styles["share-transaction-default-view"],
|
|
37
|
+
React.createElement(DefaultViewLayout, { className: styles["share-transaction-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faFileCertificate }), title: shareCertificate.name, upAble: true, onPackUp: (up) => setPackUp(up), description: "Keep track of all issued share certificates in one organized list.", rightExtra: React.createElement(DocumentMenuContext.Provider, { value: menuContext },
|
|
40
38
|
React.createElement(Space, { className: "menu-buttons" },
|
|
41
39
|
React.createElement(SubPasteDropdown, null),
|
|
42
40
|
context.view && React.createElement(SendToSignee, null),
|