@voplus/morpho-document 1.0.0-dev281 → 1.0.0-dev282
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 +5 -0
- package/es/components/QuickViewDialog/index.less +1 -0
- package/es/controls/DescriptionEditor/index.d.ts +7 -0
- package/es/controls/DescriptionEditor/index.js +35 -0
- package/es/controls/DescriptionEditor/index.js.map +1 -0
- package/es/controls/DescriptionEditor/index.less +21 -0
- package/es/controls/DescriptionEditor/state.d.ts +8 -0
- package/es/controls/DescriptionEditor/state.js +22 -0
- package/es/controls/DescriptionEditor/state.js.map +1 -0
- package/es/controls/data-icons/DescriptionDataIcon/index.js +2 -2
- package/es/controls/data-icons/DescriptionDataIcon/index.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/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/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/Signature/Envelope/EnvelopeDefaultView/index.js +20 -6
- package/es/pages/Signature/Envelope/EnvelopeDefaultView/index.js.map +1 -1
- package/es/pages/Signature/Envelope/EnvelopeRecipientView/index.less +1 -0
- package/es/pages/Signature/Letter/LetterContentView/index.js +1 -2
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterContentView/index.less +9 -0
- package/es/pages/VSubmit/VSubmitDefaultView/index.d.ts +1 -0
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +13 -12
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.less +12 -5
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.d.ts +0 -4
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js +14 -18
- 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 +7 -14
- package/es/pages/VSubmit/components/SubmitSections/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/index.less +11 -0
- package/package.json +3 -3
|
@@ -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
|
|
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 }))) }))),
|
|
41
40
|
addAble && (React.createElement(NewDocumentForm, { parentId: props.id, type: "document", placeholder: "Enter a title for this section", onCancel: () => setAddAble(false) })))));
|
|
42
|
-
function onMove(state) {
|
|
43
|
-
documents.cut(state.ids);
|
|
44
|
-
}
|
|
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,e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|
|
|
33
34
|
z-index: 9999;
|
|
34
35
|
background: #fff;
|
|
35
36
|
}
|
|
37
|
+
.sections-item-card {
|
|
38
|
+
max-width: 70rem;
|
|
39
|
+
margin-left: auto;
|
|
40
|
+
margin-right: auto;
|
|
41
|
+
padding: 0 1rem 1rem 1rem;
|
|
42
|
+
background-color: @background-color-base;
|
|
43
|
+
&.sections-item-card_zero {
|
|
44
|
+
padding-top: 1rem;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
36
47
|
}
|
|
37
48
|
}
|
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-dev282",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -64,9 +64,9 @@
|
|
|
64
64
|
"@voplus/morpho-collaboration": "^1.0.0-dev027",
|
|
65
65
|
"@voplus/morpho-config": "^1.0.0-dev52",
|
|
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-
|
|
69
|
+
"@voplus/morpho-text": "^1.0.0-dev059",
|
|
70
70
|
"@voplus/morpho-ui": "^1.0.0-dev141",
|
|
71
71
|
"mobx": "^5.15.4",
|
|
72
72
|
"mobx-react-lite": "^1.5.2",
|