@voplus/morpho-csp 4.0.6 → 4.0.7
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.
|
@@ -1,18 +1,20 @@
|
|
|
1
|
-
import React, { useState } from "react";
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { TabItemContext, TabItemStore, useTabItem } from "@voplus/morpho-data";
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
4
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
5
|
+
import { useCLDAForm, CLDAFormContent } from "../../../../../data/clda-form";
|
|
6
|
+
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
7
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
|
5
8
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
6
9
|
import CLDAFormProperties from "../../components/CLDAFormProperties";
|
|
7
10
|
import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
8
|
-
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
|
9
|
-
import { useCLDAForm, CLDAFormContent } from "../../../../../data/clda-form";
|
|
10
11
|
import styles from "./index.less";
|
|
11
12
|
const CLDAFormDefaultView = ({ id }) => {
|
|
12
13
|
const content = new CLDAFormContent();
|
|
13
14
|
const store = new TabItemStore({ url: "" });
|
|
14
15
|
const [asideContext] = useState(AsideContent.createContext());
|
|
15
16
|
const form = useCLDAForm(id);
|
|
17
|
+
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
16
18
|
const tab = useTabItem();
|
|
17
19
|
useAutorunEffect(() => {
|
|
18
20
|
tab.title = (form && form.name) || "";
|
|
@@ -24,7 +26,8 @@ const CLDAFormDefaultView = ({ id }) => {
|
|
|
24
26
|
React.createElement("div", { className: "incorporation-from-context" },
|
|
25
27
|
React.createElement(AsideContent, { context: asideContext },
|
|
26
28
|
React.createElement(Scrollbars, { autoHide: true }, content.getCLDAFormContent(form.metaKey, form.country, { id, type: "draftView" })),
|
|
27
|
-
React.createElement(
|
|
29
|
+
React.createElement(ViewContext.Provider, { value: view },
|
|
30
|
+
React.createElement(DocumentTabs, { id: id, active: "Document" }))))))));
|
|
28
31
|
};
|
|
29
32
|
export default CLDAFormDefaultView;
|
|
30
33
|
//# 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,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/clda-form/pages/CLDAFormDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAC7E,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,kBAAkB,MAAM,qCAAqC,CAAC;AACrE,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,mBAAmB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACtD,MAAM,OAAO,GAAG,IAAI,eA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