@voplus/morpho-workspace 5.0.41 → 5.0.43
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/notification/components/DocumentNotificationCard/index.js +3 -3
- package/es/modules/notification/components/DocumentNotificationCard/index.js.map +1 -1
- package/es/modules/pin/components/PinnedCardList/index.js.map +1 -1
- package/es/modules/tasks/controls/TaskMenu/index.d.ts +0 -1
- package/es/modules/tasks/controls/TaskMenu/index.js +4 -2
- package/es/modules/tasks/controls/TaskMenu/index.js.map +1 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.d.ts +1 -0
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +5 -5
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js.map +1 -1
- package/es/modules/work/components/RelatedWorkList/index.less +5 -5
- package/es/modules/work/components/WorkErrorItem/index.d.ts +1 -0
- package/es/modules/work/components/WorkErrorItem/index.js +2 -2
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.less +8 -8
- package/es/modules/work/components/WorkItem/index.d.ts +1 -0
- package/es/modules/work/components/WorkItem/index.js +2 -2
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.less +15 -15
- package/es/modules/work/controls/WorkMenu/index.d.ts +2 -3
- package/es/modules/work/controls/WorkMenu/index.js +3 -3
- package/es/modules/work/controls/WorkMenu/index.js.map +1 -1
- package/es/modules/work/controls/WorkMenu/item/Send.d.ts +0 -1
- package/es/modules/work/controls/WorkMenu/item/Send.js +3 -1
- package/es/modules/work/controls/WorkMenu/item/Send.js.map +1 -1
- package/package.json +1 -1
@@ -19,9 +19,9 @@ const DocumentNotificationCard = (props) => {
|
|
19
19
|
React.createElement("div", { className: "notification-date" }, moment(notification.createDate).format("DD MMM yyyy")),
|
20
20
|
React.createElement("div", { className: "notification-btn" },
|
21
21
|
React.createElement(Space, null,
|
22
|
-
notification.status !== "Dismissed" && (React.createElement(Button, { onClick: (ev) => onChangeStatus(ev, "Dismissed") }, "Dismiss")),
|
23
|
-
notification.status === "Dismissed" && (React.createElement(Button, { onClick: (ev) => onChangeStatus(ev, "Read") }, "UnDismiss")),
|
24
|
-
notification.status !== "Later" && notification.status !== "Dismissed" && (React.createElement(Button, { onClick: (ev) => onChangeStatus(ev, "Later") }, "Later")))))))));
|
22
|
+
notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-dismiss", onClick: (ev) => onChangeStatus(ev, "Dismissed") }, "Dismiss")),
|
23
|
+
notification.status === "Dismissed" && (React.createElement(Button, { className: "btn-unDismiss", onClick: (ev) => onChangeStatus(ev, "Read") }, "UnDismiss")),
|
24
|
+
notification.status !== "Later" && notification.status !== "Dismissed" && (React.createElement(Button, { className: "btn-later", onClick: (ev) => onChangeStatus(ev, "Later") }, "Later")))))))));
|
25
25
|
function onChangeStatus(ev, status) {
|
26
26
|
var _a;
|
27
27
|
(_a = props.onChangeStatus) === null || _a === void 0 ? void 0 : _a.call(props, status);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,wBAAwB,GAAG,CAAC,KAMjC,EAAE,EAAE;IACJ,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAA0B,CAAC;IAExE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EAC7F,QAAQ;QACR,aAAa;QACb,MAAM;QAEN,6BAAK,SAAS,EAAC,2BAA2B,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO;YAChE,gCAAK,YAAY,CAAC,OAAO,CAAC,KAAK,CAAM;YACrC,oBAAC,iBAAiB,IAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,GAAI;YACzD,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,6BAAK,SAAS,EAAC,mBAAmB,IAChC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CACjD;gBACN,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,KAAK;wBACJ,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CACvC,oBAAC,MAAM,IAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/DocumentNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,M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M,IAAC,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,YAEjE,CACT,CACM,CACH,CACD,CACD,CACA,CACP,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAO,EAAE,MAA0B;;QAC1D,MAAA,KAAK,CAAC,cAAc,sDAAG,MAAM,CAAC,CAAC;QAC/B,EAAE,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,wBAAwB,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/pin/components/PinnedCardList/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,qBAAqB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,UAAU,MAAM,YAAY,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/pin/components/PinnedCardList/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAa,qBAAqB,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAC9F,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACjF,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AACvF,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,UAAU,MAAM,yDAAyD,CAAC;AACjF,OAAO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fortawesome/pro-light-svg-icons";
|
5
5
|
import { observe, MenuTitle } from "@voplus/morpho-ui";
|
6
6
|
import { DocumentMenuContext, DocumentMenuState, useTask } from "@voplus/morpho-document-core";
|
7
|
+
import { useToolBarContext } from "@voplus/morpho-document/es/controls/ToolBar/ToolBarState";
|
7
8
|
import DocumentMenu from "@voplus/morpho-document/es/controls/DocumentMenu";
|
8
9
|
import DelegateDialog from "../../components/DelegateDialog";
|
9
10
|
const TaskMenu = (props) => {
|
@@ -11,16 +12,17 @@ const TaskMenu = (props) => {
|
|
11
12
|
const classId = "task-menu";
|
12
13
|
const [visible, setVisible] = useState(false);
|
13
14
|
const context = useMemo(() => new DocumentMenuState(props.id), [props.id]);
|
15
|
+
const toolBarContext = useToolBarContext();
|
14
16
|
const task = useTask(props.id);
|
15
17
|
return observe(() => (React.createElement(DocumentMenuContext.Provider, { value: context },
|
16
18
|
React.createElement(MenuTitle, { title: "Task Menu" }),
|
17
19
|
React.createElement(Button, { type: "link", key: "Delegate", className: classId + "-delegate", onClick: () => {
|
18
|
-
|
20
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
19
21
|
setVisible(true);
|
20
22
|
} },
|
21
23
|
React.createElement(FAIcon, { icon: faSquarePen }),
|
22
24
|
React.createElement("span", null, "Delegate")),
|
23
|
-
React.createElement(DocumentMenu, { id: props.id,
|
25
|
+
React.createElement(DocumentMenu, { id: props.id, isTitle: true, closeAside: true }),
|
24
26
|
visible && (React.createElement(DelegateDialog, { id: props.id, members: task.members, onCancel: () => setVisible(false) })))));
|
25
27
|
};
|
26
28
|
export default TaskMenu;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/controls/TaskMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,M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I,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3E,MAAM,cAAc,GAAG,iBAAiB,EAAE,CAAC;IAE3C,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAE/B,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,mBAAmB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,SAAS,IAAC,KAAK,EAAC,WAAW,GAAG;QAC/B,oBAAC,MAAM,IACN,IAAI,EAAC,MAAM,EACX,GAAG,EAAC,UAAU,EACd,SAAS,EAAE,OAAO,GAAG,WAAW,EAChC,OAAO,EAAE,GAAG,EAAE;gBACb,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,aAAa,EAAE,CAAC;gBAChC,UAAU,CAAC,IAAI,CAAC,CAAC;YAClB,CAAC;YAED,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;YAC7B,6CAAqB,CACb;QACT,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,QAAC,UAAU,SAAG;QAChD,OAAO,IAAI,CACX,oBAAC,cAAc,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC,GAAI,CAC1F,CAC6B,CAC/B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { Spin } from "antd";
|
2
2
|
import React, { useEffect, useState } from "react";
|
3
3
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
@@ -10,7 +10,7 @@ import WorkItem from "../WorkItem";
|
|
10
10
|
import { faPlus } from "@fortawesome/pro-light-svg-icons";
|
11
11
|
import { observe } from "@voplus/morpho-ui";
|
12
12
|
import { runInAction } from "mobx";
|
13
|
-
import
|
13
|
+
import "./index.less";
|
14
14
|
import { useDocumentLinkListEffect } from "@voplus/morpho-document-core";
|
15
15
|
import { useWork } from "../../../../data/work";
|
16
16
|
const RelatedWorkList = (props) => {
|
@@ -30,13 +30,13 @@ const RelatedWorkList = (props) => {
|
|
30
30
|
useEffect(() => {
|
31
31
|
state.links = [];
|
32
32
|
}, [id]);
|
33
|
-
const content = observe(() => state.loading ? (React.createElement("div", { className:
|
34
|
-
React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : (React.createElement("div", { className:
|
33
|
+
const content = observe(() => state.loading ? (React.createElement("div", { className: "related-work-list" },
|
34
|
+
React.createElement(Spin, { tip: "Loading...", indicator: React.createElement(LoadingOutlined, null) }))) : (React.createElement("div", { className: "related-work-list" },
|
35
35
|
React.createElement("div", { className: "related-work-list-header" },
|
36
36
|
React.createElement("div", { className: "related-work-title" }, title),
|
37
37
|
addAble && (React.createElement("span", { className: "plus-icon" },
|
38
38
|
React.createElement(FAIcon, { icon: faPlus, onClick: () => setAdd(!add) })))),
|
39
|
-
React.createElement(Scrollbars, { autoHide: true }, state.links.length ? (state.links.map((item, index) => (React.createElement(WorkItem, { key: item.right.id, clickNameEffect: "default", id: item.right.id === id ? item.left.id : item.right.id })))) : (
|
39
|
+
React.createElement(Scrollbars, { autoHide: true }, state.links.length ? (state.links.map((item, index) => (React.createElement(WorkItem, { key: item.right.id, clickNameEffect: "default", id: item.right.id === id ? item.left.id : item.right.id })))) : (null)),
|
40
40
|
add && (React.createElement(NewWorkForm, { openMode: "openBottom", workId: id, contact: primaryContact || work.contact, isRelatedWork: true, onSave: () => {
|
41
41
|
setAdd(false);
|
42
42
|
props.onReload && props.onReload();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"RelatedWorkList.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RelatedWorkList/RelatedWorkList.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"RelatedWorkList.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/RelatedWorkList/RelatedWorkList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAS,IAAI,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAgBhD,MAAM,eAAe,GAAG,CAAC,KAA2B,EAAE,EAAE;IACvD,MAAM,EAAE,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,cAAc,EAAE,GAAG,KAAK,CAAC;IACrD,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,CAAC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{
|
7
7
|
.related-work-list-header {
|
8
8
|
height: 60px;
|
9
9
|
padding: 1em 20px;
|
@@ -7,14 +7,14 @@ import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
|
7
7
|
import classnames from "classnames";
|
8
8
|
import moment from "moment";
|
9
9
|
import { observe } from "@voplus/morpho-ui";
|
10
|
-
import
|
10
|
+
import "./index.less";
|
11
11
|
import { useApplicationContext } from "@voplus/morpho-data";
|
12
12
|
import { useWorkError } from "../../../../data/workerror";
|
13
13
|
const WorkErrorItem = (props) => {
|
14
14
|
const { user } = useApplicationContext();
|
15
15
|
const workError = useWorkError(props.id);
|
16
16
|
const [hover, setHover] = useState(false);
|
17
|
-
return observe(() => (React.createElement("div", { className:
|
17
|
+
return observe(() => (React.createElement("div", { className: "workerror-item", onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
18
18
|
React.createElement(Row, null,
|
19
19
|
React.createElement(Col, { flex: 3 },
|
20
20
|
React.createElement("div", null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AAErE,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkErrorItem/index.t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AQ,CAAO,CACzC;gBACN,6BAAK,SAAS,EAAC,gBAAgB,IAAE,MAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAO,CAC9E;YACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC,EAAE,SAAS,EAAC,mBAAmB;gBAC1C,oBAAC,UAAU,IACV,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,IAAI,EAAE,SAAS,CAAC,OAAO,IAAI,EAAE,EAC7B,QAAQ,EAAE,KAAK,GACd,CACG,CACD;QACN,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;gBAC3C,IAAI,EAAE,KAAK;aACX,CAAC;YAEF,oBAAC,OAAO,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAE,KAAK;gBACrC,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,eAAe,KAAK,CAAC,EAAE,EAAE,GAAI;gBACtD,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CACxC,CACL,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
1
|
+
:global {
|
2
|
+
.workerror-item {
|
3
|
+
padding: 10px 20px;
|
4
|
+
background: transparent;
|
5
|
+
position: relative;
|
6
|
+
// &:global(:hover) {
|
7
|
+
// background: #f3f1f1;
|
8
|
+
// }
|
9
9
|
.workerror-info {
|
10
10
|
display: inline-block;
|
11
11
|
color: #000;
|
@@ -11,7 +11,7 @@ import classnames from "classnames";
|
|
11
11
|
import { faAlarmExclamation } from "@fortawesome/pro-light-svg-icons";
|
12
12
|
import moment from "moment";
|
13
13
|
import { observe } from "@voplus/morpho-ui";
|
14
|
-
import
|
14
|
+
import "./index.less";
|
15
15
|
import { useMetaStore } from "@voplus/morpho-document-core";
|
16
16
|
const WorkItem = (props) => {
|
17
17
|
const { id, clickNameEffect } = props;
|
@@ -21,7 +21,7 @@ const WorkItem = (props) => {
|
|
21
21
|
const workStore = useWorkStore();
|
22
22
|
return observe(() => {
|
23
23
|
var _a;
|
24
|
-
return (React.createElement(DocumentHeader, { id: work.id, quickDataBarAlign: "left", clickNameEffect: clickNameEffect, flagVisible: false, tagsVisible: !!((_a = work.tags) === null || _a === void 0 ? void 0 : _a.length), className:
|
24
|
+
return (React.createElement(DocumentHeader, { id: work.id, quickDataBarAlign: "left", clickNameEffect: clickNameEffect, flagVisible: false, tagsVisible: !!((_a = work.tags) === null || _a === void 0 ? void 0 : _a.length), className: "default-work-item", onMouse: (over) => setHover(over), quickDataBar: React.createElement(WorkDataIconBar, { id: id }), tools: React.createElement(React.Fragment, null,
|
25
25
|
React.createElement("div", { className: classnames("work-statue-due-date", { hide: hover }) },
|
26
26
|
React.createElement("div", null,
|
27
27
|
React.createElement(WorkStatusLabel, { status: work.workStatus, editable: !work.readonly, onChange: workStatusEdit, className: classnames("work-status-label") })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorkItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC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CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CACxD,CACF,CACG,CACV,CACG;gBACN,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;wBAC3C,IAAI,EAAE,KAAK;qBACX,CAAC;oBAEF,oBAAC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,SAAS,EAAE;4BACV,WAAW,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;yBAC/B;wBAED,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAI,CACvC,CACL,CACU,GAEjB,CACF,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,UAAkB;QACzC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;YACvB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC9B,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,QAAQ,CAAC,YAAY,GAAG;IACvB,eAAe,EAAE,SAAS;CAC1B,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1,19 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
1
|
+
:global {
|
2
|
+
.default-work-item {
|
3
|
+
position: relative;
|
4
|
+
align-items: center;
|
5
|
+
cursor: pointer;
|
6
|
+
background-color: transparent;
|
7
|
+
|
8
|
+
&::after {
|
9
|
+
position: absolute;
|
10
|
+
content: "";
|
11
|
+
left: 20px;
|
12
|
+
right: 20px;
|
13
|
+
bottom: 0;
|
14
|
+
border-bottom: 1px solid #f2f2f2;
|
15
|
+
}
|
15
16
|
|
16
|
-
:global {
|
17
17
|
.work-statue-due-date {
|
18
18
|
opacity: 1;
|
19
19
|
transition: opacity 0.3s;
|
@@ -1,8 +1,7 @@
|
|
1
1
|
import React from "react";
|
2
2
|
declare const WorkMenu: (props: {
|
3
3
|
id: string;
|
4
|
-
className?: string
|
5
|
-
closeAside?: boolean
|
6
|
-
onClickItem?: ((open?: boolean) => void) | undefined;
|
4
|
+
className?: string;
|
5
|
+
closeAside?: boolean;
|
7
6
|
}) => React.JSX.Element;
|
8
7
|
export default WorkMenu;
|
@@ -29,15 +29,15 @@ const WorkMenu = (props) => {
|
|
29
29
|
isMenuTitle && React.createElement(MenuTitle, { title: "Work Menu" }),
|
30
30
|
React.createElement(Accept, { className: classId + "-accept" }),
|
31
31
|
React.createElement(Reject, { className: classId + "-reject" }),
|
32
|
-
React.createElement(Send, {
|
32
|
+
React.createElement(Send, { className: classId + "-send" }),
|
33
33
|
isMenuTitle && React.createElement(MenuTitle, { title: "Document Menu" }),
|
34
34
|
React.createElement(Pin, null),
|
35
35
|
React.createElement(Unpin, null),
|
36
36
|
React.createElement(CopyReference, null),
|
37
37
|
React.createElement(Select, null),
|
38
38
|
React.createElement(SubPasteMenu, null),
|
39
|
-
React.createElement(LockMenuGroup,
|
40
|
-
React.createElement(MiscMenuGroup, { configMenu: ["OpenReferenceView", "Access", "Delete"], deleteCloseAside: props.closeAside
|
39
|
+
React.createElement(LockMenuGroup, null),
|
40
|
+
React.createElement(MiscMenuGroup, { configMenu: ["OpenReferenceView", "Access", "Delete"], deleteCloseAside: props.closeAside }))));
|
41
41
|
});
|
42
42
|
};
|
43
43
|
export default WorkMenu;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,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IAAC,KAAK,EAAC,WAAW,GAAG;gBAC/C,oBAAC,MAAM,IAAC,SAAS,EAAE,OAAO,GAAG,SAAS,GAAI;gBAC1C,oBAAC,MAAM,IAAC,SAAS,EAAE,OAAO,GAAG,SAAS,GAAI;gBAC1C,oBAAC,IAAI,IAAC,SAAS,EAAE,OAAO,GAAG,OAAO,GAAI;gBAErC,WAAW,IAAI,oBAAC,SAAS,IAAC,KAAK,EAAC,eAAe,GAAG;gBACnD,oBAAC,GAAG,OAAG;gBACP,oBAAC,KAAK,OAAG;gBACT,oBAAC,aAAa,OAAG;gBACjB,oBAAC,MAAM,OAAG;gBACV,oBAAC,YAAY,OAAG;gBAChB,oBAAC,aAAa,OAAG;gBACjB,oBAAC,aAAa,IACb,UAAU,EAAE,CAAC,mBAAmB,EAAE,QAAQ,EAAE,QAAQ,CAAC,EACrD,gBAAgB,EAAE,KAAK,CAAC,UAAU,GACjC,CAG4B,CAC1B,CACN,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -4,7 +4,6 @@ declare const Send: (props: {
|
|
4
4
|
disabled?: boolean | undefined;
|
5
5
|
/** function of Click */
|
6
6
|
action?: ((context?: any) => void) | undefined;
|
7
|
-
onClickItem?: ((open?: boolean) => void) | undefined;
|
8
7
|
className?: string | undefined;
|
9
8
|
}) => React.JSX.Element;
|
10
9
|
export default Send;
|
@@ -4,6 +4,7 @@ import { useWork, useWorkStore } from "../../../../../data/work";
|
|
4
4
|
import { Button } from "antd";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
6
|
import { faFileImport } from "@fortawesome/pro-light-svg-icons";
|
7
|
+
import { useToolBarContext } from "@voplus/morpho-document/es/controls/ToolBar/ToolBarState";
|
7
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
8
9
|
import { useDocumentMenuContext } from "@voplus/morpho-document-core";
|
9
10
|
import { useSendFormContext } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
@@ -14,6 +15,7 @@ const Send = (props) => {
|
|
14
15
|
const [visible, setVisible] = useState(false);
|
15
16
|
const store = useWorkStore();
|
16
17
|
const context = useDocumentMenuContext();
|
18
|
+
const toolBarContext = useToolBarContext();
|
17
19
|
const sendForm = useSendFormContext();
|
18
20
|
const asideContext = useAsideContentContext();
|
19
21
|
const work = useWork(context.id, {
|
@@ -29,7 +31,7 @@ const Send = (props) => {
|
|
29
31
|
visible && (sendForm === null || sendForm === void 0 ? void 0 : sendForm.Type) === "Dialog" && (React.createElement(SendForm, { name: "Work", openType: "Modal", onCancel: () => setVisible(false), onSend: onSend }))));
|
30
32
|
});
|
31
33
|
function onClick(e) {
|
32
|
-
|
34
|
+
toolBarContext === null || toolBarContext === void 0 ? void 0 : toolBarContext.menuItemClick();
|
33
35
|
(sendForm === null || sendForm === void 0 ? void 0 : sendForm.Type) === "Dialog"
|
34
36
|
? setVisible(true)
|
35
37
|
: asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(SendForm, { name: "Work", onCancel: () => asideContext.closeAside(), onSend: onSend }), {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Send.js","sourceRoot":"","sources":["../../../../../../src/modules/work/controls/WorkMenu/item/Send.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACpE,OAAO,EAAS,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO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