@voplus/morpho-document 1.4.41 → 1.4.42
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/components/DocumentHeader/index.js +22 -2
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentItem/DefaultDocumentItem.d.ts +4 -0
- package/es/components/DocumentItem/DefaultDocumentItem.js +33 -0
- package/es/components/DocumentItem/DefaultDocumentItem.js.map +1 -0
- package/es/components/DocumentItem/SelectDocumentItem.d.ts +4 -0
- package/es/components/DocumentItem/SelectDocumentItem.js +19 -0
- package/es/components/DocumentItem/SelectDocumentItem.js.map +1 -0
- package/es/components/DocumentItem/SimpleDocumentItem.d.ts +4 -0
- package/es/components/DocumentItem/SimpleDocumentItem.js +24 -0
- package/es/components/DocumentItem/SimpleDocumentItem.js.map +1 -0
- package/es/components/DocumentItem/SubDocumentItem.d.ts +9 -0
- package/es/components/DocumentItem/SubDocumentItem.js +50 -0
- package/es/components/DocumentItem/SubDocumentItem.js.map +1 -0
- package/es/components/DocumentItem/TreeDocumentItem.d.ts +4 -0
- package/es/components/DocumentItem/TreeDocumentItem.js +22 -0
- package/es/components/DocumentItem/TreeDocumentItem.js.map +1 -0
- package/es/components/DocumentItem/index.d.ts +5 -6
- package/es/components/DocumentItem/index.js +13 -94
- package/es/components/DocumentItem/index.js.map +1 -1
- package/es/components/DocumentItem/index.less +63 -122
- package/es/components/DocumentItem/state.d.ts +5 -5
- package/es/components/DocumentList/index.js +9 -2
- package/es/components/DocumentList/index.js.map +1 -1
- package/es/components/DocumentListView/index.js +2 -2
- package/es/components/DocumentListView/index.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js +2 -2
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/FileExplorerTheme/node-content-renderer.less +10 -2
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js +2 -2
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/node-content-renderer.js.map +1 -1
- package/es/components/FileViewer/Preview.js +2 -2
- package/es/components/FileViewer/Preview.js.map +1 -1
- package/es/components/FileViewer/index.less +3 -0
- package/es/components/Links/index.less +111 -111
- package/es/components/QuickAccessSearch/ObjectItem/index.js +2 -2
- package/es/components/QuickAccessSearch/ObjectItem/index.js.map +1 -1
- package/es/controls/data-icons/DocumentDataIcon/index.js +12 -3
- package/es/controls/data-icons/DocumentDataIcon/index.js.map +1 -1
- package/es/controls/data-icons/DocumentDataIcon/index.less +0 -11
- package/es/controls/data-icons/DocumentPathDataIcon/Content.js +2 -2
- package/es/controls/data-icons/DocumentPathDataIcon/Content.js.map +1 -1
- package/es/controls/data-icons/DocumentPathDataIcon/index.less +0 -10
- package/es/modules/graph/components/GraphQuickViewDialog/index.js +2 -2
- package/es/modules/graph/components/GraphQuickViewDialog/index.js.map +1 -1
- package/es/modules/page/views/PagePrintView/index.less +0 -4
- package/es/style/print.less +4 -0
- package/package.json +1 -1
- package/es/components/DocumentName/index.d.ts +0 -23
- package/es/components/DocumentName/index.js +0 -82
- package/es/components/DocumentName/index.js.map +0 -1
- package/es/components/DocumentName/index.less +0 -60
|
@@ -1,111 +1,111 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
.reference-view {
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
height: 100%;
|
|
6
|
-
:global {
|
|
7
|
-
.reference-header {
|
|
8
|
-
display: flex;
|
|
9
|
-
margin: 5px 20px 0 20px;
|
|
10
|
-
.multiple-remove {
|
|
11
|
-
font-weight: 600;
|
|
12
|
-
color: #000;
|
|
13
|
-
cursor: pointer;
|
|
14
|
-
.ant-btn {
|
|
15
|
-
padding: 0 10px 0 0;
|
|
16
|
-
font-size: 16px;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
.multiple-remove-btn {
|
|
20
|
-
.ant-btn {
|
|
21
|
-
padding: 0 10px;
|
|
22
|
-
font-style: italic;
|
|
23
|
-
}
|
|
24
|
-
.del-btn {
|
|
25
|
-
color: #ff4d4f;
|
|
26
|
-
&:hover {
|
|
27
|
-
color: #ff7875;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
.cancel-btn {
|
|
31
|
-
color: #666;
|
|
32
|
-
&:hover {
|
|
33
|
-
color: @primary-color;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
.plus-icon {
|
|
38
|
-
display: inline-block;
|
|
39
|
-
padding: 4px;
|
|
40
|
-
margin-left: 10px;
|
|
41
|
-
font-size: 13px;
|
|
42
|
-
line-height: 1px;
|
|
43
|
-
background: #1abc9c;
|
|
44
|
-
cursor: pointer;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
.reference-view-page {
|
|
48
|
-
display: block;
|
|
49
|
-
}
|
|
50
|
-
.reference-item {
|
|
51
|
-
display: flex;
|
|
52
|
-
position: relative;
|
|
53
|
-
justify-content: space-between;
|
|
54
|
-
align-items: center;
|
|
55
|
-
padding: 5px 20px;
|
|
56
|
-
&:hover {
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
.reference-item-content {
|
|
59
|
-
opacity: 0.4;
|
|
60
|
-
}
|
|
61
|
-
.reference-status-none {
|
|
62
|
-
display: none;
|
|
63
|
-
}
|
|
64
|
-
.hover-operate-icon {
|
|
65
|
-
display: block;
|
|
66
|
-
opacity: 1;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
.reference-item-content {
|
|
70
|
-
flex: 1;
|
|
71
|
-
color: #000;
|
|
72
|
-
font-weight: 500;
|
|
73
|
-
.reference-content {
|
|
74
|
-
display: flex;
|
|
75
|
-
flex: 1;
|
|
76
|
-
.type-icon {
|
|
77
|
-
font-size: 15px;
|
|
78
|
-
padding-right: 10px;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
.task-item-name.task-item-name_done {
|
|
82
|
-
color: #a8a8a8;
|
|
83
|
-
}
|
|
84
|
-
.task-control {
|
|
85
|
-
display: flex;
|
|
86
|
-
align-items: center;
|
|
87
|
-
padding: 5px 0;
|
|
88
|
-
font-size: 13px;
|
|
89
|
-
color: #444;
|
|
90
|
-
font-weight: normal;
|
|
91
|
-
> span + span {
|
|
92
|
-
margin-left: 15px;
|
|
93
|
-
}
|
|
94
|
-
.svg-inline--fa {
|
|
95
|
-
margin-right: 5px;
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.hover-operate-icon {
|
|
101
|
-
display: none;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
.ant-empty {
|
|
105
|
-
font-size: 12px;
|
|
106
|
-
.ant-empty-image {
|
|
107
|
-
height: 35px;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
+
.reference-view {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex-direction: column;
|
|
5
|
+
height: 100%;
|
|
6
|
+
:global {
|
|
7
|
+
.reference-header {
|
|
8
|
+
display: flex;
|
|
9
|
+
margin: 5px 20px 0 20px;
|
|
10
|
+
.multiple-remove {
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
color: #000;
|
|
13
|
+
cursor: pointer;
|
|
14
|
+
.ant-btn {
|
|
15
|
+
padding: 0 10px 0 0;
|
|
16
|
+
font-size: 16px;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
.multiple-remove-btn {
|
|
20
|
+
.ant-btn {
|
|
21
|
+
padding: 0 10px;
|
|
22
|
+
font-style: italic;
|
|
23
|
+
}
|
|
24
|
+
.del-btn {
|
|
25
|
+
color: #ff4d4f;
|
|
26
|
+
&:hover {
|
|
27
|
+
color: #ff7875;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
.cancel-btn {
|
|
31
|
+
color: #666;
|
|
32
|
+
&:hover {
|
|
33
|
+
color: @primary-color;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
.plus-icon {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
padding: 4px;
|
|
40
|
+
margin-left: 10px;
|
|
41
|
+
font-size: 13px;
|
|
42
|
+
line-height: 1px;
|
|
43
|
+
background: #1abc9c;
|
|
44
|
+
cursor: pointer;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
.reference-view-page {
|
|
48
|
+
display: block;
|
|
49
|
+
}
|
|
50
|
+
.reference-item {
|
|
51
|
+
display: flex;
|
|
52
|
+
position: relative;
|
|
53
|
+
justify-content: space-between;
|
|
54
|
+
align-items: center;
|
|
55
|
+
padding: 5px 20px;
|
|
56
|
+
&:hover {
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
.reference-item-content {
|
|
59
|
+
opacity: 0.4;
|
|
60
|
+
}
|
|
61
|
+
.reference-status-none {
|
|
62
|
+
display: none;
|
|
63
|
+
}
|
|
64
|
+
.hover-operate-icon {
|
|
65
|
+
display: block;
|
|
66
|
+
opacity: 1;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.reference-item-content {
|
|
70
|
+
flex: 1;
|
|
71
|
+
color: #000;
|
|
72
|
+
font-weight: 500;
|
|
73
|
+
.reference-content {
|
|
74
|
+
display: flex;
|
|
75
|
+
flex: 1;
|
|
76
|
+
.type-icon {
|
|
77
|
+
font-size: 15px;
|
|
78
|
+
padding-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.task-item-name.task-item-name_done {
|
|
82
|
+
color: #a8a8a8;
|
|
83
|
+
}
|
|
84
|
+
.task-control {
|
|
85
|
+
display: flex;
|
|
86
|
+
align-items: center;
|
|
87
|
+
padding: 5px 0;
|
|
88
|
+
font-size: 13px;
|
|
89
|
+
color: #444;
|
|
90
|
+
font-weight: normal;
|
|
91
|
+
> span + span {
|
|
92
|
+
margin-left: 15px;
|
|
93
|
+
}
|
|
94
|
+
.svg-inline--fa {
|
|
95
|
+
margin-right: 5px;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.hover-operate-icon {
|
|
101
|
+
display: none;
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
.ant-empty {
|
|
105
|
+
font-size: 12px;
|
|
106
|
+
.ant-empty-image {
|
|
107
|
+
height: 35px;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
-
import DocumentItem from "../../DocumentItem";
|
|
3
2
|
import React from "react";
|
|
3
|
+
import SubDocumentItem from "../../DocumentItem/SubDocumentItem";
|
|
4
4
|
import UnitItem from "@voplus/morpho-org/es/components/UnitItem";
|
|
5
5
|
import { UpLevel } from "../../../controls/ToolBar/buttons";
|
|
6
6
|
import { observe } from "@voplus/morpho-ui";
|
|
7
7
|
const ObjectItem = (props) => {
|
|
8
8
|
const { id, index, objectType } = { ...props };
|
|
9
9
|
return observe(() => (React.createElement(React.Fragment, null,
|
|
10
|
-
objectType === "Document" && (React.createElement(
|
|
10
|
+
objectType === "Document" && (React.createElement(SubDocumentItem, { id: id, toolbar: React.createElement(UpLevel, { size: "middle", id: id }) })),
|
|
11
11
|
objectType === "Unit" && React.createElement(UnitItem, { type: "sub", id: id, index: index }))));
|
|
12
12
|
};
|
|
13
13
|
export default ObjectItem;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickAccessSearch/ObjectItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/QuickAccessSearch/ObjectItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,eAAe,MAAM,oCAAoC,CAAC;AACjE,OAAO,QAAQ,MAAM,2CAA2C,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,UAAU,GAAG,CAAC,KAAuE,EAAE,EAAE;IAC9F,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,GAAG,KAAK,EAAE,CAAC;IAC/C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,KAAK,CAAC,QAAQ;QACb,UAAU,KAAK,UAAU,IAAI,CAC7B,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,oBAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,EAAC,EAAE,EAAE,EAAE,GAAI,GAAI,CACvE;QACA,UAAU,KAAK,MAAM,IAAI,oBAAC,QAAQ,IAAC,IAAI,EAAC,KAAK,EAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,GAAI,CACvD,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
3
|
+
import React, { useState } from "react";
|
|
3
4
|
import DocumentList from "../../../components/DocumentList";
|
|
4
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
5
6
|
import { Popover } from "@voplus/antd";
|
|
6
|
-
import React from "react";
|
|
7
7
|
import { faPaperclip } from "@fortawesome/pro-light-svg-icons";
|
|
8
8
|
import { observe } from "@voplus/morpho-ui";
|
|
9
9
|
import { useDataIconBarContext } from "../../../controls/DataIconBar/DataIconState";
|
|
10
10
|
const DocumentDataIcon = (props) => {
|
|
11
11
|
const { id, includes, exclude } = props;
|
|
12
12
|
const context = useDataIconBarContext();
|
|
13
|
+
const [visible, setVisible] = useState(false);
|
|
13
14
|
// const state = context.getState("DocumentDataIcon", () => new State());
|
|
14
15
|
const document = useDocument(id, { includes });
|
|
15
|
-
return observe(() => (React.createElement(Popover, { placement: "bottom", title: "Documents", overlayClassName: "documents-data-icon_popover", content: React.createElement("div", { className: "documents-container" },
|
|
16
|
-
React.createElement(DocumentList, { id: id, header: false, disabled: true, type: "
|
|
16
|
+
return observe(() => (React.createElement(Popover, { placement: "bottom", title: "Documents", overlayClassName: "documents-data-icon_popover", visible: visible, onVisibleChange: handleVisibleChange, content: React.createElement("div", { className: "documents-container", onClick: hide },
|
|
17
|
+
React.createElement(DocumentList, { id: id, header: false, disabled: true, type: "simple", exclude: exclude })) },
|
|
17
18
|
React.createElement("span", { className: "data-icon" },
|
|
18
19
|
React.createElement(FAIcon, { icon: faPaperclip }),
|
|
19
20
|
(document.documents || 0) > (document.taskNumbers || 0)
|
|
20
21
|
? (document.documents || 0) - (document.taskNumbers || 0)
|
|
21
22
|
: 0))));
|
|
23
|
+
/** 显示隐藏的回调 */
|
|
24
|
+
function handleVisibleChange(vi) {
|
|
25
|
+
setVisible(vi);
|
|
26
|
+
}
|
|
27
|
+
/** 隐藏Popover */
|
|
28
|
+
function hide() {
|
|
29
|
+
setVisible(false);
|
|
30
|
+
}
|
|
22
31
|
};
|
|
23
32
|
export default DocumentDataIcon;
|
|
24
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/data-icons/DocumentDataIcon/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAa,WAAW,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/data-icons/DocumentDataIcon/index.tsx"],"names":[],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,EAAC,WAAW;YAC1B,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;YAC5B,CAAC,QAAQ,CAAC,SAAU,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,CAAC,CAAC;gBACxD,CAAC,CAAC,CAAC,QAAQ,CAAC,SAAU,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,WAAW,IAAI,CAAC,CAAC;gBAC1D,CAAC,CAAC,CAAC,CACE,CACE,CACV,CAAC,CAAC;IAGH,cAAc;IACd,SAAS,mBAAmB,CAAC,EAAW;QACvC,UAAU,CAAC,EAAE,CAAC,CAAC;IAChB,CAAC;IACD,gBAAgB;IAChB,SAAS,IAAI;QACZ,UAAU,CAAC,KAAK,CAAC,CAAC;IACnB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
2
|
-
import DocumentItem from "../../../components/DocumentItem";
|
|
3
2
|
import { Empty } from "@voplus/antd";
|
|
4
3
|
import React from "react";
|
|
4
|
+
import SimpleDocumentItem from "../../../components/DocumentItem/SimpleDocumentItem";
|
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
|
6
6
|
const Content = (props) => {
|
|
7
7
|
const { id } = props;
|
|
@@ -12,7 +12,7 @@ const Content = (props) => {
|
|
|
12
12
|
return observe(() => {
|
|
13
13
|
var _a, _b;
|
|
14
14
|
return (React.createElement("div", { className: "path-container" }, ((_a = document.path) === null || _a === void 0 ? void 0 : _a.length) ? ((_b = document.path) === null || _b === void 0 ? void 0 : _b.map((item) => (React.createElement("div", { key: item.id, onClick: hide, className: "item-frame" },
|
|
15
|
-
React.createElement(
|
|
15
|
+
React.createElement(SimpleDocumentItem, { id: item.id }))))) : (React.createElement("div", { className: "path-item" },
|
|
16
16
|
React.createElement(Empty, { image: Empty.PRESENTED_IMAGE_SIMPLE, description: "No Path" })))));
|
|
17
17
|
});
|
|
18
18
|
/** 隐藏Popover */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/controls/data-icons/DocumentPathDataIcon/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,
|
|
1
|
+
{"version":3,"file":"Content.js","sourceRoot":"","sources":["../../../../src/controls/data-icons/DocumentPathDataIcon/Content.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAa,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEtE,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAAM,qDAAqD,CAAC;AACrF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,OAAO,GAAG,CAAC,KAIhB,EAAE,EAAE;IACD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE;QAC7B,MAAM,EAAE,CAAC,CAAY,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI;QACjC,QAAQ,EAAE,MAAM;KACnB,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACjB,6BAAK,SAAS,EAAC,gBAAgB,IAC1B,CAAA,MAAA,QAAQ,CAAC,IAAI,0CAAE,MAAM,EAAC,CAAC,CAAC,CACrB,MAAA,QAAQ,CAAC,IAAI,0CAAE,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CACzB,6BAAK,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAC,YAAY;YACpD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,CACjC,CACT,CAAC,CACL,CAAC,CAAC,CAAC,CACA,6BAAK,SAAS,EAAC,WAAW;YACtB,oBAAC,KAAK,IAAC,KAAK,EAAE,KAAK,CAAC,sBAAsB,EAAE,WAAW,EAAC,SAAS,GAAG,CAClE,CACT,CACC,CACT,CAAA;KAAA,CAAC,CAAC;IAEH,gBAAgB;IAChB,SAAS,IAAI,CAAC,EAAO;;QACjB,EAAE,CAAC,eAAe,EAAE,CAAC;QACrB,MAAA,KAAK,CAAC,MAAM,+CAAZ,KAAK,CAAW,CAAC;IACrB,CAAC;AACL,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { AsideContent, observe } from "@voplus/morpho-ui";
|
|
|
3
3
|
import { QuickSubContent, QuickSubTab } from "../../../../components/QuickViewDialog/QuickSubTab";
|
|
4
4
|
import React, { useState } from "react";
|
|
5
5
|
import { Button } from "@voplus/antd";
|
|
6
|
-
import
|
|
6
|
+
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
7
7
|
import GraphViewer from "../GraphViewer";
|
|
8
8
|
import QuickModal from "../../../../components/QuickViewDialog/QuickModal";
|
|
9
9
|
import { useLayout } from "@voplus/morpho-data";
|
|
@@ -18,7 +18,7 @@ const GraphQuickViewDialog = (props) => {
|
|
|
18
18
|
React.createElement(ArrowLeftOutlined, { style: { fontSize: "16px" }, onClick: props.onCancel }))),
|
|
19
19
|
React.createElement("div", { className: "perview-head" },
|
|
20
20
|
React.createElement(React.Fragment, null,
|
|
21
|
-
React.createElement(
|
|
21
|
+
React.createElement(DocumentHeader, { id: props.id, className: "perview-doc-head", clickNameEffect: "edit", autoSaveName: true, tagsVisible: false, toolsVisible: false, flagVisible: false, statusVisible: false, quickDataBarVisible: false, descriptionVisible: false }),
|
|
22
22
|
React.createElement("div", { className: "preview-tab" },
|
|
23
23
|
React.createElement(QuickSubTab, { shape: false, showSubTab: showSubTab }),
|
|
24
24
|
!layout.ui.mobile && React.createElement(Button, { icon: React.createElement(CloseOutlined, null), onClick: props.onCancel })))),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,oDAAoD,CAAC;AAClG,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,mDAAmD,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAE5C,MAAM,CAAC,YAAY,CAAC,GAAG,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,GAAI,CAC7E,CACU,CACZ;gBACN,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,SAAG,CACnC,CACQ,CACH,CACb,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,GAAW;QAC9B,SAAS,CAAC,IAAI,CAAC,CAAC;QAChB,YAAY,CAAC,SAAS,CACrB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,IAAI,EAAE,GAAG,EACT,KAAK,QACL,QAAQ,EAAE,GAAG,EAAE;gBACd,YAAY,CAAC,UAAU,EAAE,CAAC;gBAC1B,SAAS,CAAC,KAAK,CAAC,CAAC;YAClB,CAAC,GACA,EACF,EAAE,IAAI,EAAE,EAAE,EAAE,CACZ,CAAC;IACH,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/es/style/print.less
CHANGED
package/package.json
CHANGED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
declare const DocumentName: {
|
|
3
|
-
(props: {
|
|
4
|
-
id: string;
|
|
5
|
-
includes?: string | undefined;
|
|
6
|
-
showIcon?: boolean | undefined;
|
|
7
|
-
showTags?: boolean | undefined;
|
|
8
|
-
inlineEdit?: boolean | undefined;
|
|
9
|
-
editable?: boolean | undefined;
|
|
10
|
-
status?: boolean | undefined;
|
|
11
|
-
quickView?: boolean | undefined;
|
|
12
|
-
className?: string | undefined;
|
|
13
|
-
onBlur?: (() => void) | undefined;
|
|
14
|
-
onChange?: ((params?: any) => void) | undefined;
|
|
15
|
-
onChangeDisabled?: ((params?: any) => void) | undefined;
|
|
16
|
-
}): JSX.Element;
|
|
17
|
-
defaultProps: {
|
|
18
|
-
status: boolean;
|
|
19
|
-
showTags: boolean;
|
|
20
|
-
quickView: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export default DocumentName;
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { InlineEdit, useAsideContentContext } from "@voplus/morpho-ui";
|
|
2
|
-
import React, { useEffect, useState } from "react";
|
|
3
|
-
import { useDocument, useDocumentStore } from "@voplus/morpho-document-core";
|
|
4
|
-
import DocumentQuickViewDialog from "../DocumentQuickViewDialog";
|
|
5
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
6
|
-
import { Input } from "@voplus/antd";
|
|
7
|
-
import TagView from "../TagView";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import { faLock } from "@fortawesome/pro-light-svg-icons";
|
|
10
|
-
import { observe } from "@voplus/morpho-ui";
|
|
11
|
-
import styles from "./index.less";
|
|
12
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
13
|
-
import { useMetaStore } from "../../data";
|
|
14
|
-
const DocumentName = (props) => {
|
|
15
|
-
const metas = useMetaStore();
|
|
16
|
-
const { includes, showTags, showIcon, inlineEdit, editable, quickView, status } = props;
|
|
17
|
-
const layout = useLayout();
|
|
18
|
-
const docStore = useDocumentStore();
|
|
19
|
-
const asideContext = useAsideContentContext();
|
|
20
|
-
const doc = useDocument(props.id, { includes: includes });
|
|
21
|
-
const [name, setName] = useState(doc.name);
|
|
22
|
-
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
|
23
|
-
/** 新增document後按Edit名字为空 */
|
|
24
|
-
useEffect(() => {
|
|
25
|
-
if (editable)
|
|
26
|
-
setName(doc.name);
|
|
27
|
-
}, [editable]);
|
|
28
|
-
return observe(() => (React.createElement(React.Fragment, null,
|
|
29
|
-
React.createElement("div", { className: classnames(styles["document-name"], props.className) },
|
|
30
|
-
showIcon && (React.createElement("div", { className: "file-type" }, doc.loaded || doc.type ? metas.getIcon(doc) : null)),
|
|
31
|
-
inlineEdit && !doc.readonly ? (React.createElement(InlineEdit, { defaultValue: doc.name, content: (v) => (React.createElement("div", { className: classnames("file-name", "inline-edit") }, v.store.value)), onSave: (value) => save(value, doc.name, { Name: value }) })) : editable ? (React.createElement(Input.TextArea, { autoSize: true, autoFocus: true, value: name, onChange: onChange, onBlur: props.onBlur })) : (React.createElement("div", { className: "document-name-info" },
|
|
32
|
-
React.createElement("span", { className: "file-name", onClick: onQuickView }, doc.name),
|
|
33
|
-
status && doc.status === "Draft" && React.createElement("span", { className: "file-draft" }, "draft"),
|
|
34
|
-
status && doc.status === "Readonly" && (React.createElement(FAIcon, { className: "file-readonly", icon: faLock })),
|
|
35
|
-
showTags && React.createElement(TagView, { id: props.id, tags: doc.tags, editable: !doc.readonly })))),
|
|
36
|
-
React.createElement("div", { onDoubleClick: (e) => e.stopPropagation() }, visibleQuickView && (React.createElement(DocumentQuickViewDialog, { id: doc.id, visible: true, onCancel: onQuickView }))))));
|
|
37
|
-
/** Quick View */
|
|
38
|
-
function onQuickView() {
|
|
39
|
-
var _a;
|
|
40
|
-
if (!quickView)
|
|
41
|
-
return;
|
|
42
|
-
/* 手机模式 */
|
|
43
|
-
if (layout.ui.mobile) {
|
|
44
|
-
const element = asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent;
|
|
45
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement("div", { style: {
|
|
46
|
-
width: "100%",
|
|
47
|
-
height: "100%",
|
|
48
|
-
background: "#fff",
|
|
49
|
-
position: "absolute",
|
|
50
|
-
top: "0",
|
|
51
|
-
} },
|
|
52
|
-
React.createElement(DocumentQuickViewDialog, { id: doc.id, visible: true, onCancel: () => {
|
|
53
|
-
if (asideContext === null || asideContext === void 0 ? void 0 : asideContext.asideContent)
|
|
54
|
-
asideContext.closeAside();
|
|
55
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(element, { span: 12 });
|
|
56
|
-
} })), { span: 12 });
|
|
57
|
-
}
|
|
58
|
-
else {
|
|
59
|
-
setVisibleQuickView(!visibleQuickView);
|
|
60
|
-
(_a = props.onChangeDisabled) === null || _a === void 0 ? void 0 : _a.call(props, !visibleQuickView);
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/** Input.TextArea change */
|
|
64
|
-
function onChange(e) {
|
|
65
|
-
var _a;
|
|
66
|
-
setName(e.target.value);
|
|
67
|
-
(_a = props.onChange) === null || _a === void 0 ? void 0 : _a.call(props, e.target.value);
|
|
68
|
-
}
|
|
69
|
-
/** edit save */
|
|
70
|
-
function save(v, name, params) {
|
|
71
|
-
if (v.trim() === name)
|
|
72
|
-
return;
|
|
73
|
-
docStore.edit(doc.id, { data: params, error: "message" });
|
|
74
|
-
}
|
|
75
|
-
};
|
|
76
|
-
DocumentName.defaultProps = {
|
|
77
|
-
status: true,
|
|
78
|
-
showTags: true,
|
|
79
|
-
quickView: true,
|
|
80
|
-
};
|
|
81
|
-
export default DocumentName;
|
|
82
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentName/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACrC,OAAO,OAAO,MAAM,YAAY,CAAC;AACjC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,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M,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC;IACD,gBAAgB;IAChB,SAAS,IAAI,CAAC,CAAS,EAAE,IAAY,EAAE,MAA+B;QACrE,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,IAAI;YAAE,OAAO;QAC9B,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;IAC3D,CAAC;AACF,CAAC,CAAC;AAEF,YAAY,CAAC,YAAY,GAAG;IAC3B,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,SAAS,EAAE,IAAI;CACf,CAAC;AAEF,eAAe,YAAY,CAAC"}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
|
-
|
|
3
|
-
.document-name {
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
:global {
|
|
7
|
-
.file-type {
|
|
8
|
-
display: flex;
|
|
9
|
-
align-items: center;
|
|
10
|
-
width: 22px;
|
|
11
|
-
}
|
|
12
|
-
.document-name-info {
|
|
13
|
-
display: inline-block;
|
|
14
|
-
text-align: left;
|
|
15
|
-
z-index: 100;
|
|
16
|
-
}
|
|
17
|
-
.file-name {
|
|
18
|
-
color: #000;
|
|
19
|
-
font-size: 15px;
|
|
20
|
-
font-weight: 500;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
&.inline-edit {
|
|
23
|
-
cursor: text;
|
|
24
|
-
margin-right: 5px;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.file-draft {
|
|
28
|
-
color: #bbbbbb;
|
|
29
|
-
margin-left: 5px;
|
|
30
|
-
}
|
|
31
|
-
.file-readonly {
|
|
32
|
-
font-size: 12px;
|
|
33
|
-
color: #bbbbbb;
|
|
34
|
-
margin-left: 5px;
|
|
35
|
-
}
|
|
36
|
-
.tag-view {
|
|
37
|
-
display: inline-block;
|
|
38
|
-
position: relative;
|
|
39
|
-
z-index: 100;
|
|
40
|
-
.ant-tag {
|
|
41
|
-
margin: 0 0 0 5px;
|
|
42
|
-
padding: 0 5px;
|
|
43
|
-
font-size: 12px;
|
|
44
|
-
line-height: 15px;
|
|
45
|
-
}
|
|
46
|
-
.anticon-plus {
|
|
47
|
-
font-size: 12px;
|
|
48
|
-
transition: none;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
:global {
|
|
55
|
-
.aside-mobile {
|
|
56
|
-
> div {
|
|
57
|
-
position: relative;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|