@voplus/morpho-document 6.1.88 → 6.1.89
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/document-register/components/DocumentRegisterItem/index.js +3 -20
- package/es/modules/document-register/components/DocumentRegisterItem/index.js.map +1 -1
- package/es/modules/message-template/components/MessageTemplateItem/index.js +3 -19
- package/es/modules/message-template/components/MessageTemplateItem/index.js.map +1 -1
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.js +3 -20
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/document-register/components/DocumentRegisterItem/index.less +0 -45
- package/es/modules/message-template/components/MessageTemplateItem/index.less +0 -32
- package/es/modules/registered-document/components/RegisteredDocumentItem/index.less +0 -45
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
4
|
-
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
5
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
6
|
-
import classnames from "classnames";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DocumentItem from "../../../../components/DocumentItem/DocumentItem2";
|
|
7
3
|
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
10
4
|
const DocumentRegisterItem = (props) => {
|
|
11
5
|
const { id } = props;
|
|
12
|
-
|
|
13
|
-
const documentRegister = useDocumentRegister(id);
|
|
14
|
-
const store = useDocumentRegisterStore();
|
|
15
|
-
const [hover, setHover] = useState(false);
|
|
16
|
-
return observe(() => (React.createElement(DocumentHeader, { id: documentRegister.id, clickNameEffect: "default", quickDataBarAlign: "left",
|
|
17
|
-
// tagsVisible={!!documentRegister.tags?.length}
|
|
18
|
-
className: styles["document-register-item"], onMouse: (over) => setHover(over), tools: React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement("div", { className: classnames("hover-operate-icon", { show: hover }) },
|
|
20
|
-
React.createElement(ToolBar, { id: id, moreProps: {
|
|
21
|
-
buttonProps: { size: "middle" },
|
|
22
|
-
} },
|
|
23
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(documentRegister) })))) })));
|
|
6
|
+
return observe(() => React.createElement(DocumentItem, { id: id }));
|
|
24
7
|
};
|
|
25
8
|
export default DocumentRegisterItem;
|
|
26
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/document-register/components/DocumentRegisterItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,oBAAoB,GAAG,CAAC,KAAiC,EAAE,EAAE;IAClE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
4
|
-
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DocumentItem from "../../../../components/DocumentItem/DocumentItem2";
|
|
5
3
|
import { observe } from "@voplus/morpho-ui";
|
|
6
|
-
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
7
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
8
|
-
import classnames from "classnames";
|
|
9
|
-
import styles from "./index.less";
|
|
10
4
|
const MessageTemplateItem = (props) => {
|
|
11
5
|
const { id } = props;
|
|
12
|
-
|
|
13
|
-
const data = useMessageTemplate(id);
|
|
14
|
-
const [hover, setHover] = useState(false);
|
|
15
|
-
return observe(() => {
|
|
16
|
-
var _a;
|
|
17
|
-
return (React.createElement(DocumentHeader, { id: data.id, clickNameEffect: "default", quickDataBarAlign: "left", tagsVisible: !!((_a = data.tags) === null || _a === void 0 ? void 0 : _a.length), className: styles["message-template-item"], onMouse: (over) => setHover(over), tools: React.createElement("div", { className: classnames("hover-operate-icon", { show: hover }) },
|
|
18
|
-
React.createElement(ToolBar, { id: id, moreProps: {
|
|
19
|
-
buttonProps: { size: "middle" },
|
|
20
|
-
} },
|
|
21
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(data) }))) }));
|
|
22
|
-
});
|
|
6
|
+
return observe(() => React.createElement(DocumentItem, { id: id }));
|
|
23
7
|
};
|
|
24
8
|
export default MessageTemplateItem;
|
|
25
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-template/components/MessageTemplateItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,mBAAmB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACrD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,26 +1,9 @@
|
|
|
1
|
-
import React
|
|
2
|
-
import
|
|
3
|
-
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
4
|
-
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
5
|
-
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
6
|
-
import classnames from "classnames";
|
|
1
|
+
import React from "react";
|
|
2
|
+
import DocumentItem from "../../../../components/DocumentItem/DocumentItem2";
|
|
7
3
|
import { observe } from "@voplus/morpho-ui";
|
|
8
|
-
import styles from "./index.less";
|
|
9
|
-
import { useMetaStore } from "@voplus/morpho-document-core";
|
|
10
4
|
const RegisteredDocumentItem = (props) => {
|
|
11
5
|
const { id } = props;
|
|
12
|
-
|
|
13
|
-
const documentRegister = useRegisteredDocument(id);
|
|
14
|
-
const store = useRegisteredDocumentStore();
|
|
15
|
-
const [hover, setHover] = useState(false);
|
|
16
|
-
return observe(() => (React.createElement(DocumentHeader, { id: documentRegister.id, clickNameEffect: "default", quickDataBarAlign: "left",
|
|
17
|
-
// tagsVisible={!!documentRegister.tags?.length}
|
|
18
|
-
className: styles["registered-document-item"], onMouse: (over) => setHover(over), tools: React.createElement(React.Fragment, null,
|
|
19
|
-
React.createElement("div", { className: classnames("hover-operate-icon", { show: hover }) },
|
|
20
|
-
React.createElement(ToolBar, { id: id, moreProps: {
|
|
21
|
-
buttonProps: { size: "middle" },
|
|
22
|
-
} },
|
|
23
|
-
React.createElement(Open, { size: "middle", url: meta.getRoute(documentRegister) })))) })));
|
|
6
|
+
return observe(() => React.createElement(DocumentItem, { id: id }));
|
|
24
7
|
};
|
|
25
8
|
export default RegisteredDocumentItem;
|
|
26
9
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/components/RegisteredDocumentItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/registered-document/components/RegisteredDocumentItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,YAAY,MAAM,mDAAmD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,sBAAsB,GAAG,CAAC,KAAiC,EAAE,EAAE;IACpE,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,GAAI,CAAC,CAAC;AAChD,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.document-register-item {
|
|
2
|
-
position: relative;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
|
|
7
|
-
&:global(:after) {
|
|
8
|
-
position: absolute;
|
|
9
|
-
content: "";
|
|
10
|
-
left: 20px;
|
|
11
|
-
right: 20px;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
border-bottom: 1px solid #f2f2f2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:global {
|
|
17
|
-
.document-register-status-label {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transition: opacity 0.3s;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
|
|
22
|
-
&.hide {
|
|
23
|
-
opacity: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.hover-operate-icon {
|
|
28
|
-
display: none;
|
|
29
|
-
position: absolute;
|
|
30
|
-
right: 20px;
|
|
31
|
-
|
|
32
|
-
.ant-btn:first-child {
|
|
33
|
-
margin-left: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.show {
|
|
37
|
-
display: block;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.due-date {
|
|
42
|
-
margin-right: 12px;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
.message-template-item {
|
|
2
|
-
position: relative;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
|
|
7
|
-
&:global(:after) {
|
|
8
|
-
position: absolute;
|
|
9
|
-
content: "";
|
|
10
|
-
left: 20px;
|
|
11
|
-
right: 20px;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
border-bottom: 1px solid #f2f2f2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:global {
|
|
17
|
-
.hover-operate-icon {
|
|
18
|
-
display: none;
|
|
19
|
-
position: absolute;
|
|
20
|
-
right: 20px;
|
|
21
|
-
|
|
22
|
-
.ant-btn:first-child {
|
|
23
|
-
margin-left: 0;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
&.show {
|
|
27
|
-
display: block;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
.registered-document-item {
|
|
2
|
-
position: relative;
|
|
3
|
-
align-items: center;
|
|
4
|
-
cursor: pointer;
|
|
5
|
-
background-color: transparent;
|
|
6
|
-
|
|
7
|
-
&:global(:after) {
|
|
8
|
-
position: absolute;
|
|
9
|
-
content: "";
|
|
10
|
-
left: 20px;
|
|
11
|
-
right: 20px;
|
|
12
|
-
bottom: 0;
|
|
13
|
-
border-bottom: 1px solid #f2f2f2;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
:global {
|
|
17
|
-
.registered-document-status-label {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transition: opacity 0.3s;
|
|
20
|
-
flex-shrink: 0;
|
|
21
|
-
|
|
22
|
-
&.hide {
|
|
23
|
-
opacity: 0;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.hover-operate-icon {
|
|
28
|
-
display: none;
|
|
29
|
-
position: absolute;
|
|
30
|
-
right: 20px;
|
|
31
|
-
|
|
32
|
-
.ant-btn:first-child {
|
|
33
|
-
margin-left: 0;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.show {
|
|
37
|
-
display: block;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
.due-date {
|
|
42
|
-
margin-right: 12px;
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
}
|