@voplus/morpho-csp 6.0.184 → 6.0.185
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/filing-record/filing-year/controls/FilingYearMenu/index.js +6 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.js.map +1 -1
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.d.ts +8 -0
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js +23 -0
- package/es/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.js.map +1 -0
- package/es/modules/self-registration/clda-form/incorporation/agm/index.less +1 -1
- package/es/modules/self-registration/clda-form/incorporation/bvi/index.less +1 -1
- package/es/modules/self-registration/clda-form/incorporation/sgp/index.less +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.d.ts +5 -0
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js +21 -0
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.js.map +1 -0
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js +31 -22
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.js.map +1 -1
- package/es/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.less +13 -0
- package/package.json +1 -1
|
@@ -2,9 +2,14 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { useFilingYearStore } from "../../../../../../data/filing-year";
|
|
4
4
|
import NodeMenu from "@voplus/morpho-org/es/controls/NodeMenu";
|
|
5
|
+
import { Access, Delete } from "@voplus/morpho-org/es/controls/NodeMenu/items";
|
|
6
|
+
import DownloadFiles from "./items/DownloadFiles";
|
|
5
7
|
const FilingRecoreMenu = (props) => {
|
|
6
8
|
const store = useFilingYearStore();
|
|
7
|
-
return observe(() => React.createElement(NodeMenu, { ...props, store: store
|
|
9
|
+
return observe(() => (React.createElement(NodeMenu, { ...props, store: store, menus: React.createElement(React.Fragment, null,
|
|
10
|
+
React.createElement(DownloadFiles, null),
|
|
11
|
+
React.createElement(Access, null),
|
|
12
|
+
React.createElement(Delete, { closeAside: true })) })));
|
|
8
13
|
};
|
|
9
14
|
export default FilingRecoreMenu;
|
|
10
15
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../src/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,OAAO,QAAQ,MAAM,yCAAyC,CAAC;AAC/D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,+CAA+C,CAAC;AAC/E,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAElD,MAAM,gBAAgB,GAAG,CAAC,KAKzB,EAAE,EAAE;IACJ,MAAM,KAAK,GAAG,kBAAkB,EAAE,CAAC;IAEnC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,QAAQ,OACJ,KAAK,EACT,KAAK,EAAE,KAAK,EACZ,KAAK,EACJ;YACC,oBAAC,aAAa,OAAG;YACjB,oBAAC,MAAM,OAAG;YACV,oBAAC,MAAM,IAAC,UAAU,SAAG,CACnB,GAEH,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useNodeMenuContext } from "@voplus/morpho-org/es/controls/NodeMenu/state";
|
|
3
|
+
import { Button } from "antd";
|
|
4
|
+
import { observe } from "@voplus/morpho-ui";
|
|
5
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
+
import { faFolderDownload } from "@fortawesome/pro-light-svg-icons";
|
|
7
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
|
8
|
+
const DownloadFiles = (props) => {
|
|
9
|
+
const { disabled, action } = props;
|
|
10
|
+
const context = useNodeMenuContext();
|
|
11
|
+
const { user } = useApplicationContext();
|
|
12
|
+
return observe(() => !user.info.guest ? (React.createElement(Button, { type: "link", disabled: disabled, onClick: onClick, className: "document-menu-downloadFiles" },
|
|
13
|
+
React.createElement(FAIcon, { icon: faFolderDownload }),
|
|
14
|
+
React.createElement("span", null, "Download Files"))) : null);
|
|
15
|
+
function onClick() {
|
|
16
|
+
action
|
|
17
|
+
? action()
|
|
18
|
+
: window.location.assign(window.location.origin +
|
|
19
|
+
`/api/documents/${context.id}/files/zip?access_token=${encodeURIComponent(user.info.accessToken)}`);
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
export default DownloadFiles;
|
|
23
|
+
//# sourceMappingURL=DownloadFiles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DownloadFiles.js","sourceRoot":"","sources":["../../../../../../../../src/modules/corporate/filing-record/filing-year/controls/FilingYearMenu/items/DownloadFiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,aAAa,GAAG,CAAC,KAKtB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,GAAG,KAAK,CAAC;IAEnC,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;IAErC,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAClB,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAC,6BAA6B;QAEvC,oBAAC,MAAM,IAAC,IAAI,EAAE,gBAAgB,GAAI;QAClC,mDAA2B,CACnB,CACT,CAAC,CAAC,CAAC,IAAI,CACR,CAAC;IAEF,SAAS,OAAO;QACf,MAAM;YACL,CAAC,CAAC,MAAM,EAAE;YACV,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CACtB,MAAM,CAAC,QAAQ,CAAC,MAAM;gBACrB,kBAAkB,OAAO,CAAC,EAAE,2BAA2B,kBAAkB,CACxE,IAAI,CAAC,IAAI,CAAC,WAAW,CACrB,EAAE,CACH,CAAC;IACN,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import React, { useEffect, useMemo } from "react";
|
|
2
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
+
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
|
4
|
+
import { useCLDAForm, CLDAFormContent } from "../../../../../data/clda-form";
|
|
5
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
|
+
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
7
|
+
import { runInAction } from "mobx";
|
|
8
|
+
const Content = (props) => {
|
|
9
|
+
const { id } = props;
|
|
10
|
+
const content = new CLDAFormContent();
|
|
11
|
+
const asideContext = useAsideContentContext();
|
|
12
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
13
|
+
const form = useCLDAForm(id);
|
|
14
|
+
useEffect(() => {
|
|
15
|
+
runInAction(() => asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(ViewContext.Provider, { value: view },
|
|
16
|
+
React.createElement(DocumentTabs, { id: id, active: "Document" })), { span: 9 }));
|
|
17
|
+
}, []);
|
|
18
|
+
return observe(() => (React.createElement(Scrollbars, { autoHide: true }, content.getCLDAFormContent(form.metaKey, form.country, { id, type: "defaultView" }))));
|
|
19
|
+
};
|
|
20
|
+
export default Content;
|
|
21
|
+
//# sourceMappingURL=Content.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAClD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,MAAM,OAAO,GAAG,CAAC,KAAqB,EAAE,EAAE;IACzC,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,OAAO,GAAG,IAAI,eAAe,EAAE,CAAC;IACtC,MAAM,YAAY,GAAG,sBAAsB,EAAE,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,MAAM,IAAI,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAE7B,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAChB,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,SAAS,CACtB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;YAChC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,EAAC,UAAU,GAAG,CACpB,EACvB,EAAE,IAAI,EAAE,CAAC,EAAE,CACX,CACD,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,UAAU,IAAC,QAAQ,UAClB,OAAO,CAAC,kBAAkB,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC,CACxE,CACb,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,33 +1,42 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import {
|
|
3
|
-
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { useTabItem, useLayout } from "@voplus/morpho-data";
|
|
4
3
|
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
5
|
-
import { useCLDAForm
|
|
6
|
-
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
7
|
-
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
8
|
-
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
4
|
+
import { useCLDAForm } from "../../../../../data/clda-form";
|
|
9
5
|
import CLDAFormProperties from "../../components/CLDAFormProperties";
|
|
10
|
-
import
|
|
6
|
+
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
|
7
|
+
import { faEllipsisVertical, faWaveform } from "@fortawesome/pro-solid-svg-icons";
|
|
8
|
+
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
9
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
10
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
11
|
+
import BreadCrumbsPath from "@voplus/morpho-ui/es/components/layout/headers/components/BreadCrumbsPath";
|
|
12
|
+
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
|
13
|
+
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
|
14
|
+
import Content from "./Content";
|
|
11
15
|
import styles from "./index.less";
|
|
12
16
|
const CLDAFormDefaultView = ({ id }) => {
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
const
|
|
17
|
-
const
|
|
17
|
+
const frame = useFrame();
|
|
18
|
+
if (frame)
|
|
19
|
+
frame.header = null;
|
|
20
|
+
const layout = useLayout();
|
|
21
|
+
const metas = useMetaStore();
|
|
22
|
+
const form = useCLDAForm(id, { includes: "path" });
|
|
18
23
|
const tab = useTabItem();
|
|
19
24
|
useAutorunEffect(() => {
|
|
20
25
|
tab.title = (form && form.name) || "";
|
|
21
26
|
});
|
|
22
|
-
return observe(() =>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
27
|
+
return observe(() => {
|
|
28
|
+
var _a;
|
|
29
|
+
return (React.createElement(DefaultViewLayout, { className: styles["incorporation-from-default-view"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faWaveform }), title: form.name, description: React.createElement(BreadCrumbsPath, { path: (_a = form.path) === null || _a === void 0 ? void 0 : _a.slice(-3), onToPath: (item) => {
|
|
30
|
+
const route = metas.getRoute({
|
|
31
|
+
id: item.id,
|
|
32
|
+
type: item.objectType,
|
|
33
|
+
});
|
|
34
|
+
layout.history.push(`${route}`);
|
|
35
|
+
} }), rightExtra: React.createElement(ToolBar, { id: id, moreProps: {
|
|
36
|
+
icon: React.createElement(FAIcon, { icon: faEllipsisVertical }),
|
|
37
|
+
} }) }), properties: React.createElement(CLDAFormProperties, { id: id }) },
|
|
38
|
+
React.createElement(Content, { id: id })));
|
|
39
|
+
});
|
|
31
40
|
};
|
|
32
41
|
export default CLDAFormDefaultView;
|
|
33
42
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,kEAAkE,CAAC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IAAI,EAAE,MAAA,IAAI,CAAC,IAAI,0CAAE,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1B,QAAQ,EAAE,CAAC,IAAI,EAAE,EAAE;wBAClB,MAAM,KAAK,GAAG,KAAK,CAAC,QAAQ,CAAC;4BAC5B,EAAE,EAAE,IAAI,CAAC,EAAE;4BACX,IAAI,EAAE,IAAI,CAAC,UAAU;yBACd,CAAC,CAAC;wBACV,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC;oBACjC,CAAC,GACA,EAEH,UAAU,EACT,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;wBACV,IAAI,EAAE,oBAAC,MAAM,IAAC,IAAI,EAAE,kBAAkB,GAAI;qBAC1C,GACA,GAEF,EAEH,UAAU,EAAE,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI;YAE1C,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,GAAI,CACA,CACpB,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -18,5 +18,18 @@
|
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
.default-aside-content {
|
|
23
|
+
background: transparent;
|
|
24
|
+
border-radius: 0;
|
|
25
|
+
border: none;
|
|
26
|
+
box-shadow: none;
|
|
27
|
+
.incorporation-form-common-style {
|
|
28
|
+
padding: 0;
|
|
29
|
+
}
|
|
30
|
+
.officer-list:last-child {
|
|
31
|
+
margin-bottom: 0;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
21
34
|
}
|
|
22
35
|
}
|