@voplus/morpho-document 5.0.54 → 5.0.55
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,4 +1,4 @@
|
|
|
1
|
-
import "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2/index.less";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2/index.less";
|
|
3
3
|
declare const ActivitiesPrintView: () => React.JSX.Element;
|
|
4
4
|
export default ActivitiesPrintView;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2/index.less";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
|
3
3
|
import { Scrollbars } from "react-custom-scrollbars";
|
|
4
|
-
import { Timeline } from "antd";
|
|
5
|
-
import classnames from "classnames";
|
|
4
|
+
import { Timeline, Card } from "antd";
|
|
6
5
|
import { observe } from "@voplus/morpho-ui";
|
|
7
6
|
import { useActivityListEffect } from "@voplus/morpho-org/es/data/ActivityStore";
|
|
8
7
|
import { useActivityLogRenderService } from "@voplus/morpho-document-core/es/services/ActivityLogRenderService";
|
|
@@ -10,9 +9,14 @@ import { useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
|
10
9
|
import { useLayout } from "@voplus/morpho-data";
|
|
11
10
|
import { useParams } from "react-router-dom";
|
|
12
11
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
12
|
+
import DescriptionEditor from "../../controls/DescriptionEditor";
|
|
13
|
+
import classnames from "classnames";
|
|
14
|
+
import dayjs from "dayjs";
|
|
15
|
+
import "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2/index.less";
|
|
13
16
|
const ActivitiesPrintView = () => {
|
|
14
17
|
const params = useParams();
|
|
15
18
|
const id = params.id;
|
|
19
|
+
const file = useDocument(id, { reload: (d) => !d.tags, includes: "tags" });
|
|
16
20
|
const layout = useLayout();
|
|
17
21
|
layout.menu.visible = false;
|
|
18
22
|
layout.tabNav.visible = false;
|
|
@@ -27,10 +31,23 @@ const ActivitiesPrintView = () => {
|
|
|
27
31
|
useRenderOnChange(() => list.filters.options);
|
|
28
32
|
/** useActivityListEffect,使之可以自動更新loading, hasmore. */
|
|
29
33
|
useActivityListEffect(list, (result) => list.union(result), list.filters.options);
|
|
30
|
-
return observe(() => (React.createElement("div", { className: classnames("activity-log-view")
|
|
34
|
+
return observe(() => (React.createElement("div", { className: classnames("activity-log-view") },
|
|
31
35
|
React.createElement("div", { className: "activity-time-line" },
|
|
32
36
|
React.createElement(Scrollbars, { autoHide: true },
|
|
33
|
-
React.createElement("
|
|
37
|
+
React.createElement("div", { className: "text-2xl my-4 font-bold leading-7 text-gray-900 sm:text-3xl sm:truncate" }, "Activity Log"),
|
|
38
|
+
React.createElement(Card, { className: "activity-log-view-header" },
|
|
39
|
+
React.createElement("div", null,
|
|
40
|
+
React.createElement("dl", { className: "grid grid-cols-1 sm:grid-cols-2" },
|
|
41
|
+
React.createElement("div", { className: "px-4 mb-2 sm:col-span-1 sm:px-0" },
|
|
42
|
+
React.createElement("dt", { className: "text-sm font-medium leading-6 text-gray-900" }, "Documetn Name"),
|
|
43
|
+
React.createElement("dd", { className: "mt-1 text-sm leading-6 text-gray-700 sm:mt-2" }, file.name)),
|
|
44
|
+
React.createElement("div", { className: "px-4 mb-2 sm:col-span-1 sm:px-0" },
|
|
45
|
+
React.createElement("dt", { className: "text-sm font-medium leading-6 text-gray-900" }, "Document Date"),
|
|
46
|
+
React.createElement("dd", { className: "mt-1 text-sm leading-6 text-gray-700 sm:mt-2" }, dayjs(file.date).format("YYYY MM DD"))),
|
|
47
|
+
React.createElement("div", { className: "border-t border-gray-100 px-4 sm:col-span-2 sm:px-0" },
|
|
48
|
+
React.createElement("dt", { className: "text-sm mt-2 font-medium leading-6 text-gray-900" }, "Description"),
|
|
49
|
+
React.createElement("dd", { className: "mt-1 text-sm leading-6 text-gray-700 sm:mt-2" },
|
|
50
|
+
React.createElement(DescriptionEditor, { id: id, description: file.description, readonly: true })))))),
|
|
34
51
|
React.createElement(Scrollbars, { autoHide: true }, list.data.length ? (React.createElement(Timeline, { items: list.data.map((item) => {
|
|
35
52
|
return {
|
|
36
53
|
dot: logRenderer === null || logRenderer === void 0 ? void 0 : logRenderer.dotElement(item),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ActivitiesPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/ActivitiesPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAgB,WAAW,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mEAAmE,CAAC;AAChH,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,sEAAsE,CAAC;AAE9E,MAAM,mBAAmB,GAAG,GAAG,EAAE;IAChC,MAAM,MAAM,GAAG,SAAS,EAAE,CAA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