@voplus/morpho-document 1.0.0-dev289 → 1.0.0-dev291
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/changelog.md +9 -0
- package/es/components/AdvanceSearch/index.js +1 -1
- package/es/components/AdvanceSearch/index.js.map +1 -1
- package/es/components/DescriptionDocumentList/index.d.ts +6 -0
- package/es/components/DescriptionDocumentList/index.js +22 -0
- package/es/components/DescriptionDocumentList/index.js.map +1 -0
- package/es/components/{DocumentDescription → DescriptionDocumentList}/index.less +3 -3
- package/es/components/DocumentName/index.js.map +1 -1
- package/es/components/DocumentPasteUpload/index.js +1 -1
- package/es/components/DocumentPasteUpload/index.js.map +1 -1
- package/es/components/DocumentPropertiesView/index.js +4 -4
- package/es/components/DocumentPropertiesView/index.js.map +1 -1
- package/es/components/DocumentQuickViewDialog/index.js +2 -2
- package/es/components/DocumentQuickViewDialog/index.js.map +1 -1
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js +3 -3
- package/es/components/DocumentSortableTree/themes/SortableTreeDocumentTheme/tree-node-renderer.js.map +1 -1
- package/es/components/Links/index.js +1 -1
- package/es/components/Links/index.js.map +1 -1
- package/es/components/Links/index.less +111 -111
- package/es/components/QuickViewDialog/index.less +1 -0
- package/es/components/TextPropertiesView/index.js +1 -1
- package/es/components/TextPropertiesView/index.js.map +1 -1
- package/es/components/TextQuickViewDialog/index.d.ts +1 -0
- package/es/components/TextQuickViewDialog/index.js +12 -4
- package/es/components/TextQuickViewDialog/index.js.map +1 -1
- package/es/components/TextQuickViewDialog/index.less +7 -0
- package/es/controls/DescriptionEditor/index.less +4 -1
- package/es/controls/PDFViewer/Toolbar/index.d.ts +2 -1
- package/es/controls/PDFViewer/Toolbar/index.js +2 -2
- package/es/controls/PDFViewer/Toolbar/index.js.map +1 -1
- package/es/data/FileStore/FileStore.d.ts +1 -1
- package/es/data/metas/TextMeta.d.ts +3 -0
- package/es/data/metas/TextMeta.js +9 -0
- package/es/data/metas/TextMeta.js.map +1 -1
- package/es/modules/unit/UnitUIService.d.ts +3 -2
- package/es/modules/unit/UnitUIService.js +5 -1
- package/es/modules/unit/UnitUIService.js.map +1 -1
- package/es/modules/unit/components/ContactUserInfoView/index.d.ts +4 -1
- package/es/modules/unit/components/ContactUserInfoView/index.js +18 -15
- package/es/modules/unit/components/ContactUserInfoView/index.js.map +1 -1
- package/es/modules/unit/components/ContactUserInfoView/index.less +26 -16
- package/es/modules/unit/components/NewUnitForm/index.d.ts +1 -1
- package/es/modules/unit/components/NewUnitForm/index.js +3 -3
- package/es/modules/unit/components/NewUnitForm/index.js.map +1 -1
- package/es/modules/unit/components/NewUnitForm/state.js +2 -3
- package/es/modules/unit/components/NewUnitForm/state.js.map +1 -1
- package/es/modules/unit/components/UnitDetails/index.js.map +1 -1
- package/es/modules/unit/components/UnitHead/index.js.map +1 -1
- package/es/modules/unit/components/UnitItem/Item.d.ts +1 -0
- package/es/modules/unit/components/UnitItem/Item.js +19 -9
- package/es/modules/unit/components/UnitItem/Item.js.map +1 -1
- package/es/modules/unit/components/UnitItem/index.js +1 -1
- package/es/modules/unit/components/UnitItem/index.js.map +1 -1
- package/es/modules/unit/components/UnitItem/index.less +1 -0
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.d.ts +15 -0
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js +50 -0
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js.map +1 -0
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.less +22 -0
- package/es/modules/unit/components/UnitQuickView/index.d.ts +9 -0
- package/es/modules/unit/components/UnitQuickView/index.js +30 -0
- package/es/modules/unit/components/UnitQuickView/index.js.map +1 -0
- package/es/modules/unit/components/UnitQuickView/index.less +63 -0
- package/es/modules/unit/components/UnitQuickView/state.d.ts +8 -0
- package/es/modules/unit/components/UnitQuickView/state.js +26 -0
- package/es/modules/unit/components/UnitQuickView/state.js.map +1 -0
- package/es/modules/unit/components/UnitTabs/index.js +1 -1
- package/es/modules/unit/components/UnitTabs/index.js.map +1 -1
- package/es/modules/unit/controls/ContactSelect/state.d.ts +1 -1
- package/es/modules/unit/data/UnitStore.d.ts +6 -0
- package/es/modules/unit/data/UnitStore.js +9 -0
- package/es/modules/unit/data/UnitStore.js.map +1 -1
- package/es/modules/unit/data/hooks/index.d.ts +1 -0
- package/es/modules/unit/data/hooks/index.js +1 -0
- package/es/modules/unit/data/hooks/index.js.map +1 -1
- package/es/pages/Page/PageDefaultView/index.js +1 -1
- package/es/pages/Page/PageDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js +1 -1
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.d.ts +1 -0
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +15 -16
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.less +12 -5
- package/es/pages/VSubmit/components/EmailRecipients/index.less +7 -5
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.d.ts +0 -4
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js +15 -19
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.less +12 -48
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/state.d.ts +4 -4
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/state.js +6 -6
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/state.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/index.js +8 -15
- package/es/pages/VSubmit/components/SubmitSections/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/index.less +16 -26
- package/package.json +5 -6
- package/es/components/DocumentDescription/index.d.ts +0 -7
- package/es/components/DocumentDescription/index.js +0 -23
- package/es/components/DocumentDescription/index.js.map +0 -1
|
@@ -4,10 +4,10 @@ export class State {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
/** 是否显示 Description*/
|
|
6
6
|
this.isDescription = false;
|
|
7
|
-
/**
|
|
8
|
-
this.
|
|
9
|
-
/**
|
|
10
|
-
this.
|
|
7
|
+
/** collapse SectionItem */
|
|
8
|
+
this.collapse = false;
|
|
9
|
+
/** over of MouseOver */
|
|
10
|
+
this.over = false;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
__decorate([
|
|
@@ -15,8 +15,8 @@ __decorate([
|
|
|
15
15
|
], State.prototype, "isDescription", void 0);
|
|
16
16
|
__decorate([
|
|
17
17
|
observable
|
|
18
|
-
], State.prototype, "
|
|
18
|
+
], State.prototype, "collapse", void 0);
|
|
19
19
|
__decorate([
|
|
20
20
|
observable
|
|
21
|
-
], State.prototype, "
|
|
21
|
+
], State.prototype, "over", void 0);
|
|
22
22
|
//# sourceMappingURL=state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/pages/VSubmit/components/SubmitSections/SectionItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpD,MAAM,OAAO,KAAK;IAAlB;QACC,sBAAsB;QACH,kBAAa,GAAG,KAAK,CAAC;QACzC,
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/pages/VSubmit/components/SubmitSections/SectionItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAoB,UAAU,EAAE,MAAM,MAAM,CAAC;AAEpD,MAAM,OAAO,KAAK;IAAlB;QACC,sBAAsB;QACH,kBAAa,GAAG,KAAK,CAAC;QACzC,2BAA2B;QACR,aAAQ,GAAG,KAAK,CAAC;QACpC,wBAAwB;QACL,SAAI,GAAG,KAAK,CAAC;IACjC,CAAC;CAAA;AALY;IAAX,UAAU;4CAA8B;AAE7B;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;mCAAqB"}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BatchHeader, DeleteButton, MoveButton } from "@voplus/morpho-ui/es/components/layout/ListView/headers";
|
|
1
|
+
import { Card, useRenderOnChange } from "@voplus/morpho-ui";
|
|
3
2
|
import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore } from "@voplus/morpho-document-core";
|
|
3
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
4
4
|
import React, { useState } from "react";
|
|
5
5
|
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
|
6
6
|
import NewDocumentForm from "../../../../components/NewDocumentForm";
|
|
7
7
|
import SectionItem from "./SectionItem";
|
|
8
|
+
import classnames from "classnames";
|
|
8
9
|
import styles from "./index.less";
|
|
9
10
|
import { useObserver } from "mobx-react-lite";
|
|
10
|
-
import { useRenderOnChange } from "@voplus/morpho-ui";
|
|
11
11
|
const SubmitSections = (props) => {
|
|
12
12
|
const [addAble, setAddAble] = useState(false);
|
|
13
13
|
const documents = useDocumentStore();
|
|
@@ -29,26 +29,19 @@ const SubmitSections = (props) => {
|
|
|
29
29
|
React.createElement("div", { className: "submit-sections-list" },
|
|
30
30
|
React.createElement(ListDataContext.Provider, { value: list },
|
|
31
31
|
React.createElement(ListView, { className: styles["document-list-view"], renderId: id, headerProps: {
|
|
32
|
-
header: !readonly ? (React.createElement(BatchHeader, { viewTitle: "File Submit Details", buttons: [
|
|
33
|
-
React.createElement(DeleteButton, { execute: onDelete, key: "DeleteButton" }),
|
|
34
|
-
React.createElement(MoveButton, { execute: onMove, key: "MoveButton" })
|
|
35
|
-
] })) : (undefined),
|
|
36
32
|
viewTitle: "File Submit Details",
|
|
37
33
|
sortable: false,
|
|
38
34
|
addAble: readonly ? false : true,
|
|
39
35
|
onAdd: () => setAddAble(!addAble)
|
|
40
|
-
}, moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
36
|
+
}, moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource }) => (React.createElement(Card, { className: classnames("sections-item-card", {
|
|
37
|
+
"sections-item-card_zero": index === 0
|
|
38
|
+
}) },
|
|
39
|
+
React.createElement(SectionItem, { key: item.id, id: item.id, readonly: readonly, connectDragSource: connectDragSource }))) }))),
|
|
40
|
+
addAble && (React.createElement(NewDocumentForm, { parentId: props.id, type: "document", placeholder: "Enter a title for this section", className: "new-section-form", onCancel: () => setAddAble(false) })))));
|
|
45
41
|
// order by sub task
|
|
46
42
|
async function moveAfter(id, afterId) {
|
|
47
43
|
await documents.moveAfter(id, afterId);
|
|
48
44
|
}
|
|
49
|
-
async function onDelete(state) {
|
|
50
|
-
await documents.delete(state.ids, { DeleteChilds: true });
|
|
51
|
-
}
|
|
52
45
|
};
|
|
53
46
|
export default SubmitSections;
|
|
54
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/VSubmit/components/SubmitSections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/VSubmit/components/SubmitSections/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,WAAW,MAAM,eAAe,CAAC;AACx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
flex-direction: column;
|
|
5
6
|
:global {
|
|
6
|
-
.submit-sections-header {
|
|
7
|
-
display: flex;
|
|
8
|
-
justify-content: space-between;
|
|
9
|
-
align-items: center;
|
|
10
|
-
font-size: 16px;
|
|
11
|
-
color: #000000;
|
|
12
|
-
padding: 10px 20px;
|
|
13
|
-
border-bottom: 1px solid #f2f2f2;
|
|
14
|
-
.submit-plus-icon {
|
|
15
|
-
display: inline-block;
|
|
16
|
-
padding: 4px;
|
|
17
|
-
font-size: 13px;
|
|
18
|
-
line-height: 1px;
|
|
19
|
-
color: #ffffff;
|
|
20
|
-
background: #1abc9c;
|
|
21
|
-
cursor: pointer;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
.submit-description {
|
|
25
|
-
padding: 0 20px 10px 20px;
|
|
26
|
-
}
|
|
27
7
|
.submit-sections-list {
|
|
28
8
|
flex: 1;
|
|
9
|
+
.list-view-header{
|
|
10
|
+
background: #ffffff;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
.sections-item-card {
|
|
14
|
+
max-width: 70rem;
|
|
15
|
+
margin-left: auto;
|
|
16
|
+
margin-right: auto;
|
|
17
|
+
padding: 0 20px 20px 20px;
|
|
18
|
+
background-color: @background-color-base;
|
|
19
|
+
&.sections-item-card_zero {
|
|
20
|
+
padding-top: 20px;
|
|
21
|
+
}
|
|
29
22
|
}
|
|
30
|
-
.
|
|
31
|
-
|
|
32
|
-
bottom: 0;
|
|
33
|
-
z-index: 9999;
|
|
34
|
-
background: #fff;
|
|
23
|
+
.new-section-form{
|
|
24
|
+
background: #ffffff;
|
|
35
25
|
}
|
|
36
26
|
}
|
|
37
27
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@voplus/morpho-document",
|
|
3
|
-
"version": "1.0.0-
|
|
3
|
+
"version": "1.0.0-dev291",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -62,13 +62,12 @@
|
|
|
62
62
|
"@voplus/antd": "^4.2.2-vo1.0.2",
|
|
63
63
|
"@voplus/morpho-client-test": "^1.0.0-dev017",
|
|
64
64
|
"@voplus/morpho-collaboration": "^1.0.0-dev027",
|
|
65
|
-
"@voplus/morpho-config": "^1.0.0-
|
|
65
|
+
"@voplus/morpho-config": "^1.0.0-dev59",
|
|
66
66
|
"@voplus/morpho-data": "^1.0.0-dev107",
|
|
67
|
-
"@voplus/morpho-document-core": "^1.0.0-
|
|
67
|
+
"@voplus/morpho-document-core": "^1.0.0-dev012",
|
|
68
68
|
"@voplus/morpho-org": "^1.0.0-dev032-antd4",
|
|
69
|
-
"@voplus/morpho-text": "^1.0.0-
|
|
70
|
-
"@voplus/morpho-ui": "^1.0.0-
|
|
71
|
-
"draft-js": "^0.11.6",
|
|
69
|
+
"@voplus/morpho-text": "^1.0.0-dev061",
|
|
70
|
+
"@voplus/morpho-ui": "^1.0.0-dev141",
|
|
72
71
|
"mobx": "^5.15.4",
|
|
73
72
|
"mobx-react-lite": "^1.5.2",
|
|
74
73
|
"mobx-utils": "^5.6.1",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
|
2
|
-
import { useDocument, useDocumentStore } from "@voplus/morpho-document-core";
|
|
3
|
-
import DescriptionEditor from "../../controls/DescriptionEditor";
|
|
4
|
-
import { Skeleton } from "@voplus/antd";
|
|
5
|
-
import SubDocumentList from "../DocumentList";
|
|
6
|
-
import styles from "./index.less";
|
|
7
|
-
import { useObserver } from "mobx-react-lite";
|
|
8
|
-
/** Document PropertiesView tabs 第一页Details*/
|
|
9
|
-
const DocumentDescription = (props) => {
|
|
10
|
-
const id = props.id;
|
|
11
|
-
const documents = useDocumentStore();
|
|
12
|
-
const [reload, setReload] = useState(false); //是否重新加载
|
|
13
|
-
const document = useDocument(id, { reload: reload });
|
|
14
|
-
useEffect(() => {
|
|
15
|
-
setReload(props.readonly ? true : false);
|
|
16
|
-
}, [props.readonly]);
|
|
17
|
-
return useObserver(() => (React.createElement("div", { className: styles["sub-task-tab-view"] },
|
|
18
|
-
document.loading ? (React.createElement("div", { className: "task-description" },
|
|
19
|
-
React.createElement(Skeleton, { loading: document.loading, active: true }))) : (React.createElement(DescriptionEditor, { id: id, description: document.description, readonly: document.readonly, padding: "0 0 0.75rem 0" })),
|
|
20
|
-
React.createElement(SubDocumentList, { id: id, parentName: document.name, reload: document.readonly, multiple: true, addAble: !document.readonly }))));
|
|
21
|
-
};
|
|
22
|
-
export default DocumentDescription;
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentDescription/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAE7E,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,eAAe,MAAM,iBAAiB,CAAC;AAG9C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,6CAA6C;AAC7C,MAAM,mBAAmB,GAAG,CAAC,KAG5B,EAAE,EAAE;IACJ,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,SAAS,GAAG,gBAAgB,EAAE,CAAC;IACrC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,QAAQ;IACrD,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IAErD,SAA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