@voplus/morpho-document 1.0.0-dev282 → 1.0.0-dev289
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 +0 -5
- package/es/components/DocumentDescription/index.js +3 -8
- package/es/components/DocumentDescription/index.js.map +1 -1
- package/es/components/DocumentHeader/index.d.ts +1 -0
- package/es/components/DocumentHeader/index.js +6 -3
- package/es/components/DocumentHeader/index.js.map +1 -1
- package/es/components/DocumentHeader/state.d.ts +2 -0
- package/es/components/DocumentHeader/state.js.map +1 -1
- package/es/components/Links/index.less +111 -111
- package/es/components/QuickViewDialog/index.less +0 -1
- package/es/controls/DataIconBar/index.less +1 -0
- package/es/controls/DescriptionEditor/index.d.ts +2 -4
- package/es/controls/DescriptionEditor/index.js +16 -9
- package/es/controls/DescriptionEditor/index.js.map +1 -1
- package/es/controls/DescriptionEditor/index.less +13 -4
- package/es/controls/DescriptionEditor/state.d.ts +11 -0
- package/es/controls/DescriptionEditor/state.js.map +1 -1
- package/es/controls/DocumentDataIconBar/index.js +2 -3
- package/es/controls/DocumentDataIconBar/index.js.map +1 -1
- package/es/controls/PDFViewer/Toolbar/index.d.ts +1 -2
- package/es/controls/PDFViewer/Toolbar/index.js +2 -2
- package/es/controls/PDFViewer/Toolbar/index.js.map +1 -1
- package/es/controls/data-icons/DescriptionDataIcon/index.d.ts +1 -0
- package/es/controls/data-icons/DescriptionDataIcon/index.js +6 -7
- package/es/controls/data-icons/DescriptionDataIcon/index.js.map +1 -1
- package/es/controls/data-icons/DescriptionDataIcon/index.less +5 -2
- package/es/modules/unit/UnitUIService.d.ts +2 -3
- package/es/modules/unit/UnitUIService.js +1 -5
- package/es/modules/unit/UnitUIService.js.map +1 -1
- package/es/modules/unit/components/ContactUserInfoView/index.d.ts +1 -4
- package/es/modules/unit/components/ContactUserInfoView/index.js +15 -18
- package/es/modules/unit/components/ContactUserInfoView/index.js.map +1 -1
- package/es/modules/unit/components/ContactUserInfoView/index.less +16 -26
- package/es/modules/unit/components/NewUnitForm/index.d.ts +1 -1
- package/es/modules/unit/components/UnitItem/Item.d.ts +0 -1
- package/es/modules/unit/components/UnitItem/Item.js +9 -19
- 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 +0 -1
- 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 +0 -1
- package/es/modules/unit/data/hooks/index.js +0 -1
- package/es/modules/unit/data/hooks/index.js.map +1 -1
- package/es/pages/Library/LibraryDefaultView/Content.js +4 -6
- package/es/pages/Library/LibraryDefaultView/Content.js.map +1 -1
- package/es/pages/Page/PageDefaultView/index.js +4 -5
- 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/Signature/Letter/LetterContentView/index.js +4 -5
- package/es/pages/Signature/Letter/LetterContentView/index.js.map +1 -1
- package/es/pages/Signature/Letter/LetterViewer/index.js +2 -6
- package/es/pages/Signature/Letter/LetterViewer/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.d.ts +0 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.js +12 -16
- package/es/pages/VSubmit/VSubmitDefaultView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitDefaultView/index.less +5 -12
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js +4 -7
- package/es/pages/VSubmit/VSubmitSubmitterView/index.js.map +1 -1
- package/es/pages/VSubmit/VSubmitSubmitterView/index.less +3 -0
- package/es/pages/VSubmit/components/DocumentIcon/index.less +6 -6
- package/es/pages/VSubmit/components/DocumentIconList/index.d.ts +5 -0
- package/es/pages/VSubmit/components/DocumentIconList/index.js +2 -2
- package/es/pages/VSubmit/components/DocumentIconList/index.js.map +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.js +22 -7
- package/es/pages/VSubmit/components/EmailRecipients/index.js.map +1 -1
- package/es/pages/VSubmit/components/EmailRecipients/index.less +14 -0
- package/es/pages/VSubmit/components/EmailRecipients/state.d.ts +2 -0
- package/es/pages/VSubmit/components/EmailRecipients/state.js +5 -0
- package/es/pages/VSubmit/components/EmailRecipients/state.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.d.ts +4 -0
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js +22 -20
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/SectionItem/index.less +48 -12
- 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 +14 -7
- package/es/pages/VSubmit/components/SubmitSections/index.js.map +1 -1
- package/es/pages/VSubmit/components/SubmitSections/index.less +0 -11
- package/package.json +5 -4
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.d.ts +0 -15
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js +0 -50
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.js.map +0 -1
- package/es/modules/unit/components/UnitQuickView/QuickSubTab/index.less +0 -22
- package/es/modules/unit/components/UnitQuickView/index.d.ts +0 -9
- package/es/modules/unit/components/UnitQuickView/index.js +0 -30
- package/es/modules/unit/components/UnitQuickView/index.js.map +0 -1
- package/es/modules/unit/components/UnitQuickView/index.less +0 -63
- package/es/modules/unit/components/UnitQuickView/state.d.ts +0 -8
- package/es/modules/unit/components/UnitQuickView/state.js +0 -26
- package/es/modules/unit/components/UnitQuickView/state.js.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Card, useRenderOnChange } from "@voplus/morpho-ui";
|
|
2
|
-
import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore } from "@voplus/morpho-document-core";
|
|
3
1
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
|
2
|
+
import { BatchHeader, DeleteButton, MoveButton } from "@voplus/morpho-ui/es/components/layout/ListView/headers";
|
|
3
|
+
import { useAutoUpdateListData, useDocumentListEffect, useDocumentStore } from "@voplus/morpho-document-core";
|
|
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";
|
|
9
8
|
import styles from "./index.less";
|
|
10
9
|
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,19 +29,26 @@ 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),
|
|
32
36
|
viewTitle: "File Submit Details",
|
|
33
37
|
sortable: false,
|
|
34
38
|
addAble: readonly ? false : true,
|
|
35
39
|
onAdd: () => setAddAble(!addAble)
|
|
36
|
-
}, moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource }) => (React.createElement(
|
|
37
|
-
"sections-item-card_zero": index === 0
|
|
38
|
-
}) },
|
|
39
|
-
React.createElement(SectionItem, { key: item.id, id: item.id, readonly: readonly, connectDragSource: connectDragSource }))) }))),
|
|
40
|
+
}, moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource, multiple }) => (React.createElement(SectionItem, { key: item.id, id: item.id, index: index, readonly: readonly, multiple: multiple, connectDragSource: connectDragSource })) }))),
|
|
40
41
|
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
|
+
}
|
|
41
45
|
// order by sub task
|
|
42
46
|
async function moveAfter(id, afterId) {
|
|
43
47
|
await documents.moveAfter(id, afterId);
|
|
44
48
|
}
|
|
49
|
+
async function onDelete(state) {
|
|
50
|
+
await documents.delete(state.ids, { DeleteChilds: true });
|
|
51
|
+
}
|
|
45
52
|
};
|
|
46
53
|
export default SubmitSections;
|
|
47
54
|
//# 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,EAEN,eAAe,EACf,sBAAsB,EACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,WAAW,EACX,YAAY,EACZ,UAAU,EACV,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAEN,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,EAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,QAAQ,MAAM,2DA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C,CAAC;IAEH,SAAS,MAAM,CAAC,KAAwB;QACvC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAC1B,CAAC;IAED,oBAAoB;IACpB,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IACD,KAAK,UAAU,QAAQ,CAAC,KAAwB;QAC/C,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/index.less";
|
|
2
1
|
.submit-sections {
|
|
3
2
|
height: 100%;
|
|
4
3
|
display: flex;
|
|
@@ -34,15 +33,5 @@
|
|
|
34
33
|
z-index: 9999;
|
|
35
34
|
background: #fff;
|
|
36
35
|
}
|
|
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
|
-
}
|
|
47
36
|
}
|
|
48
37
|
}
|
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-dev289",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://voplus.visualstudio.com/morpho-document/_git/morpho-document"
|
|
@@ -64,10 +64,11 @@
|
|
|
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-dev011",
|
|
68
68
|
"@voplus/morpho-org": "^1.0.0-dev032-antd4",
|
|
69
|
-
"@voplus/morpho-text": "^1.0.0-
|
|
70
|
-
"@voplus/morpho-ui": "^1.0.0-
|
|
69
|
+
"@voplus/morpho-text": "^1.0.0-dev056",
|
|
70
|
+
"@voplus/morpho-ui": "^1.0.0-dev140",
|
|
71
|
+
"draft-js": "^0.11.6",
|
|
71
72
|
"mobx": "^5.15.4",
|
|
72
73
|
"mobx-react-lite": "^1.5.2",
|
|
73
74
|
"mobx-utils": "^5.6.1",
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare type QuickViewProps = {
|
|
3
|
-
id: string;
|
|
4
|
-
showSubTab?: (params?: any) => void;
|
|
5
|
-
};
|
|
6
|
-
declare const QuickSubTab: (props: QuickViewProps) => JSX.Element;
|
|
7
|
-
declare const QuickSubContent: (props: {
|
|
8
|
-
id: string;
|
|
9
|
-
type?: string;
|
|
10
|
-
shape?: boolean;
|
|
11
|
-
className?: string;
|
|
12
|
-
exclude?: string[];
|
|
13
|
-
onCancel?: () => void;
|
|
14
|
-
}) => JSX.Element;
|
|
15
|
-
export { QuickSubTab, QuickSubContent };
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { Button, Tooltip } from "@voplus/antd";
|
|
2
|
-
import { faFileAlt, faTimes, faUser, faUserChart, faUsers, faUsersClass } from "@fortawesome/pro-light-svg-icons";
|
|
3
|
-
import ActivityLog from "../../ActivityLog";
|
|
4
|
-
import ContactUserInfoView from "../../ContactUserInfoView";
|
|
5
|
-
import DocumentList from "../../../../../components/DocumentList";
|
|
6
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import Members from "../../Members";
|
|
8
|
-
import React from "react";
|
|
9
|
-
import SubUnitList from "../../SubUnitList";
|
|
10
|
-
import classnames from "classnames";
|
|
11
|
-
import styles from "./index.less";
|
|
12
|
-
import { useObserver } from "mobx-react-lite";
|
|
13
|
-
import { useUnit } from "../../../data";
|
|
14
|
-
const QuickSubTab = (props) => {
|
|
15
|
-
const { id, showSubTab } = { ...props };
|
|
16
|
-
const unit = useUnit(id);
|
|
17
|
-
return useObserver(() => {
|
|
18
|
-
var _a;
|
|
19
|
-
return (React.createElement(React.Fragment, null,
|
|
20
|
-
unit.isGroup && (React.createElement(Tooltip, { title: "Sub-Units" },
|
|
21
|
-
React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("units") },
|
|
22
|
-
React.createElement(FAIcon, { icon: faUsersClass })))),
|
|
23
|
-
unit.type === "Team" && (React.createElement(Tooltip, { title: "Members" },
|
|
24
|
-
React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("members") },
|
|
25
|
-
React.createElement(FAIcon, { icon: faUsers })))),
|
|
26
|
-
React.createElement(Tooltip, { title: "Sub-Documents" },
|
|
27
|
-
React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("documents") },
|
|
28
|
-
React.createElement(FAIcon, { icon: faFileAlt }))),
|
|
29
|
-
((_a = unit.steroTypes) === null || _a === void 0 ? void 0 : _a.includes("User")) && (React.createElement(Tooltip, { title: "UserInfo" },
|
|
30
|
-
React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("userInfo") },
|
|
31
|
-
React.createElement(FAIcon, { icon: faUser })))),
|
|
32
|
-
React.createElement(Tooltip, { title: "Activities" },
|
|
33
|
-
React.createElement(Button, { shape: "circle", onClick: () => showSubTab === null || showSubTab === void 0 ? void 0 : showSubTab("activities") },
|
|
34
|
-
React.createElement(FAIcon, { icon: faUserChart })))));
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
const QuickSubContent = (props) => {
|
|
38
|
-
const { type, id, shape, exclude, className, onCancel } = { ...props };
|
|
39
|
-
const unit = useUnit(id);
|
|
40
|
-
return useObserver(() => (React.createElement("div", { className: classnames(styles["quickView-right"], className) },
|
|
41
|
-
React.createElement("div", { className: "close-icon" }, shape ? (React.createElement(Button, { icon: React.createElement(FAIcon, { icon: faTimes }), onClick: onCancel })) : (React.createElement(FAIcon, { icon: faTimes, onClick: onCancel }))),
|
|
42
|
-
React.createElement("div", { className: "tab-content" },
|
|
43
|
-
type === "units" && React.createElement(SubUnitList, { parentId: id, multiple: true }),
|
|
44
|
-
type === "members" && React.createElement(Members, { parentId: id }),
|
|
45
|
-
type === "documents" && (React.createElement(DocumentList, { id: unit.containerId, parentName: unit.name, exclude: exclude, multiple: true })),
|
|
46
|
-
type === "activities" && React.createElement(ActivityLog, { id: id }),
|
|
47
|
-
type === "userInfo" && React.createElement(ContactUserInfoView, { id: id, header: true })))));
|
|
48
|
-
};
|
|
49
|
-
export { QuickSubTab, QuickSubContent };
|
|
50
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/unit/components/UnitQuickView/QuickSubTab/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACN,SAAS,EACT,OAAO,EACP,MAAM,EACN,WAAW,EACX,OAAO,EACP,YAAY,EACZ,MAAM,kCAAkC,CAAC;AAE1C,OAAO,WAAW,MAAM,mBAAmB,CAAC;AAC5C,OAAO,mBAAmB,MAAM,2BAA2B,CAAC;AAC5D,OAAO,YAAY,MAAM,wCAAwC,CAAC;AAClE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E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9D,CAAC,CAAC,CAAC,CACH,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,GAAI,CAC5C,CACI;QACN,6BAAK,SAAS,EAAC,aAAa;YAC1B,IAAI,KAAK,OAAO,IAAI,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,SAAG;YAC1D,IAAI,KAAK,SAAS,IAAI,oBAAC,OAAO,IAAC,QAAQ,EAAE,EAAE,GAAI;YAC/C,IAAI,KAAK,WAAW,IAAI,CACxB,oBAAC,YAAY,IAAC,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,SAAG,CACxF;YACA,IAAI,KAAK,YAAY,IAAI,oBAAC,WAAW,IAAC,EAAE,EAAE,EAAE,GAAI;YAChD,IAAI,KAAK,UAAU,IAAI,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,MAAM,SAAG,CACzD,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.quickView-right {
|
|
2
|
-
flex: 1;
|
|
3
|
-
display: flex;
|
|
4
|
-
flex-direction: column;
|
|
5
|
-
border-left: solid 1px #eeeeee;
|
|
6
|
-
:global {
|
|
7
|
-
.close-icon {
|
|
8
|
-
font-size: 22px;
|
|
9
|
-
text-align: right;
|
|
10
|
-
padding: 10px 20px 0;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
.tab-content {
|
|
14
|
-
position: relative;
|
|
15
|
-
flex: 1;
|
|
16
|
-
.tab-module-box {
|
|
17
|
-
height: 100%;
|
|
18
|
-
padding: 10px 0 0 10px;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { QuickSubContent, QuickSubTab } from "./QuickSubTab";
|
|
2
|
-
import React, { useState } from "react";
|
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
|
-
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
|
5
|
-
import { State } from "./state";
|
|
6
|
-
import UnitDetails from "../UnitDetails";
|
|
7
|
-
import UnitHead from "../UnitHead";
|
|
8
|
-
import classNames from "classnames";
|
|
9
|
-
import { faTimes } from "@fortawesome/pro-light-svg-icons";
|
|
10
|
-
import styles from "./index.less";
|
|
11
|
-
import { useObserver } from "mobx-react-lite";
|
|
12
|
-
const UnitQuickView = (props) => {
|
|
13
|
-
const [state] = useState(new State());
|
|
14
|
-
return useObserver(() => (React.createElement(Modal, { width: state.subTab ? "1000px" : "500px", className: classNames(styles["quickView-modal"], props.className), visible: props.visible, closable: false, footer: null, onCancel: props.onCancel },
|
|
15
|
-
React.createElement("div", { className: "quickView-left" },
|
|
16
|
-
React.createElement("div", { className: "document-header" },
|
|
17
|
-
props.closeVisible && (React.createElement("div", { className: "close-icon" },
|
|
18
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
|
|
19
|
-
props.header ? props.header : React.createElement(UnitHead, { id: props.id })),
|
|
20
|
-
React.createElement("div", { className: "quickView-contents" },
|
|
21
|
-
React.createElement("div", { className: "quickView-subTab" },
|
|
22
|
-
React.createElement(QuickSubTab, { id: props.id, showSubTab: (key) => state.showSubTab(key) })),
|
|
23
|
-
React.createElement(UnitDetails, { id: props.id }))),
|
|
24
|
-
state.subTab && (React.createElement(QuickSubContent, { id: props.id, type: state.key, exclude: props.exclude, onCancel: () => (state.subTab = false) })))));
|
|
25
|
-
};
|
|
26
|
-
UnitQuickView.defaultProps = {
|
|
27
|
-
closeVisible: true
|
|
28
|
-
};
|
|
29
|
-
export default UnitQuickView;
|
|
30
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
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AY;oBAC1B,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,CAC7C,CACN;gBACA,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAC,QAAQ,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACpD;YACN,6BAAK,SAAS,EAAC,oBAAoB;gBAClC,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,CAAC,GAAW,EAAE,EAAE,CAAC,KAAK,CAAC,UAAU,CAAC,GAAG,CAAC,GAAI,CAC5E;gBACN,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACxB,CACD;QACL,KAAK,CAAC,MAAM,IAAI,CAChB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,IAAI,EAAE,KAAK,CAAC,GAAG,EACf,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,GAAG,KAAK,CAAC,GACrC,CACF,CACM,CACR,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,YAAY,EAAE,IAAI;CAClB,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
@import "~@voplus/antd/es/style/themes/default.less";
|
|
2
|
-
.quickView-modal {
|
|
3
|
-
height: calc(100% - 200px);
|
|
4
|
-
:global {
|
|
5
|
-
.ant-modal-content {
|
|
6
|
-
height: 100%;
|
|
7
|
-
}
|
|
8
|
-
.ant-modal-body {
|
|
9
|
-
display: flex;
|
|
10
|
-
height: 100%;
|
|
11
|
-
padding: 0;
|
|
12
|
-
.document-header {
|
|
13
|
-
margin-top: 0.5rem;
|
|
14
|
-
.document-header-default {
|
|
15
|
-
display: flex;
|
|
16
|
-
}
|
|
17
|
-
.tools-bar {
|
|
18
|
-
align-self: flex-end;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
.quickView-left {
|
|
22
|
-
flex: 1;
|
|
23
|
-
display: flex;
|
|
24
|
-
flex-direction: column;
|
|
25
|
-
.document-header {
|
|
26
|
-
// padding: 10px 15px;
|
|
27
|
-
position: relative;
|
|
28
|
-
border-bottom: solid 1px #eeeeee;
|
|
29
|
-
.close-icon {
|
|
30
|
-
position: absolute;
|
|
31
|
-
right: 0;
|
|
32
|
-
font-size: 22px;
|
|
33
|
-
text-align: right;
|
|
34
|
-
cursor: pointer;
|
|
35
|
-
padding: 0 23px 0;
|
|
36
|
-
}
|
|
37
|
-
.tool-bar-content {
|
|
38
|
-
position: absolute;
|
|
39
|
-
top: 35px;
|
|
40
|
-
right: 20px;
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
.quickView-contents {
|
|
44
|
-
flex: 1;
|
|
45
|
-
display: flex;
|
|
46
|
-
flex-direction: column;
|
|
47
|
-
overflow: hidden;
|
|
48
|
-
.quickView-subTab {
|
|
49
|
-
display: inline-block;
|
|
50
|
-
text-align: right;
|
|
51
|
-
padding: 10px 20px;
|
|
52
|
-
.ant-btn {
|
|
53
|
-
margin-left: 10px;
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
.quickView-description {
|
|
57
|
-
padding: 10px 15px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { __decorate } from "tslib";
|
|
2
|
-
import { action, observable } from "mobx";
|
|
3
|
-
export class State {
|
|
4
|
-
constructor() {
|
|
5
|
-
/** 当前激活 tab 面板的 key */
|
|
6
|
-
this.key = "";
|
|
7
|
-
/** 是否显示 tab */
|
|
8
|
-
this.subTab = false;
|
|
9
|
-
}
|
|
10
|
-
/** Callback of switch panel */
|
|
11
|
-
showSubTab(key) {
|
|
12
|
-
if (!this.subTab)
|
|
13
|
-
this.subTab = true;
|
|
14
|
-
this.key = key;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
__decorate([
|
|
18
|
-
observable
|
|
19
|
-
], State.prototype, "key", void 0);
|
|
20
|
-
__decorate([
|
|
21
|
-
observable
|
|
22
|
-
], State.prototype, "subTab", void 0);
|
|
23
|
-
__decorate([
|
|
24
|
-
action
|
|
25
|
-
], State.prototype, "showSubTab", null);
|
|
26
|
-
//# sourceMappingURL=state.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/unit/components/UnitQuickView/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAE1C,MAAM,OAAO,KAAK;IAAlB;QACC,uBAAuB;QACJ,QAAG,GAAG,EAAE,CAAC;QAC5B,eAAe;QACI,WAAM,GAAG,KAAK,CAAC;IAQnC,CAAC;IANA,gCAAgC;IAEzB,UAAU,CAAC,GAAW;QAC5B,IAAI,CAAC,IAAI,CAAC,MAAM;YAAE,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;QACrC,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC;IAChB,CAAC;CACD;AAVY;IAAX,UAAU;kCAAiB;AAEhB;IAAX,UAAU;qCAAuB;AAIlC;IADC,MAAM;uCAIN"}
|