@voplus/morpho-workspace 6.0.30 → 6.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/es/components/AutoSequenceDialog/index.js +1 -1
- package/es/components/AutoSequenceDialog/index.js.map +1 -1
- package/es/modules/work/controls/WorkDataIconBar/index.js +3 -1
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -1
- package/package.json +1 -1
- package/es/components/AutoSequenceDialog/Tip.d.ts +0 -5
- package/es/components/AutoSequenceDialog/Tip.js +0 -10
- package/es/components/AutoSequenceDialog/Tip.js.map +0 -1
@@ -3,7 +3,7 @@ import { useWorkTypeStore } from "../../data/worktype";
|
|
3
3
|
import { State } from "./state";
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
5
5
|
import { Form, Select, Modal, Input, InputNumber, Row, Col } from "antd";
|
6
|
-
import Tip from "
|
6
|
+
import Tip from "@voplus/morpho-ui/es/controls/Tit";
|
7
7
|
import "./index.less";
|
8
8
|
const AutoSequenceDialog = (props) => {
|
9
9
|
const store = useWorkTypeStore();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AutoSequenceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,gBAAgB,EAAsC,MAAM,qBAAqB,CAAC;AAC3F,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACzE,OAAO,GAAG,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/AutoSequenceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,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AE,KAAK,EAAE,WAAW,EAAE;oCACpC,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,aAAa,EAAE;oCACxC,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE;iCACtC,EACD,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,GACzC,CACS,CACP;oBACN,oBAAC,GAAG,IAAC,IAAI,EAAE,CAAC;wBACX,oBAAC,IAAI,CAAC,IAAI,IACT,KAAK,EACJ;;gCAEC,oBAAC,GAAG,IACH,OAAO,EACN;;wCAEC,+BAAM;iHAEJ,GAEH,CACA;4BAGJ,oBAAC,WAAW,IACX,KAAK,EAAE,KAAK,CAAC,SAAS,EACtB,QAAQ,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,GAAG,KAAK,CAAC,GACrD,CACS,CACP,CACD,CACA,CACA,CACR,CAAA;KAAA,CAAC,CAAC;IAEH,KAAK,UAAU,QAAQ;;QACtB,MAAA,KAAK,CAAC,QAAQ,sDAAG;YAChB,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,QAAQ,EAAE,KAAK,CAAC,QAAQ;YACxB,KAAK,EAAE,KAAK,CAAC,KAAK;YAClB,SAAS,EAAE,KAAK,CAAC,SAAS;SAC1B,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
@@ -3,6 +3,7 @@ import React, { useState } from "react";
|
|
3
3
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
5
|
import { Tooltip } from "antd";
|
6
|
+
import { useCurrentContactContext } from "@voplus/morpho-document-core/es/data/context/CurrentContactContext";
|
6
7
|
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference/LoadedUnitReference";
|
7
8
|
import WorkStatusDataIcon from "../WorkStatusDataIcon";
|
8
9
|
import { faAlarmExclamation } from "@fortawesome/pro-light-svg-icons";
|
@@ -11,6 +12,7 @@ import { observe } from "@voplus/morpho-ui";
|
|
11
12
|
import { useWork } from "../../../../data/work";
|
12
13
|
const WorkDataIconBar = (props) => {
|
13
14
|
const { id, dueDateVisible, documentDateVisible, commentVisible, statusVisible } = props;
|
15
|
+
const context = useCurrentContactContext();
|
14
16
|
const [visible, setVisible] = useState(false);
|
15
17
|
const work = useWork(id);
|
16
18
|
return observe(() => {
|
@@ -25,7 +27,7 @@ const WorkDataIconBar = (props) => {
|
|
25
27
|
React.createElement(DocumentDataIcon, { id: id }),
|
26
28
|
commentVisible && React.createElement(CommentDataIcon, { id: id }),
|
27
29
|
React.createElement(UserQuickIcon, { id: id }),
|
28
|
-
((_a =
|
30
|
+
work.contact && work.contact.id !== ((_a = context === null || context === void 0 ? void 0 : context.contact) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(Tooltip, { title: "Work Contact", open: visible, onOpenChange: onVisibleChange },
|
29
31
|
React.createElement("span", { className: "data-icon", onClick: () => setVisible(false) },
|
30
32
|
React.createElement(UnitReference, { unit: work.contact })))),
|
31
33
|
statusVisible && React.createElement(WorkStatusDataIcon, { id: id })));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkDataIconBar/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,aAAa,MAAM,kEAAkE,CAAC;AAC7F,OAAO,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AAC;AAEF,eAAe,CAAC,YAAY,GAAG;IAC9B,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,IAAI;CACpB,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
package/package.json
CHANGED
@@ -1,10 +0,0 @@
|
|
1
|
-
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
|
2
|
-
import { Popover } from "antd";
|
3
|
-
import React from "react";
|
4
|
-
import { faCircleInfo } from "@fortawesome/pro-duotone-svg-icons";
|
5
|
-
export default (props) => {
|
6
|
-
return (React.createElement(Popover, { content: React.createElement("span", null, props.content) },
|
7
|
-
React.createElement("span", null,
|
8
|
-
React.createElement(FontAwesomeIcon, { icon: faCircleInfo, size: "sm", style: { color: "#9D9D9D", fontSize: "14px", marginLeft: "8px" } }))));
|
9
|
-
};
|
10
|
-
//# sourceMappingURL=Tip.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Tip.js","sourceRoot":"","sources":["../../../src/components/AutoSequenceDialog/Tip.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AACjE,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,eAAe,CAAC,KAAuD,EAAE,EAAE;IAC1E,OAAO,CACN,oBAAC,OAAO,IAAC,OAAO,EAAE,kCAAO,KAAK,CAAC,OAAO,CAAQ;QAC7C;YACC,oBAAC,eAAe,IACf,IAAI,EAAE,YAAY,EAClB,IAAI,EAAC,IAAI,EACT,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,GAC/D,CACI,CACE,CACV,CAAC;AACH,CAAC,CAAC"}
|