@voplus/morpho-workspace 1.3.180 → 1.3.181
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.d.ts +7 -13
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.js +3 -21
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.less +0 -29
@@ -1,15 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
closeVisible?: boolean;
|
10
|
-
}): JSX.Element;
|
11
|
-
defaultProps: {
|
12
|
-
closeVisible: boolean;
|
13
|
-
};
|
14
|
-
};
|
2
|
+
declare const WorkScheduleQuickViewDialog: (props: {
|
3
|
+
id: string;
|
4
|
+
visible?: boolean;
|
5
|
+
onCancel?: () => void;
|
6
|
+
/** show close button or not. */
|
7
|
+
closeVisible?: boolean;
|
8
|
+
}) => JSX.Element;
|
15
9
|
export default WorkScheduleQuickViewDialog;
|
@@ -1,30 +1,12 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import { faTimes } from "@fortawesome/pro-light-svg-icons";
|
5
3
|
import WorkScheduleHeader from "../WorkScheduleHeader";
|
6
4
|
import WorkScheduleProperties from "../WorkScheduleProperties";
|
7
|
-
import
|
8
|
-
import "./index.less";
|
5
|
+
import NodeQuickView from "@voplus/morpho-document/es/components/NodeQuickView";
|
9
6
|
const WorkScheduleQuickViewDialog = (props) => {
|
10
7
|
const { id } = props;
|
11
|
-
return observe(() => (React.createElement(
|
12
|
-
|
13
|
-
width: "500px",
|
14
|
-
destroyOnClose: true,
|
15
|
-
closable: false,
|
16
|
-
footer: false,
|
17
|
-
visible: props.visible,
|
18
|
-
onCancel: props.onCancel,
|
19
|
-
}, closeAside: props.onCancel },
|
20
|
-
React.createElement("div", { className: "quickView-content" },
|
21
|
-
props.closeVisible && (React.createElement("div", { className: "work-schedule-close-icon" },
|
22
|
-
React.createElement(FAIcon, { icon: faTimes, onClick: props.onCancel }))),
|
23
|
-
React.createElement(WorkScheduleHeader, { id: id }),
|
24
|
-
React.createElement(WorkScheduleProperties, { id: id })))));
|
25
|
-
};
|
26
|
-
WorkScheduleQuickViewDialog.defaultProps = {
|
27
|
-
closeVisible: true,
|
8
|
+
return observe(() => (React.createElement(NodeQuickView, { id: props.id, visible: props.visible, onCancel: props.onCancel, functionButtons: ["activities"], header: React.createElement(WorkScheduleHeader, { id: id }) },
|
9
|
+
React.createElement(WorkScheduleProperties, { id: id }))));
|
28
10
|
};
|
29
11
|
export default WorkScheduleQuickViewDialog;
|
30
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/components/WorkScheduleQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,sBAAsB,MAAM,2BAA2B,CAAC;AAC/D,OAAO,aAAa,MAAM,qDAAqD,CAAC;AAEhF,MAAM,2BAA2B,GAAG,CAAC,KAMpC,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,aAAa,IACb,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,eAAe,EAAE,CAAC,YAAY,CAAC,EAC/B,MAAM,EAAE,oBAAC,kBAAkB,IAAC,EAAE,EAAE,EAAE,GAAI;QAEtC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,CACnB,CAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
package/package.json
CHANGED
@@ -1,29 +0,0 @@
|
|
1
|
-
:global {
|
2
|
-
.quickView-modal-style {
|
3
|
-
.ant-modal-close-x {
|
4
|
-
color: #575757;
|
5
|
-
}
|
6
|
-
|
7
|
-
.quickView-content {
|
8
|
-
position: relative;
|
9
|
-
width: 100%;
|
10
|
-
|
11
|
-
.work-schedule-close-icon {
|
12
|
-
position: absolute;
|
13
|
-
right: 20px;
|
14
|
-
top: 14px;
|
15
|
-
font-size: 22px;
|
16
|
-
text-align: right;
|
17
|
-
cursor: pointer;
|
18
|
-
}
|
19
|
-
|
20
|
-
.work-schedule-header {
|
21
|
-
padding: 10px 44px 10px 20px;
|
22
|
-
|
23
|
-
.tool-bar {
|
24
|
-
min-width: 66px;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
}
|
29
|
-
}
|