@voplus/morpho-document 6.1.36 → 6.1.38
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/DocumentQuickViewDialog/index.d.ts +15 -2
- package/es/components/DocumentQuickViewDialog/index.js +39 -3
- package/es/components/DocumentQuickViewDialog/index.js.map +1 -1
- package/es/components/FileViewer/Preview.d.ts +2 -7
- package/es/components/FileViewer/Preview.js +22 -106
- package/es/components/FileViewer/Preview.js.map +1 -1
- package/es/controls/QuickViewDialog/index.d.ts +1 -0
- package/es/controls/QuickViewDialog/index.js.map +1 -1
- package/es/controls/ToolBar/buttons/Download.d.ts +1 -0
- package/es/controls/ToolBar/buttons/Download.js +8 -6
- package/es/controls/ToolBar/buttons/Download.js.map +1 -1
- package/es/controls/ToolBar/buttons/TButton.js +1 -2
- package/es/controls/ToolBar/buttons/TButton.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanHeader/index.d.ts +10 -4
- package/es/modules/action-plan/components/ActionPlanHeader/index.js +5 -2
- package/es/modules/action-plan/components/ActionPlanHeader/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js +2 -2
- package/es/modules/action-plan/components/ActionPlanListQuickView/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js +1 -1
- package/es/modules/action-plan/components/ActionPlanPropertiesView/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js +2 -2
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.js.map +1 -1
- package/es/modules/action-plan/components/ActionPlanQuickViewDialog/index.less +9 -1
- package/es/modules/graph/components/GraphQuickViewDialog/index.js +5 -67
- package/es/modules/graph/components/GraphQuickViewDialog/index.js.map +1 -1
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.d.ts +10 -4
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js +4 -1
- package/es/modules/message-schedule/components/MessageScheduleHeader/index.js.map +1 -1
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js +1 -1
- package/es/modules/message-schedule/components/MessageSchedulePropertiesView/index.js.map +1 -1
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js +2 -2
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.js.map +1 -1
- package/es/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.less +9 -1
- package/es/modules/quick-access/AdvanceFilterForm/index.less +7 -3
- package/es/modules/shortcut/components/ShortcutQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceHeader/index.d.ts +1 -0
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js +2 -1
- package/es/modules/tenant-service/components/TenantServiceHeader/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceHeader/index.less +2 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js +3 -3
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service/components/TenantServiceQuickViewDialog/index.less +3 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.d.ts +10 -4
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js +5 -2
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.less +2 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js +4 -4
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.js.map +1 -1
- package/es/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.less +3 -1
- package/package.json +1 -1
|
@@ -1,4 +1,17 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import { QuickViewDialogProps } from "
|
|
3
|
-
|
|
2
|
+
import { QuickViewDialogProps } from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
3
|
+
export type SubButtonsName = "Document" | "Activities" | "Link";
|
|
4
|
+
declare const DocumentQuickViewDialog: {
|
|
5
|
+
(props: QuickViewDialogProps & {
|
|
6
|
+
/** 设置sub buttons */
|
|
7
|
+
subButtons?: {
|
|
8
|
+
name: SubButtonsName;
|
|
9
|
+
}[];
|
|
10
|
+
}): React.JSX.Element;
|
|
11
|
+
defaultProps: {
|
|
12
|
+
subButtons: {
|
|
13
|
+
name: string;
|
|
14
|
+
}[];
|
|
15
|
+
};
|
|
16
|
+
};
|
|
4
17
|
export default DocumentQuickViewDialog;
|
|
@@ -1,26 +1,62 @@
|
|
|
1
1
|
import React, { useMemo } from "react";
|
|
2
2
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
3
|
-
import QuickViewDialog from "
|
|
3
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
4
4
|
import DescriptionDocumentList from "../DescriptionDocumentList";
|
|
5
|
+
import DocumentList from "../../components/DocumentList";
|
|
6
|
+
import Links from "../../components/Links";
|
|
7
|
+
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
5
8
|
import { CommentDataIcon, DateQuickIcon, DocumentPathDataIcon, UserQuickIcon, } from "../../controls/data-icons";
|
|
6
9
|
import DataIconBar from "../../controls/DataIconBar";
|
|
7
10
|
import Preview from "../FileViewer/Preview";
|
|
8
11
|
import DocumentHeader from "../DocumentHeader";
|
|
9
12
|
import { useDocument } from "@voplus/morpho-document-core";
|
|
13
|
+
import { faFileAlt, faLink, faListTimeline } from "@fortawesome/pro-light-svg-icons";
|
|
10
14
|
import { observe } from "@voplus/morpho-ui";
|
|
11
15
|
const DocumentQuickViewDialog = (props) => {
|
|
12
16
|
/**使用useMetaStore 获取getQuickView*/
|
|
17
|
+
var _a, _b;
|
|
13
18
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
14
19
|
const doc = useDocument(props.id, { reload: true, includes: "tags,versions,letter" });
|
|
20
|
+
/** items 加 subButtons 为sub buttons需要显示的内容 */
|
|
21
|
+
const items = (_a = props.items) !== null && _a !== void 0 ? _a : [];
|
|
22
|
+
(_b = props.subButtons) === null || _b === void 0 ? void 0 : _b.map((i) => renderProp(i) && items.push(renderProp(i)));
|
|
15
23
|
return observe(() => {
|
|
16
24
|
var _a, _b;
|
|
17
25
|
return (React.createElement(ViewContext.Provider, { value: view },
|
|
18
|
-
React.createElement(React.Fragment, null, doc.type === "File" ? (React.createElement(Preview, { id: props.id, visible: props.visible,
|
|
26
|
+
React.createElement(React.Fragment, null, doc.type === "File" ? (React.createElement(Preview, { id: props.id, visible: props.visible, onCancel: props.onCancel, items: [{ name: "Document" }, { name: "Activities" }, { name: "Link" }].map((i) => renderProp(i)) })) : (React.createElement(QuickViewDialog, { ...props, items: items, header: (_a = props.header) !== null && _a !== void 0 ? _a : (React.createElement(DocumentHeader, { id: props.id, quickDataBar: React.createElement(DataIconBar, null,
|
|
19
27
|
React.createElement(DateQuickIcon, { id: props.id }),
|
|
20
28
|
React.createElement(CommentDataIcon, { id: props.id }),
|
|
21
29
|
React.createElement(UserQuickIcon, { id: props.id }),
|
|
22
|
-
React.createElement(DocumentPathDataIcon, { id: props.id })), toolBarProps: { close: true, onClose: props.onCancel }, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true })
|
|
30
|
+
React.createElement(DocumentPathDataIcon, { id: props.id })), toolBarProps: { close: true, onClose: props.onCancel }, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true })) }, (_b = props.children) !== null && _b !== void 0 ? _b : React.createElement(DescriptionDocumentList, { id: props.id }))))));
|
|
23
31
|
});
|
|
32
|
+
function renderProp(item) {
|
|
33
|
+
switch (item.name) {
|
|
34
|
+
case "Document":
|
|
35
|
+
return {
|
|
36
|
+
name: "Document",
|
|
37
|
+
icon: faFileAlt,
|
|
38
|
+
title: "Sub-Documents",
|
|
39
|
+
detail: React.createElement(DocumentList, { id: props.id, multiple: true }),
|
|
40
|
+
};
|
|
41
|
+
case "Activities":
|
|
42
|
+
return {
|
|
43
|
+
name: "Activities",
|
|
44
|
+
icon: faListTimeline,
|
|
45
|
+
title: "Activities",
|
|
46
|
+
detail: React.createElement(ActivityLog, { id: props.id }),
|
|
47
|
+
};
|
|
48
|
+
case "Link":
|
|
49
|
+
return {
|
|
50
|
+
name: "Link",
|
|
51
|
+
icon: faLink,
|
|
52
|
+
title: "Link",
|
|
53
|
+
detail: React.createElement(Links, { id: props.id, isTitle: false }),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
DocumentQuickViewDialog.defaultProps = {
|
|
59
|
+
subButtons: [{ name: "Activities" }, { name: "Link" }],
|
|
24
60
|
};
|
|
25
61
|
export default DocumentQuickViewDialog;
|
|
26
62
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/DocumentQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,eAEN,MAAM,gDAAgD,CAAC;AACxD,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,KAAK,MAAM,wB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AAE,eAAe;oBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,SAAG;iBAC/C,CAAC;YACH,KAAK,YAAY;gBAChB,OAAO;oBACN,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,YAAY;oBACnB,MAAM,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;iBACrC,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;oBACN,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;iBAC/C,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,uBAAuB,CAAC,YAAY,GAAG;IACtC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CACtD,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
+
import { QuickViewDialogProps } from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
2
3
|
import React from "react";
|
|
3
|
-
declare const FilePreview: (props:
|
|
4
|
-
id: string;
|
|
5
|
-
visible?: boolean;
|
|
6
|
-
onClose?: any;
|
|
7
|
-
/** url of open new page */
|
|
8
|
-
url?: string;
|
|
9
|
-
}) => React.JSX.Element;
|
|
4
|
+
declare const FilePreview: (props: QuickViewDialogProps) => React.JSX.Element;
|
|
10
5
|
export default FilePreview;
|
|
@@ -1,123 +1,39 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import React, { useState } from "react";
|
|
9
|
-
import { faArrowDownToBracket, faFileArrowDown, faExternalLink, faXmark, } from "@fortawesome/pro-light-svg-icons";
|
|
10
|
-
import { useFile, useFileStore } from "@voplus/morpho-document-core";
|
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
|
3
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
4
|
+
import ToolBar from "../../controls/ToolBar/ToolBar2";
|
|
5
|
+
import { Open, Download, Close } from "../../controls/ToolBar/buttons";
|
|
6
|
+
import React from "react";
|
|
7
|
+
import { useFile } from "@voplus/morpho-document-core";
|
|
11
8
|
import DocumentHeader from "../DocumentHeader";
|
|
12
9
|
import FileViewer from "./FileViewer";
|
|
13
10
|
import PDFFileViewer from "./PDF";
|
|
14
11
|
import { message } from "antd";
|
|
15
12
|
import { useEnvelopeStore } from "../../data/envelope";
|
|
16
|
-
import FlexDialog from "@voplus/morpho-ui/es/controls/FlexDialog";
|
|
17
13
|
import { saveAs } from "file-saver";
|
|
18
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
19
14
|
const FilePreview = (props) => {
|
|
20
15
|
const { id } = props;
|
|
21
|
-
const layout = useLayout();
|
|
22
|
-
const store = useFileStore();
|
|
23
16
|
const envelopeStore = useEnvelopeStore();
|
|
24
17
|
const file = useFile(id, { reload: true, includes: "letter" });
|
|
25
|
-
const [subTab, setSubTab] = useState(false);
|
|
26
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
27
|
-
const download = () => {
|
|
28
|
-
store.download(props.id).then((blob) => {
|
|
29
|
-
if (blob) {
|
|
30
|
-
const url = URL.createObjectURL(blob);
|
|
31
|
-
if (url) {
|
|
32
|
-
saveAs(url, file.name);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
};
|
|
37
|
-
const items = [
|
|
38
|
-
{
|
|
39
|
-
name: "Document",
|
|
40
|
-
icon: faFileAlt,
|
|
41
|
-
title: "Sub-Documents",
|
|
42
|
-
detail: React.createElement(DocumentList, { id: id, multiple: true }),
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
name: "Activities",
|
|
46
|
-
icon: faListTimeline,
|
|
47
|
-
title: "Activities",
|
|
48
|
-
detail: React.createElement(ActivityLog, { id: id }),
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
name: "Link",
|
|
52
|
-
icon: faLink,
|
|
53
|
-
title: "Activities",
|
|
54
|
-
detail: React.createElement(Links, { id: id, isTitle: false }),
|
|
55
|
-
},
|
|
56
|
-
{ name: "Download", icon: faArrowDownToBracket, title: "Download", detail: React.createElement(React.Fragment, null) },
|
|
57
|
-
];
|
|
58
|
-
if (props.url)
|
|
59
|
-
items.unshift({ name: "Open", icon: faExternalLink, title: "Open New Tab", detail: React.createElement(React.Fragment, null) });
|
|
60
|
-
if (!layout.ui.mobile)
|
|
61
|
-
items.push({ name: "Cancel", icon: faXmark, title: "", detail: React.createElement(React.Fragment, null) });
|
|
62
18
|
return observe(() => {
|
|
63
19
|
var _a, _b;
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
React.createElement(AsideContent, { context: asideContext, style: { width: "100%" } },
|
|
81
|
-
React.createElement("div", { className: "perview-content" },
|
|
82
|
-
React.createElement("div", { className: "perview-head" }, file ? (React.createElement(React.Fragment, null,
|
|
83
|
-
React.createElement(DocumentHeader, { id: id, className: "perview-doc-head", clickNameEffect: "edit", autoSaveName: true, tagsVisible: false, toolsVisible: false, flagVisible: false, statusVisible: false, quickDataBarVisible: false, descriptionVisible: false }),
|
|
84
|
-
React.createElement("div", { className: "preview-tab" },
|
|
85
|
-
React.createElement(QuickSubTab, { items: items, shape: false, showSubTab: showSubTab })))) : ("File not found")),
|
|
86
|
-
file.loaded ? (((_b = file.letter) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(PDFFileViewer, { id: id, download: async () => {
|
|
87
|
-
var _a, _b;
|
|
88
|
-
return await envelopeStore.download(file.parentId, (_b = (_a = file.letter) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : "", {
|
|
89
|
-
error: "message",
|
|
90
|
-
});
|
|
91
|
-
} })) : (React.createElement(FileViewer, { id: id, style: {
|
|
92
|
-
height: "70vh",
|
|
93
|
-
display: "flex",
|
|
94
|
-
flexDirection: "column",
|
|
95
|
-
textAlign: "center",
|
|
96
|
-
flex: 1,
|
|
97
|
-
} }))) : ("File not found")))));
|
|
20
|
+
return (React.createElement(QuickViewDialog, { ...props, width: 650, header: file ? (React.createElement(DocumentHeader, { id: id, className: "perview-doc-head", clickNameEffect: "edit", autoSaveName: true, tagsVisible: false, flagVisible: false, statusVisible: false, quickDataBarVisible: false, descriptionVisible: false, tools: React.createElement(ToolBar, { id: id },
|
|
21
|
+
React.createElement(Open, { url: `/document/${id}` }),
|
|
22
|
+
React.createElement(Download, null),
|
|
23
|
+
((_a = file.letter) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(Download, { action: letterDownload, tooltipTitle: "Download \uFF08Letter\uFF09" })),
|
|
24
|
+
React.createElement(Close, { action: props.onCancel })) })) : ("File not found") }, file.loaded ? (((_b = file.letter) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(PDFFileViewer, { id: id, download: async () => {
|
|
25
|
+
var _a, _b;
|
|
26
|
+
return await envelopeStore.download(file.parentId, (_b = (_a = file.letter) === null || _a === void 0 ? void 0 : _a.id) !== null && _b !== void 0 ? _b : "", {
|
|
27
|
+
error: "message",
|
|
28
|
+
});
|
|
29
|
+
} })) : (React.createElement(FileViewer, { id: id, style: {
|
|
30
|
+
height: "70vh",
|
|
31
|
+
display: "flex",
|
|
32
|
+
flexDirection: "column",
|
|
33
|
+
textAlign: "center",
|
|
34
|
+
flex: 1,
|
|
35
|
+
} }))) : ("File not found")));
|
|
98
36
|
});
|
|
99
|
-
function showSubTab(item) {
|
|
100
|
-
var _a;
|
|
101
|
-
if (item.name === "Open") {
|
|
102
|
-
layout.history.push(props.url);
|
|
103
|
-
}
|
|
104
|
-
else if (item.name === "Download") {
|
|
105
|
-
download();
|
|
106
|
-
}
|
|
107
|
-
else if (item.name === "DownloadLetter") {
|
|
108
|
-
letterDownload();
|
|
109
|
-
}
|
|
110
|
-
else if (item.name === "Cancel") {
|
|
111
|
-
(_a = props.onClose) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
112
|
-
}
|
|
113
|
-
else {
|
|
114
|
-
setSubTab(true);
|
|
115
|
-
asideContext.openAside(React.createElement(QuickSubContent, { shape: true, title: item.title, detail: item.detail, onCancel: () => {
|
|
116
|
-
asideContext.closeAside();
|
|
117
|
-
setSubTab(false);
|
|
118
|
-
} }), { span: 12 });
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
37
|
async function letterDownload() {
|
|
122
38
|
var _a;
|
|
123
39
|
let letterName = file.name;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Preview.js","sourceRoot":"","sources":["../../../src/components/FileViewer/Preview.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Preview.js","sourceRoot":"","sources":["../../../src/components/FileViewer/Preview.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAEN,MAAM,gDAAgD,CAAC;AACxD,OAAO,OAAO,MAAM,iCAAiC,CAAC;AACtD,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,8BAA8B,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AAI,EAAE,CAAC;gBACV,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;gBAEtC,IAAI,GAAG;oBAAE,MAAM,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC;YAClC,CAAC;QACF,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IAClC,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -2,6 +2,7 @@ import { QuickViewProps } from "@voplus/morpho-document-core";
|
|
|
2
2
|
import React, { ReactNode } from "react";
|
|
3
3
|
import { ItemsProps } from "./QuickSubTab";
|
|
4
4
|
export type SubButtonsName = "Document" | "Activities" | "Link";
|
|
5
|
+
/** 已移入org包,待清理 */
|
|
5
6
|
export type QuickViewDialogProps = {
|
|
6
7
|
/** 设置sub buttons */
|
|
7
8
|
subButtons?: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/QuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,cAAc,EAAW,MAAM,kCAAkC,CAAC;AAC9F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAEhD,OAAO,YAAY,MAAM,+BAA+B,CAAC;AACzD,OAAO,UAAU,MAAM,0CAA0C,CAAC;AAClE,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,WAAW,MAAM,4DAA4D,CAAC;AACrF,OAAO,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAc,eAAe,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACzE,OAAO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,KAAK,CAAC,QAAQ,CACV,CACD,CACQ,CACH,CACG,CACjB,CAAC,CAAC;IAEH,SAAS,UAAU,CAAC,IAA8B;QACjD,QAAQ,IAAI,CAAC,IAAI,EAAE,CAAC;YACnB,KAAK,UAAU;gBACd,OAAO;oBACN,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,SAAS;oBACf,KAAK,EAAE,eAAe;oBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,SAAG;iBAC/C,CAAC;YACH,KAAK,YAAY;gBAChB,OAAO;oBACN,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,cAAc;oBACpB,KAAK,EAAE,YAAY;oBACnB,MAAM,EAAE,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI;iBACrC,CAAC;YACH,KAAK,MAAM;gBACV,OAAO;oBACN,IAAI,EAAE,MAAM;oBACZ,IAAI,EAAE,MAAM;oBACZ,KAAK,EAAE,MAAM;oBACb,MAAM,EAAE,oBAAC,KAAK,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,GAAI;iBAC/C,CAAC;QACJ,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,YAAY,EAAE,IAAI;IAClB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;CAC5E,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tooltip } from "antd";
|
|
2
2
|
import { useFile, useFileStore } from "@voplus/morpho-document-core";
|
|
3
|
+
import TButton from "./TButton";
|
|
3
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
|
4
5
|
import React from "react";
|
|
5
|
-
import { faFileDownload } from "@fortawesome/pro-
|
|
6
|
+
import { faFileDownload } from "@fortawesome/pro-light-svg-icons";
|
|
6
7
|
import { saveAs } from "file-saver";
|
|
7
8
|
import { useToolBarContext } from "../ToolBarState";
|
|
8
9
|
const Download = (props) => {
|
|
@@ -10,10 +11,11 @@ const Download = (props) => {
|
|
|
10
11
|
const fileStore = useFileStore();
|
|
11
12
|
const context = useToolBarContext();
|
|
12
13
|
const file = useFile(context.id);
|
|
13
|
-
return (React.createElement(Tooltip, { title: !props.text ? "Download" : "" },
|
|
14
|
-
React.createElement(
|
|
15
|
-
React.createElement(
|
|
16
|
-
|
|
14
|
+
return (React.createElement(Tooltip, { title: !props.text ? (props.tooltipTitle ? props.tooltipTitle : "Download") : "" },
|
|
15
|
+
React.createElement("span", null,
|
|
16
|
+
React.createElement(TButton, { size: size, className: "document-download", disabled: disabled, onClick: onClick },
|
|
17
|
+
React.createElement(FAIcon, { icon: faFileDownload }),
|
|
18
|
+
props.text))));
|
|
17
19
|
function onClick() {
|
|
18
20
|
!!action
|
|
19
21
|
? action()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Download.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Download.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Download.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/Download.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,OAAO,MAAM,WAAW,CAAC;AAChC,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,M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AAQ,CAAC,YAAY,GAAG;IACvB,IAAI,EAAE,OAAO;CACb,CAAC;AACF,eAAe,QAAQ,CAAC"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { observe } from "@voplus/morpho-ui";
|
|
2
1
|
import React from "react";
|
|
3
2
|
import classnames from "classnames";
|
|
4
3
|
const TButton = (props) => {
|
|
5
4
|
const { disabled, className, onClick, children, ariaLabel, size } = props;
|
|
6
5
|
const small = "w-7 h-7 border-0 bg-transparent rounded hover:bg-slate-100";
|
|
7
6
|
const middle = "w-9 h-9 rounded-lg hover:border-slate-300 hover:bg-slate-50";
|
|
8
|
-
return
|
|
7
|
+
return (React.createElement("button", { disabled: disabled, onClick: onClick, className: classnames(className, size === "small" ? small : "", size === "middle" ? middle : "", "inline-flex items-center justify-center text-slate-500 cursor-pointer transition-all duration-200 hover:text-slate-600"), "aria-label": ariaLabel }, children));
|
|
9
8
|
};
|
|
10
9
|
TButton.defaultProps = {
|
|
11
10
|
size: "small",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TButton.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/TButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TButton.js","sourceRoot":"","sources":["../../../../src/controls/ToolBar/buttons/TButton.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,OAAO,GAAG,CAAC,KAShB,EAAE,EAAE;IACJ,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG,KAAK,CAAC;IAE1E,MAAM,KAAK,GAAG,4DAA4D,CAAC;IAE3E,MAAM,MAAM,GAAG,6DAA6D,CAAC;IAE7E,OAAO,CACN,gCACC,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,UAAU,CACpB,SAAS,EACT,IAAI,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,EAC7B,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAC/B,wHAAwH,CACxH,gBACW,SAAS,IAEpB,QAAQ,CACD,CACT,CAAC;AACH,CAAC,CAAC;AAEF,OAAO,CAAC,YAAY,GAAG;IACtB,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const ActionPlanHeader:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare const ActionPlanHeader: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
close?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
close: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
6
12
|
export default ActionPlanHeader;
|
|
@@ -11,9 +11,12 @@ const ActionPlanHeader = (props) => {
|
|
|
11
11
|
const meta = useMetaStore();
|
|
12
12
|
const actionPlan = useActionPlan(id);
|
|
13
13
|
return observe(() => (React.createElement(NodeHeaderLayout, { content: actionPlan.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
14
|
-
React.createElement(Open, {
|
|
15
|
-
close && React.createElement(Close,
|
|
14
|
+
React.createElement(Open, { url: meta.getRoute(actionPlan) }),
|
|
15
|
+
close && React.createElement(Close, { action: props.onClose }),
|
|
16
16
|
React.createElement(ActionPlanMenu, { id: id, closeAside: true })) })));
|
|
17
17
|
};
|
|
18
|
+
ActionPlanHeader.defaultProps = {
|
|
19
|
+
close: true,
|
|
20
|
+
};
|
|
18
21
|
export default ActionPlanHeader;
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,MAAM,gBAAgB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,MAAM,gBAAgB,GAAG,CAAC,KAA4D,EAAE,EAAE;IACzF,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAC5B,MAAM,IAAI,GAAG,YAAY,EAAE,CAAC;IAC5B,MAAM,UAAU,GAAG,aAAa,CAAC,EAAE,CAAC,CAAC;IAErC,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,gBAAgB,IAChB,OAAO,EAAE,UAAU,CAAC,IAAI,EACxB,IAAI,EACH,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK;YAC/B,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAiB,CAAC,GAAI;YAC9C,KAAK,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,OAAO,GAAI;YAC1C,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACnC,GAEV,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,YAAY,GAAG;IAC/B,KAAK,EAAE,IAAI;CACX,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import ActionPlanList from "../ActionPlanList";
|
|
4
|
-
import QuickViewDialog from "
|
|
4
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
5
5
|
import "./index.less";
|
|
6
6
|
const ActionPlanListQuickView = (props) => {
|
|
7
7
|
const { id } = props;
|
|
8
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "action-plan-list-quick-view"
|
|
8
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "action-plan-list-quick-view" },
|
|
9
9
|
React.createElement(ActionPlanList, { parentNodeId: id, headerType: "tool" }))));
|
|
10
10
|
};
|
|
11
11
|
export default ActionPlanListQuickView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanListQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanListQuickView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,cAAc,CAAC;AAEtB,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OAAK,KAAK,EAAE,SAAS,EAAC,6BAA6B;QAClE,oBAAC,cAAc,IAAC,YAAY,EAAE,EAAE,EAAE,UAAU,EAAC,MAAM,GAAG,CACrC,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -8,7 +8,7 @@ const ActionPlanPropertiesView = (props) => {
|
|
|
8
8
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
9
9
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
10
10
|
React.createElement("div", { className: "module-detail-view action-plan-properties-view" },
|
|
11
|
-
React.createElement(ActionPlanHeader, { id: id
|
|
11
|
+
React.createElement(ActionPlanHeader, { id: id }),
|
|
12
12
|
React.createElement(ActionPlanTabs, { id: id, properties: true })))));
|
|
13
13
|
};
|
|
14
14
|
export default ActionPlanPropertiesView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,wBAAwB,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC7E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,gDAAgD;YAC9D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,wBAAwB,GAAG,CAAC,KAAwC,EAAE,EAAE;IAC7E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,gDAAgD;YAC9D,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC5B,oBAAC,cAAc,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAChC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,wBAAwB,CAAC"}
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import ActionPlanHeader from "../ActionPlanHeader";
|
|
4
4
|
import ActionPlanProperties from "../ActionPlanProperties";
|
|
5
|
-
import
|
|
5
|
+
import DocumentQuickViewDialog from "../../../../components/DocumentQuickViewDialog";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
const ActionPlanQuickViewDialog = (props) => {
|
|
8
8
|
const { id } = props;
|
|
9
|
-
return observe(() => (React.createElement(
|
|
9
|
+
return observe(() => (React.createElement(DocumentQuickViewDialog, { ...props, className: "action-plan-quick-view", header: React.createElement(ActionPlanHeader, { id: id, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
10
10
|
React.createElement(ActionPlanProperties, { id: id }))));
|
|
11
11
|
};
|
|
12
12
|
export default ActionPlanQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/action-plan/components/ActionPlanQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAAgB,MAAM,qBAAqB,CAAC;AACnD,OAAO,oBAAoB,MAAM,yBAAyB,CAAC;AAC3D,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,cAAc,CAAC;AAEtB,MAAM,yBAAyB,GAAG,CAAC,KAIlC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,SAAS,EAAC,wBAAwB,EAClC,MAAM,EAAE,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EAC7D,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,oBAAoB,IAAC,EAAE,EAAE,EAAE,GAAI,CACP,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -1,73 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import React, { useState } from "react";
|
|
4
|
-
import { faFileAlt, faLink, faListTimeline, faExternalLink, faXmark, } from "@fortawesome/pro-light-svg-icons";
|
|
5
|
-
import DocumentList from "../../../../components/DocumentList";
|
|
6
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
|
7
|
-
import Links from "../../../../components/Links";
|
|
1
|
+
import { observe } from "@voplus/morpho-ui";
|
|
2
|
+
import React from "react";
|
|
8
3
|
import DocumentHeader from "../../../../components/DocumentHeader";
|
|
9
|
-
import
|
|
4
|
+
import DocumentQuickViewDialog from "../../../../components/DocumentQuickViewDialog";
|
|
10
5
|
import GraphViewer from "../GraphViewer";
|
|
11
|
-
import { useLayout } from "@voplus/morpho-data";
|
|
12
6
|
const GraphQuickViewDialog = (props) => {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const [asideContext] = useState(AsideContent.createContext());
|
|
16
|
-
const items = [
|
|
17
|
-
{ name: "Open", icon: faExternalLink, title: "Open New Tab", detail: React.createElement(React.Fragment, null) },
|
|
18
|
-
{
|
|
19
|
-
name: "Document",
|
|
20
|
-
icon: faFileAlt,
|
|
21
|
-
title: "Sub-Documents",
|
|
22
|
-
detail: React.createElement(DocumentList, { id: props.id, multiple: true }),
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
name: "Activities",
|
|
26
|
-
icon: faListTimeline,
|
|
27
|
-
title: "Activities",
|
|
28
|
-
detail: React.createElement(ActivityLog, { id: props.id }),
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
name: "Link",
|
|
32
|
-
icon: faLink,
|
|
33
|
-
title: "Activities",
|
|
34
|
-
detail: React.createElement(Links, { id: props.id, isTitle: false }),
|
|
35
|
-
},
|
|
36
|
-
];
|
|
37
|
-
if (!layout.ui.mobile)
|
|
38
|
-
items.push({ name: "Cancel", icon: faXmark, title: "", detail: React.createElement(React.Fragment, null) });
|
|
39
|
-
return observe(() => (React.createElement(FlexDialog, { modalProps: {
|
|
40
|
-
className: "quickView-modal-style",
|
|
41
|
-
open: props.visible,
|
|
42
|
-
width: subTab ? "1000px" : "650px",
|
|
43
|
-
destroyOnClose: true,
|
|
44
|
-
closable: false,
|
|
45
|
-
footer: false,
|
|
46
|
-
onCancel: props.onCancel,
|
|
47
|
-
}, closeAside: props.onCancel },
|
|
48
|
-
React.createElement(AsideContent, { context: asideContext, style: { width: "100%" } },
|
|
49
|
-
React.createElement("div", { className: "perview-content" },
|
|
50
|
-
React.createElement("div", { className: "perview-head" },
|
|
51
|
-
React.createElement(DocumentHeader, { id: props.id, className: "perview-doc-head", clickNameEffect: "edit", autoSaveName: true, tagsVisible: false, toolsVisible: false, flagVisible: false, statusVisible: false, quickDataBarVisible: false, descriptionVisible: false }),
|
|
52
|
-
React.createElement("div", { className: "preview-tab" },
|
|
53
|
-
React.createElement(QuickSubTab, { shape: false, items: items, showSubTab: showSubTab }))),
|
|
54
|
-
React.createElement(GraphViewer, { id: props.id, autoHeight: true }))))));
|
|
55
|
-
function showSubTab(item) {
|
|
56
|
-
var _a;
|
|
57
|
-
if (item.name === "Open") {
|
|
58
|
-
layout.history.push(`/document/${props.id}`);
|
|
59
|
-
}
|
|
60
|
-
else if (item.name === "Cancel") {
|
|
61
|
-
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
setSubTab(true);
|
|
65
|
-
asideContext.openAside(React.createElement(QuickSubContent, { shape: true, title: item.title, detail: item.detail, onCancel: () => {
|
|
66
|
-
asideContext.closeAside();
|
|
67
|
-
setSubTab(false);
|
|
68
|
-
} }), { span: 12 });
|
|
69
|
-
}
|
|
70
|
-
}
|
|
7
|
+
return observe(() => (React.createElement(DocumentQuickViewDialog, { ...props, width: 650, header: React.createElement(DocumentHeader, { id: props.id, className: "perview-doc-head", clickNameEffect: "edit", autoSaveName: true, tagsVisible: false, flagVisible: false, statusVisible: false, quickDataBarVisible: false, descriptionVisible: false, toolBarProps: { close: true, onClose: props.onCancel } }), subButtons: [{ name: "Document" }, { name: "Activities" }, { name: "Link" }] },
|
|
8
|
+
React.createElement(GraphViewer, { id: props.id, autoHeight: true }))));
|
|
71
9
|
};
|
|
72
10
|
export default GraphQuickViewDialog;
|
|
73
11
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/graph/components/GraphQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,MAAM,uCAAuC,CAAC;AACnE,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,MAAM,oBAAoB,GAAG,CAAC,KAA+D,EAAE,EAAE;IAChG,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,KAAK,EAAE,GAAG,EACV,MAAM,EACL,oBAAC,cAAc,IACd,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,SAAS,EAAC,kBAAkB,EAC5B,eAAe,EAAC,MAAM,EACtB,YAAY,EAAE,IAAI,EAClB,WAAW,EAAE,KAAK,EAClB,WAAW,EAAE,KAAK,EAClB,aAAa,EAAE,KAAK,EACpB,mBAAmB,EAAE,KAAK,EAC1B,kBAAkB,EAAE,KAAK,EACzB,YAAY,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,EAAE,GACrD,EAEH,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAE5E,oBAAC,WAAW,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,SAAG,CACf,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
declare const MessageScheduleHeader:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
declare const MessageScheduleHeader: {
|
|
3
|
+
(props: {
|
|
4
|
+
id: string;
|
|
5
|
+
close?: boolean;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
}): React.JSX.Element;
|
|
8
|
+
defaultProps: {
|
|
9
|
+
close: boolean;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
6
12
|
export default MessageScheduleHeader;
|
|
@@ -12,8 +12,11 @@ const MessageScheduleHeader = (props) => {
|
|
|
12
12
|
const messageSchedule = useMessageSchedule(id);
|
|
13
13
|
return observe(() => (React.createElement(NodeHeaderLayout, { content: messageSchedule.name, tool: React.createElement(ToolBar, { id: id, showMenu: false },
|
|
14
14
|
React.createElement(Open, { size: "middle", url: meta.getRoute(messageSchedule) }),
|
|
15
|
-
close && React.createElement(Close,
|
|
15
|
+
close && React.createElement(Close, { action: props.onClose }),
|
|
16
16
|
React.createElement(MessageScheduleMenu, { id: id, closeAside: true })) })));
|
|
17
17
|
};
|
|
18
|
+
MessageScheduleHeader.defaultProps = {
|
|
19
|
+
close: true,
|
|
20
|
+
};
|
|
18
21
|
export default MessageScheduleHeader;
|
|
19
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageScheduleHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,kBAAkB,EAAE,MAAM,mCAAmC,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC5D,OAAO,mBAAmB,MAAM,oCAAoC,CAAC;AACrE,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,gBAAgB,MAAM,gDAAgD,CAAC;AAE9E,MAAM,qBAAqB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule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,7 @@ const MessageSchedulePropertiesView = (props) => {
|
|
|
8
8
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
9
9
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
10
10
|
React.createElement("div", { className: "module-detail-view message-schedule-properties-view" },
|
|
11
|
-
React.createElement(MessageScheduleHeader, { id: id
|
|
11
|
+
React.createElement(MessageScheduleHeader, { id: id }),
|
|
12
12
|
React.createElement(MessageScheduleTabs, { id: id, properties: true })))));
|
|
13
13
|
};
|
|
14
14
|
export default MessageSchedulePropertiesView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageSchedulePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,6BAA6B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAClF,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,qDAAqD;YACnE,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageSchedulePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,mBAAmB,MAAM,wBAAwB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,MAAM,6BAA6B,GAAG,CAAC,KAAwC,EAAE,EAAE;IAClF,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,qDAAqD;YACnE,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,GAAI;YACjC,oBAAC,mBAAmB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CACrC,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,6BAA6B,CAAC"}
|
|
@@ -2,11 +2,11 @@ import React from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import MessageScheduleHeader from "../MessageScheduleHeader";
|
|
4
4
|
import MessageScheduleProperties from "../MessageScheduleProperties";
|
|
5
|
-
import
|
|
5
|
+
import DocumentQuickViewDialog from "../../../../components/DocumentQuickViewDialog";
|
|
6
6
|
import "./index.less";
|
|
7
7
|
const MessageScheduleQuickViewDialog = (props) => {
|
|
8
8
|
const { id } = props;
|
|
9
|
-
return observe(() => (React.createElement(
|
|
9
|
+
return observe(() => (React.createElement(DocumentQuickViewDialog, { ...props, className: "message-schedule-quick-view", header: React.createElement(MessageScheduleHeader, { id: id, onClose: props.onCancel }), subButtons: [{ name: "Document" }, { name: "Activities" }] },
|
|
10
10
|
React.createElement(MessageScheduleProperties, { id: id }))));
|
|
11
11
|
};
|
|
12
12
|
export default MessageScheduleQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,yBAAyB,MAAM,8BAA8B,CAAC;AACrE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/message-schedule/components/MessageScheduleQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,yBAAyB,MAAM,8BAA8B,CAAC;AACrE,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,cAAc,CAAC;AAEtB,MAAM,8BAA8B,GAAG,CAAC,KAIvC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,SAAS,EAAC,6BAA6B,EACvC,MAAM,EAAE,oBAAC,qBAAqB,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EAClE,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC;QAE1D,oBAAC,yBAAyB,IAAC,EAAE,EAAE,EAAE,GAAI,CACZ,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,8BAA8B,CAAC"}
|
|
@@ -5,6 +5,10 @@
|
|
|
5
5
|
border-bottom: none;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
+
.properties-section___h2l0v {
|
|
9
|
+
padding: 0;
|
|
10
|
+
}
|
|
11
|
+
|
|
8
12
|
.prop-item {
|
|
9
13
|
margin-bottom: 15px;
|
|
10
14
|
|
|
@@ -48,11 +52,11 @@
|
|
|
48
52
|
|
|
49
53
|
:global {
|
|
50
54
|
.advance-filter-form {
|
|
51
|
-
|
|
55
|
+
& > header {
|
|
52
56
|
border-bottom: none;
|
|
53
57
|
}
|
|
54
58
|
|
|
55
|
-
|
|
59
|
+
& > div.flex-1.mx-4.py-5.sm\:mx-6 {
|
|
56
60
|
padding-top: 0;
|
|
57
61
|
padding-bottom: 0;
|
|
58
62
|
}
|
|
@@ -61,4 +65,4 @@
|
|
|
61
65
|
color: #217eb2;
|
|
62
66
|
}
|
|
63
67
|
}
|
|
64
|
-
}
|
|
68
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/shortcut/components/ShortcutQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/shortcut/components/ShortcutQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,uBAAuB,MAAM,gDAAgD,CAAC;AACrF,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AAEvD,MAAM,uBAAuB,GAAG,CAAC,KAIhC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,OACnB,KAAK,EACT,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;QAE5E,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI,CACL,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import ToolBar from "../../../../controls/ToolBar/ToolBar2";
|
|
3
|
-
import { Open } from "../../../../controls/ToolBar/buttons";
|
|
3
|
+
import { Open, Close } from "../../../../controls/ToolBar/buttons";
|
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import { useTenantService } from "../../../../data/tenant-service";
|
|
@@ -13,6 +13,7 @@ const TenantServiceHeader = (props) => {
|
|
|
13
13
|
React.createElement("div", null, tenantService.name),
|
|
14
14
|
React.createElement(ToolBar, { showMenu: false },
|
|
15
15
|
React.createElement(Open, { url: Routes.TenantService.getUrl(id) }),
|
|
16
|
+
React.createElement(Close, { action: props.onClose }),
|
|
16
17
|
React.createElement(TenantServiceMenu, { id: id, closeAside: true })))));
|
|
17
18
|
};
|
|
18
19
|
export default TenantServiceHeader;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,iBAAiB,MAAM,kCAAkC,CAAC;AAEjE,MAAM,mBAAmB,GAAG,CAAC,KAA2C,EAAE,EAAE;IAC3E,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,aAAa,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE3C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,uBAAuB;QACrC,iCAAM,aAAa,CAAC,IAAI,CAAO;QAC/B,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;YACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YAC9C,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,OAAO,GAAI;YAChC,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACtC,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -2,7 +2,7 @@ import React, { useMemo } from "react";
|
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { ViewContext, ViewContextData, } from "@voplus/morpho-document-core/es/data/context/ViewContext";
|
|
4
4
|
import TenantServiceExecutionList from "../../../tenant-service-execution/components/TenantServiceExecutionList";
|
|
5
|
-
import QuickViewDialog from "
|
|
5
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
6
6
|
import { faBallot } from "@fortawesome/pro-light-svg-icons";
|
|
7
7
|
import TenantServiceHeader from "../TenantServiceHeader";
|
|
8
8
|
import TenantServiceProperties from "../TenantServiceProperties";
|
|
@@ -11,14 +11,14 @@ const TenantServiceQuickViewDialog = (props) => {
|
|
|
11
11
|
const { id } = props;
|
|
12
12
|
const view = useMemo(() => new ViewContextData("QuickView"), []);
|
|
13
13
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
14
|
-
React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id }), items: [
|
|
14
|
+
React.createElement(QuickViewDialog, { ...props, className: "tenant-service-quick-view", header: React.createElement(TenantServiceHeader, { id: id, onClose: props.onCancel }), items: [
|
|
15
15
|
{
|
|
16
16
|
name: "TenantServiceExecution",
|
|
17
17
|
icon: faBallot,
|
|
18
18
|
title: "Tenant Service Execution",
|
|
19
19
|
detail: React.createElement(TenantServiceExecutionList, { tenantServiceId: id }),
|
|
20
20
|
},
|
|
21
|
-
]
|
|
21
|
+
] },
|
|
22
22
|
React.createElement(TenantServiceProperties, { id: id })))));
|
|
23
23
|
};
|
|
24
24
|
export default TenantServiceQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service/components/TenantServiceQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,0BAA0B,MAAM,yEAAyE,CAAC;AACjH,OAAO,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":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AAe,4BAA4B,CAAC"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.d.ts
CHANGED
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
2
|
import React from "react";
|
|
3
|
-
declare const TenantServiceExecutionHeader:
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
declare const TenantServiceExecutionHeader: {
|
|
4
|
+
(props: {
|
|
5
|
+
id: string;
|
|
6
|
+
close?: boolean;
|
|
7
|
+
onClose?: () => void;
|
|
8
|
+
}): React.JSX.Element;
|
|
9
|
+
defaultProps: {
|
|
10
|
+
close: boolean;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
7
13
|
export default TenantServiceExecutionHeader;
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js
CHANGED
|
@@ -7,14 +7,17 @@ import { useTenantServiceExecution, } from "../../../../data/tenant-service-exec
|
|
|
7
7
|
import Routes from "../../../../routes";
|
|
8
8
|
import TenantServiceExecutionMenu from "../../controls/TenantServiceExecutionMenu";
|
|
9
9
|
const TenantServiceExecutionHeader = (props) => {
|
|
10
|
-
const { id, close } = props;
|
|
10
|
+
const { id, close, onClose } = props;
|
|
11
11
|
const tenantServiceExecution = useTenantServiceExecution(id);
|
|
12
12
|
return observe(() => (React.createElement("div", { className: "tenant-service-execution-header" },
|
|
13
13
|
React.createElement("div", null, "Tenant Service Execution"),
|
|
14
14
|
React.createElement(ToolBar, { showMenu: false },
|
|
15
15
|
React.createElement(Open, { url: Routes.TenantServiceExecution.getUrl(id) }),
|
|
16
|
-
close && React.createElement(Close,
|
|
16
|
+
close && React.createElement(Close, { action: props.onClose }),
|
|
17
17
|
React.createElement(TenantServiceExecutionMenu, { id: id, closeAside: true })))));
|
|
18
18
|
};
|
|
19
|
+
TenantServiceExecutionHeader.defaultProps = {
|
|
20
|
+
close: true,
|
|
21
|
+
};
|
|
19
22
|
export default TenantServiceExecutionHeader;
|
|
20
23
|
//# sourceMappingURL=index.js.map
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,yBAAyB,GAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AAEnF,MAAM,4BAA4B,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,sCAAsC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EACN,yBAAyB,GAEzB,MAAM,2CAA2C,CAAC;AACnD,OAAO,MAAM,MAAM,oBAAoB,CAAC;AACxC,OAAO,0BAA0B,MAAM,2CAA2C,CAAC;AAEnF,MAAM,4BAA4B,GAAG,CAAC,KAIrC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IACrC,MAAM,sBAAsB,GAAG,yBAAyB,CAAC,EAAE,CAAC,CAAC;IAE7D,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,iCAAiC;QAC/C,4DAAmC;QACnC,oBAAC,OAAO,IAAC,QAAQ,EAAE,KAAK;YACvB,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,sBAAsB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YACtD,KAAK,IAAI,oBAAC,KAAK,IAAC,MAAM,EAAE,KAAK,CAAC,OAAO,GAAI;YAC1C,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC/C,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,4BAA4B,CAAC,YAAY,GAAG;IAC3C,KAAK,EAAE,IAAI;CACX,CAAC;AAEF,eAAe,4BAA4B,CAAC"}
|
package/es/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.js
CHANGED
|
@@ -9,7 +9,7 @@ const TenantServiceExecutionPropertiesView = (props) => {
|
|
|
9
9
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
|
10
10
|
return observe(() => (React.createElement(ViewContext.Provider, { value: view },
|
|
11
11
|
React.createElement("div", { className: "module-detail-view tenant-service-execution-properties-view" },
|
|
12
|
-
React.createElement(TenantServiceExecutionHeader, { id: id
|
|
12
|
+
React.createElement(TenantServiceExecutionHeader, { id: id }),
|
|
13
13
|
React.createElement(TenantServiceExecutionTabs, { id: id, properties: true })))));
|
|
14
14
|
};
|
|
15
15
|
export default TenantServiceExecutionPropertiesView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AAEvE,MAAM,oCAAoC,GAAG,CAAC,KAI7C,EAAE,EAAE;IACJ,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,6DAA6D;YAC3E,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,0BAA0B,MAAM,+BAA+B,CAAC;AAEvE,MAAM,oCAAoC,GAAG,CAAC,KAI7C,EAAE,EAAE;IACJ,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,IAAI,eAAe,CAAC,gBAAgB,CAAC,EAAE,EAAE,CAAC,CAAC;IAEtE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,6BAAK,SAAS,EAAC,6DAA6D;YAC3E,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,GAAI;YACxC,oBAAC,0BAA0B,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,SAAG,CAC5C,CACgB,CACvB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,oCAAoC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./index.less";
|
|
2
|
-
import QuickViewDialog from "
|
|
2
|
+
import QuickViewDialog from "@voplus/morpho-org/es/controls/QuickViewDialog";
|
|
3
3
|
import { observe } from "@voplus/morpho-ui";
|
|
4
4
|
import React from "react";
|
|
5
5
|
import { faMessages } from "@fortawesome/pro-light-svg-icons";
|
|
@@ -8,14 +8,14 @@ import TenantServiceExecutionProperties from "../TenantServiceExecutionPropertie
|
|
|
8
8
|
import TenantServiceExecutionMessagesList from "../TenantServiceExecutionMessagesList";
|
|
9
9
|
const TenantServiceExecutionQuickViewDialog = (props) => {
|
|
10
10
|
const { id } = props;
|
|
11
|
-
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-execution-quick-view", header: React.createElement(TenantServiceExecutionHeader, { id: id }), items: [
|
|
11
|
+
return observe(() => (React.createElement(QuickViewDialog, { ...props, className: "tenant-service-execution-quick-view", header: React.createElement(TenantServiceExecutionHeader, { id: id, onClose: props.onCancel }), items: [
|
|
12
12
|
{
|
|
13
13
|
name: "Messages",
|
|
14
14
|
icon: faMessages,
|
|
15
15
|
title: "Messages",
|
|
16
|
-
detail: React.createElement(TenantServiceExecutionMessagesList, { id: id
|
|
16
|
+
detail: React.createElement(TenantServiceExecutionMessagesList, { id: id }),
|
|
17
17
|
},
|
|
18
|
-
]
|
|
18
|
+
] },
|
|
19
19
|
React.createElement(TenantServiceExecutionProperties, { id: id }))));
|
|
20
20
|
};
|
|
21
21
|
export default TenantServiceExecutionQuickViewDialog;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,MAAM,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tenant-service-execution/components/TenantServiceExecutionQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AACtB,OAAO,eAAe,MAAM,gDAAgD,CAAC;AAC7E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAC9D,OAAO,4BAA4B,MAAM,iCAAiC,CAAC;AAC3E,OAAO,gCAAgC,MAAM,qCAAqC,CAAC;AACnF,OAAO,kCAAkC,MAAM,uCAAuC,CAAC;AAEvF,MAAM,qCAAqC,GAAG,CAAC,KAI9C,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,eAAe,OACX,KAAK,EACT,SAAS,EAAC,qCAAqC,EAC/C,MAAM,EAAE,oBAAC,4BAA4B,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,CAAC,QAAQ,GAAI,EACzE,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,UAAU;gBAChB,KAAK,EAAE,UAAU;gBACjB,MAAM,EAAE,oBAAC,kCAAkC,IAAC,EAAE,EAAE,EAAE,GAAI;aACtD;SACD;QAED,oBAAC,gCAAgC,IAAC,EAAE,EAAE,EAAE,GAAI,CAC3B,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,qCAAqC,CAAC"}
|