@voplus/morpho-csp 1.2.97 → 1.2.100
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/clda/components/CLDAPropertiesView/index.js +30 -4
- package/es/modules/corporate/clda/components/CLDAPropertiesView/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.d.ts +0 -1
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js +6 -7
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.js.map +1 -1
- package/es/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.less +11 -10
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React, { useMemo } from "react";
|
|
1
|
+
import React, { useMemo, useState } from "react";
|
|
2
2
|
import { Skeleton } from "@voplus/antd";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import { useCLDA } from "../../../../../data/CLDA";
|
|
5
5
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
6
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
6
|
+
import { Open, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
|
7
7
|
import RelatedWorkList from "@voplus/morpho-workspace/es/modules/work/components/RelatedWorkList";
|
|
8
8
|
import CLDAProperties from "../CLDAProperties";
|
|
9
9
|
import CLDAMenu from "../../controls/CLDAMenu";
|
|
@@ -11,14 +11,19 @@ import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEd
|
|
|
11
11
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
12
12
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
|
13
13
|
import Toolbar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
14
|
+
import SubTaskList from "@voplus/morpho-workspace/es/modules/tasks/components/SubTaskList";
|
|
15
|
+
import TasksTotal from "@voplus/morpho-workspace/es/modules/tasks/controls/TasksTotal";
|
|
14
16
|
import "./index.less";
|
|
15
17
|
const CLDAPropertiesView = (props) => {
|
|
16
18
|
const { id } = props;
|
|
19
|
+
const [loaded, setLoaded] = useState(true);
|
|
20
|
+
const [taskTotal, setTaskTotal] = useState(0);
|
|
17
21
|
const CLDA = useCLDA(id, { reload: true });
|
|
18
22
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
19
|
-
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
23
|
+
return observe(() => (React.createElement(ViewContext.Provider, { value: view }, loaded && (React.createElement(React.Fragment, null,
|
|
20
24
|
React.createElement("div", { className: "CLDA-properties-view" },
|
|
21
25
|
React.createElement(DocumentHeader, { id: id, size: "h2", quickDataBarAlign: "left", flagVisible: false, preVisible: false, tools: React.createElement(Toolbar, { moreProps: { id: props.id, menus: { default: React.createElement(CLDAMenu, { id: props.id }) } } },
|
|
26
|
+
React.createElement(Reload, { action: onReload }),
|
|
22
27
|
React.createElement(Open, { url: `/clda/incorporation/${id}` })) }),
|
|
23
28
|
CLDA.loading ? (React.createElement("div", { style: { padding: "0 20px" } },
|
|
24
29
|
React.createElement(Skeleton, { active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: CLDA.description, readonly: CLDA.readonly, padding: "0 0 0.75rem 0" })),
|
|
@@ -28,12 +33,33 @@ const CLDAPropertiesView = (props) => {
|
|
|
28
33
|
title: "Properties",
|
|
29
34
|
content: React.createElement(CLDAProperties, { id: id, labelCol: 8, wrapperCol: 20 }),
|
|
30
35
|
},
|
|
36
|
+
{
|
|
37
|
+
key: "Tasks",
|
|
38
|
+
title: React.createElement(TasksTotal, { id: id, count: taskTotal }),
|
|
39
|
+
content: (React.createElement(SubTaskList, { parentId: id, viewTitle: " ", total: false, onTotalChanged: (c) => setTaskTotal(c), filters: [
|
|
40
|
+
{
|
|
41
|
+
c: "TaskStatus",
|
|
42
|
+
o: "contains",
|
|
43
|
+
l: "And",
|
|
44
|
+
v1: JSON.stringify(["NotStarted", "Progress", "Done"]),
|
|
45
|
+
},
|
|
46
|
+
] })),
|
|
47
|
+
},
|
|
31
48
|
{
|
|
32
49
|
key: "RelatedWorks",
|
|
33
50
|
title: "Related Works",
|
|
34
51
|
content: React.createElement(RelatedWorkList, { id: id, viewTypes: "QuickView" }),
|
|
35
52
|
},
|
|
36
|
-
]
|
|
53
|
+
], docTabOptions: {
|
|
54
|
+
exclude: ["Task"],
|
|
55
|
+
} })))))));
|
|
56
|
+
/** reload data */
|
|
57
|
+
function onReload() {
|
|
58
|
+
setLoaded(false);
|
|
59
|
+
setTimeout(() => {
|
|
60
|
+
setLoaded(true);
|
|
61
|
+
}, 100);
|
|
62
|
+
}
|
|
37
63
|
};
|
|
38
64
|
export default CLDAPropertiesView;
|
|
39
65
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/corporate/clda/components/CLDAPropertiesView/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/clda/components/CLDAPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AACnD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAEnF,OAAO,eAAe,MAAM,qE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UAAU,EAAE,MAAM,CAAC,CAAC;iCACtD;6BACD,GACA,CACF;qBACD;oBACD;wBACC,GAAG,EAAE,cAAc;wBACnB,KAAK,EAAE,eAAe;wBACtB,OAAO,EAAE,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,WAAW,GAAG;qBAC1D;iBACD,EACD,aAAa,EAAE;oBACd,OAAO,EAAE,CAAC,MAAM,CAAC;iBACjB,GACA,CACG,CACU,CACjB,CACqB,CACvB,CAAC,CAAC;IAEH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,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,kBAAkB,CAAC"}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
|
-
import "./index.less";
|
|
2
|
-
import CLDAProperties from "../../../../corporate/clda/components/CLDAProperties";
|
|
3
|
-
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
4
|
-
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
|
5
1
|
import React from "react";
|
|
6
|
-
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
|
7
2
|
import { observe } from "@voplus/morpho-ui";
|
|
8
3
|
import { useIncorporationCLDA } from "../../../../../data/incorporation-clda";
|
|
4
|
+
import CLDAProperties from "../../../../corporate/clda/components/CLDAProperties";
|
|
5
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
|
6
|
+
import DocumentPanelHeader from "@voplus/morpho-document/es/components/DocumentPanelHeader";
|
|
7
|
+
import styles from "./index.less";
|
|
9
8
|
const IncorporationCLDAProperties = (props) => {
|
|
10
9
|
const { id } = props;
|
|
11
10
|
const incorporation = useIncorporationCLDA(id, { reload: true, includes: "tags" });
|
|
12
|
-
return observe(() => (React.createElement("div", { className: "incorporation-properties" },
|
|
13
|
-
React.createElement(
|
|
11
|
+
return observe(() => (React.createElement("div", { className: styles["incorporation-properties"] },
|
|
12
|
+
React.createElement(DocumentPanelHeader, { id: id }),
|
|
14
13
|
React.createElement(DescriptionEditor, { id: id, description: incorporation.description, readonly: incorporation.readonly }),
|
|
15
14
|
React.createElement(CLDAProperties, { id: id }))));
|
|
16
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/self-registration/incorporation-clda/components/IncorporationCLDAProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAE9E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,mBAAmB,MAAM,2DAA2D,CAAC;AAC5F,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,2BAA2B,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC7D,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,aAAa,GAAG,oBAAoB,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC;IAEnF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,0BAA0B,CAAC;QACjD,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI;QAC/B,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,aAAa,CAAC,WAAW,EACtC,QAAQ,EAAE,aAAa,CAAC,QAAQ,GAC/B;QACF,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,GAAI,CACrB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
.incorporation-properties {
|
|
2
|
+
height: 100%;
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
|
|
6
|
+
:global {
|
|
7
|
+
.document-panel-header___u2xBx {
|
|
8
|
+
.tag-view {
|
|
9
|
+
padding: 0 20px;
|
|
10
|
+
}
|
|
10
11
|
}
|
|
11
12
|
}
|
|
12
|
-
}
|
|
13
|
+
}
|