@voplus/morpho-document 6.0.42 → 6.0.43
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/DocumentProperties/index.d.ts +0 -4
- package/es/components/DocumentProperties/index.js +12 -16
- package/es/components/DocumentProperties/index.js.map +1 -1
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js +9 -10
- package/es/modules/document-register/components/DocumentRegisterProperties/index.js.map +1 -1
- package/es/modules/graph/components/GraphProperties/index.js +1 -1
- package/es/modules/graph/components/GraphProperties/index.js.map +1 -1
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js +4 -5
- package/es/pages/Signature/Envelope/components/EnvelopeProperties/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ import { useDocument, useDocumentStore } from "@voplus/morpho-document-core";
|
|
|
3
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
4
|
import { faLock } from "@fortawesome/pro-light-svg-icons";
|
|
5
5
|
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import
|
|
6
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
7
7
|
import DocumentSelectDialog from "../../components/DocumentSelectDialog";
|
|
8
8
|
import ChildDocumentSelect from "../../controls/ChildDocumentSelect";
|
|
9
9
|
import DocumentReference from "../../controls/DocumentReference";
|
|
@@ -26,7 +26,7 @@ export const AllDocumentProperties = [
|
|
|
26
26
|
const DocumentProperties = (props) => {
|
|
27
27
|
/** 加class name 为了方便做integration tests */
|
|
28
28
|
const classId = "document-properties";
|
|
29
|
-
const { id,
|
|
29
|
+
const { id, title, customProperties } = props;
|
|
30
30
|
const doc = useDocument(id, {
|
|
31
31
|
reload: (i) => !i.tags || !i.createdBy || !i.folder,
|
|
32
32
|
includes: "tags,createdby,folder",
|
|
@@ -37,7 +37,7 @@ const DocumentProperties = (props) => {
|
|
|
37
37
|
const [folderEditable, setFolderEditable] = useState(false);
|
|
38
38
|
const filterPro = customProperties === null || customProperties === void 0 ? void 0 : customProperties.filter((i) => (i === null || i === void 0 ? void 0 : i.visible) !== false);
|
|
39
39
|
return observe(() => (React.createElement("div", { className: classnames(styles["document-roperties"], props.className) },
|
|
40
|
-
React.createElement(PropertiesSection, { title: title, properties: (
|
|
40
|
+
React.createElement(PropertiesSection, { title: title, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
41
41
|
visible && (React.createElement(DocumentSelectDialog, { onCancel: () => setVisible(false), onSelect: (folder) => {
|
|
42
42
|
store.edit(id, { data: { FolderId: folder[0].id }, error: "message" });
|
|
43
43
|
onBulurFolder();
|
|
@@ -47,25 +47,21 @@ const DocumentProperties = (props) => {
|
|
|
47
47
|
var _a, _b;
|
|
48
48
|
switch (item.name) {
|
|
49
49
|
case "Tags":
|
|
50
|
-
return
|
|
51
|
-
React.createElement(TagView, { id: id, tags: doc.tags, editable: !doc.readonly, items: store.items })));
|
|
50
|
+
return React.createElement(TagView, { id: id, tags: doc.tags, editable: !doc.readonly, items: store.items });
|
|
52
51
|
/** Status / Priority 只有在 PanelHeader 隐藏的时候显示 */
|
|
53
52
|
case "Status":
|
|
54
|
-
return
|
|
53
|
+
return doc.status === "Readonly" ? (React.createElement(FAIcon, { className: "file-lock", icon: faLock })) : (React.createElement("span", { className: classnames({ "file-draft": doc.status === "Draft" }) }, doc.status));
|
|
55
54
|
case "Priority":
|
|
56
|
-
return
|
|
57
|
-
React.createElement(FlagIcon, { id: id, flag: doc.flag, editable: !doc.readonly })));
|
|
55
|
+
return React.createElement(FlagIcon, { id: id, flag: doc.flag, editable: !doc.readonly });
|
|
58
56
|
case "Create By":
|
|
59
|
-
return (React.createElement(
|
|
60
|
-
React.createElement(MentionList, { contacts: doc.createdBy ? [doc.createdBy] : [], canEdit: false, placeholder: "no Data" })));
|
|
57
|
+
return (React.createElement(MentionList, { contacts: doc.createdBy ? [doc.createdBy] : [], canEdit: false, placeholder: "no Data" }));
|
|
61
58
|
case "Create Date":
|
|
62
|
-
return
|
|
59
|
+
return doc.createDate ? (React.createElement("span", { className: "properties-value" }, dayjs(doc.createDate).format("DD MMM YYYY"))) : (React.createElement("span", { className: "add-info-style" }, "no Data"));
|
|
63
60
|
case "Folder":
|
|
64
|
-
return (React.createElement(
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}, onBlur: onBulurFolder })) : doc.folder ? (React.createElement(DocumentReference, { id: doc.parentNodeId })) : (React.createElement("span", { className: "add-info-style" }, "Add Folder")))));
|
|
61
|
+
return (React.createElement(FolderEdit, { showEditIcon: showEditIcon, onEditIconClick: onEditFolder }, folderEditable && ((_a = doc.folder) === null || _a === void 0 ? void 0 : _a.parentNodeId) ? (React.createElement(ChildDocumentSelect, { id: doc.folder.parentNodeId, multiple: false, defaultValue: (_b = doc.folder) === null || _b === void 0 ? void 0 : _b.name, onChange: (doc) => {
|
|
62
|
+
store.edit(id, { data: { FolderId: doc.id }, error: "message" });
|
|
63
|
+
onBulurFolder();
|
|
64
|
+
}, onBlur: onBulurFolder })) : doc.folder ? (React.createElement(DocumentReference, { id: doc.parentNodeId })) : (React.createElement("span", { className: "add-info-style" }, "Add Folder"))));
|
|
69
65
|
}
|
|
70
66
|
}
|
|
71
67
|
function onEditFolder() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAa,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AACxF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EA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AAC,CAAC,CAAC,CACH,8BAAM,SAAS,EAAC,gBAAgB,iBAAkB,CAClD,CACW,CACb,CAAC;QACJ,CAAC;IACF,CAAC;IAED,SAAS,YAAY;;QACpB,IAAI,CAAC,CAAA,MAAA,GAAG,CAAC,MAAM,0CAAE,YAAY,CAAA;YAAE,UAAU,CAAC,IAAI,CAAC,CAAC;QAEhD,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACxB,eAAe,CAAC,KAAK,CAAC,CAAC;IACxB,CAAC;IAED,SAAS,aAAa;QACrB,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,iBAAiB,CAAC,KAAK,CAAC,CAAC;IAC1B,CAAC;AACF,CAAC,CAAC;AAEF,kBAAkB,CAAC,YAAY,GAAG;IACjC,gBAAgB,EAAE;QACjB,EAAE,IAAI,EAAE,MAAM,EAAE;QAChB,EAAE,IAAI,EAAE,aAAa,EAAE;QACvB,EAAE,IAAI,EAAE,WAAW,EAAE;QACrB,EAAE,IAAI,EAAE,QAAQ,EAAE;KAClB;CACD,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { message } from "antd";
|
|
2
2
|
import { useDocumentRegister, useDocumentRegisterStore } from "../../../../data/document-register";
|
|
3
3
|
import DescriptionEditor from "../../../../controls/DescriptionEditor";
|
|
4
4
|
import DocumentPanelHeader from "../../../../components/DocumentPanelHeader";
|
|
5
5
|
import DocumentProperties from "../../../../components/DocumentProperties";
|
|
6
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
6
7
|
import DocumentRegisterStatusLabel from "../../controls/DocumentRegisterStatusLabel";
|
|
7
8
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
8
9
|
import React from "react";
|
|
@@ -19,19 +20,17 @@ const DocumentRegisterProperties = (props) => {
|
|
|
19
20
|
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
20
21
|
React.createElement(Scrollbars, { autoHide: true },
|
|
21
22
|
React.createElement(DescriptionEditor, { id: id, description: documentRegister.description, readonly: documentRegister.readonly }),
|
|
22
|
-
React.createElement(PropertiesSection, { title: documentRegisterTitle, properties: (
|
|
23
|
-
React.createElement(DocumentProperties, { id: id,
|
|
23
|
+
React.createElement(PropertiesSection, { title: documentRegisterTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
24
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
24
25
|
function renderProp(item) {
|
|
25
26
|
switch (item.name) {
|
|
26
27
|
case "Status":
|
|
27
|
-
return (React.createElement(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}) })));
|
|
28
|
+
return (React.createElement(DocumentRegisterStatusLabel, { status: documentRegister.documentRegisterStatus, editable: !documentRegister.readonly, onChange: (DocumentRegisterStatus) => store.edit(documentRegister.id, {
|
|
29
|
+
data: { DocumentRegisterStatus },
|
|
30
|
+
error: (error) => message.error(error.message),
|
|
31
|
+
}) }));
|
|
32
32
|
case "Type":
|
|
33
|
-
return
|
|
34
|
-
React.createElement("span", null, documentRegister.type)));
|
|
33
|
+
return React.createElement("span", null, documentRegister.type);
|
|
35
34
|
}
|
|
36
35
|
}
|
|
37
36
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CA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E,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CAClE,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
|
@@ -6,7 +6,7 @@ const GraphProperties = (props) => {
|
|
|
6
6
|
const { id, documentTitle, documentProperties } = props;
|
|
7
7
|
return observe(() => (React.createElement("div", { className: "properties-list" },
|
|
8
8
|
React.createElement(DocumentPanelHeader, { id: id }),
|
|
9
|
-
React.createElement(DocumentProperties, {
|
|
9
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties }))));
|
|
10
10
|
};
|
|
11
11
|
GraphProperties.defaultProps = {
|
|
12
12
|
documentTitle: "Document Properties",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,4CAA4C,CAAC;AAC7E,OAAO,kBAEN,MAAM,2CAA2C,CAAC;AAEnD,MAAM,eAAe,GAAG,CAAC,KAOxB,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,aAAa,EAAE,kBAAkB,EAAE,GAAG,KAAK,CAAC;IAExD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iBAAiB;QAC/B,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,GAAI;QAC/B,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,kBAAkB,GAAI,CACrF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,aAAa,EAAE,qBAAqB;CACpC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { Form } from "antd";
|
|
3
2
|
import { Scrollbars } from "react-custom-scrollbars-2";
|
|
4
3
|
import { observe } from "@voplus/morpho-ui";
|
|
5
4
|
import { useEnvelope } from "../../../data/envelope";
|
|
6
5
|
import DescriptionEditor from "../../../../../controls/DescriptionEditor";
|
|
7
6
|
import DocumentPanelHeader from "../../../../../components/DocumentPanelHeader";
|
|
8
7
|
import DocumentProperties from "../../../../../components/DocumentProperties";
|
|
8
|
+
import Prop from "@voplus/morpho-ui/es/controls/Prop";
|
|
9
9
|
import EnvelopeStatusLabel from "../../controls/EnvelopeStatusLabel";
|
|
10
10
|
import PropertiesSection from "@voplus/morpho-ui/es/controls/PropertiesSection";
|
|
11
11
|
const EnvelopeProperties = (props) => {
|
|
@@ -18,13 +18,12 @@ const EnvelopeProperties = (props) => {
|
|
|
18
18
|
headerVisible && React.createElement(DocumentPanelHeader, { id: id }),
|
|
19
19
|
React.createElement(Scrollbars, { autoHide: true },
|
|
20
20
|
React.createElement(DescriptionEditor, { id: id, description: envelope.description, readonly: envelope.readonly }),
|
|
21
|
-
React.createElement(PropertiesSection, { title: envelopeTitle, properties: (
|
|
22
|
-
React.createElement(DocumentProperties, { id: id,
|
|
21
|
+
React.createElement(PropertiesSection, { title: envelopeTitle, properties: () => filterPro === null || filterPro === void 0 ? void 0 : filterPro.map((i) => (React.createElement(Prop, { key: i.name, label: i.name, className: `${classId}-${i.name}` }, renderProp(i)))) }),
|
|
22
|
+
React.createElement(DocumentProperties, { id: id, title: documentTitle, customProperties: documentProperties })))));
|
|
23
23
|
function renderProp(item) {
|
|
24
24
|
switch (item.name) {
|
|
25
25
|
case "Status":
|
|
26
|
-
return
|
|
27
|
-
React.createElement(EnvelopeStatusLabel, { status: envelope.envelopeStatus })));
|
|
26
|
+
return React.createElement(EnvelopeStatusLabel, { status: envelope.envelopeStatus });
|
|
28
27
|
}
|
|
29
28
|
}
|
|
30
29
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/components/EnvelopeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/pages/Signature/Envelope/components/EnvelopeProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,iBAAiB,MAAM,2CAA2C,CAAC;AAC1E,OAAO,mBAAmB,MAAM,+CAA+C,CAAC;AAChF,OAAO,kBAEN,MAAM,8CAA8C,CAAC;AACtD,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,iBAAiB,MAAM,iDAAiD,CAAC;AAIhF,MAAM,kBAAkB,GAAG,CAAC,KAU3B,EAAE,EAAE;IACJ,yCAAyC;IACzC,MAAM,OAAO,GAAG,qBAAqB,CAAC;IAEtC,MAAM,EACL,EAAE,EACF,aAAa,EACb,aAAa,EACb,aAAa,EACb,kBAAkB,EAClB,kBAAkB,GAClB,GAAG,KAAK,CAAC;IACV,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,MAAM,SAAS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