@voplus/morpho-workspace 6.0.152 → 6.0.154
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/work/work-error/components/WorkErrorItem/index.js +7 -7
- package/es/modules/work/work-error/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/work-error/components/WorkErrorItem/index.less +1 -0
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js +22 -23
- package/es/modules/workspace/pages/WorkspacePage/SettingPage.js.map +1 -1
- package/es/modules/workspace/pages/WorkspacePage/index.less +0 -8
- package/package.json +1 -1
@@ -1,28 +1,28 @@
|
|
1
|
-
import { Col, Row, Tag } from "antd";
|
2
1
|
import React, { useState } from "react";
|
2
|
+
import { Col, Row, Tag } from "antd";
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
4
|
+
import { useApplicationContext } from "@voplus/morpho-data";
|
5
|
+
import { useWorkError } from "../../../../../data/workerror";
|
6
|
+
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
7
|
import UTCShortDate from "@voplus/morpho-ui/es/controls/UTCShortDate";
|
4
8
|
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
5
|
-
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
6
9
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
7
10
|
import WorkErrorMenu from "../../controls/WorkErrorMenu";
|
8
11
|
import classnames from "classnames";
|
9
|
-
import { observe } from "@voplus/morpho-ui";
|
10
12
|
import "./index.less";
|
11
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
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
17
|
return observe(() => (React.createElement("div", { className: "workerror-item", onMouseLeave: () => setHover(false), onMouseOver: () => setHover(true) },
|
18
18
|
React.createElement(Row, null,
|
19
|
-
React.createElement(Col, {
|
19
|
+
React.createElement(Col, { span: 16 },
|
20
20
|
React.createElement("div", null,
|
21
21
|
React.createElement("div", { className: "workerror-info" }, workError.errorType),
|
22
22
|
React.createElement(Tag, { color: "purple" }, workError.severity)),
|
23
23
|
React.createElement("div", { className: "workerror-date" },
|
24
24
|
React.createElement(UTCShortDate, { value: workError.incidentDate, format: "DD MMM YYYY" }))),
|
25
|
-
React.createElement(Col, {
|
25
|
+
React.createElement(Col, { span: 8, className: "workerror-causers" },
|
26
26
|
React.createElement(AvatarList, { organizationId: user.info.organizationId, list: workError.causers || [], editable: false }))),
|
27
27
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
28
28
|
show: hover,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-error/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-error/components/WorkErrorItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,YAAY,MAAM,4CAA4C,CAAC;AACtE,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,OAAO,MAAM,sDAAsD,CAAC;AAC3E,OAAO,aAAa,MAAM,8BAA8B,CAAC;AACzD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,cAAc,CAAC;AAEtB,MAAM,aAAa,GAAG,CA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,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"}
|
@@ -10,29 +10,28 @@ const WorkSpaceSettingPage = (props) => {
|
|
10
10
|
const wrokspace = useWorkspace(props.id);
|
11
11
|
return observe(() => {
|
12
12
|
var _a, _b, _c, _d;
|
13
|
-
return (React.createElement("
|
14
|
-
React.createElement(
|
15
|
-
React.createElement(
|
16
|
-
React.createElement(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
React.createElement(
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
} }))))));
|
13
|
+
return (React.createElement(SettingPage, { className: "workSpace-setting-page", pageHeadProps: { visible: true } },
|
14
|
+
React.createElement(SettingSection, { className: "setting-section" },
|
15
|
+
React.createElement(Setting, { label: "Members" },
|
16
|
+
React.createElement(MentionList, { contacts: ((_a = wrokspace.settings) === null || _a === void 0 ? void 0 : _a.members) ? (_b = wrokspace.settings) === null || _b === void 0 ? void 0 : _b.members : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Members", onChange: (list) => {
|
17
|
+
const ids = [];
|
18
|
+
list.map((i) => ids.push(i.id));
|
19
|
+
onEdit({
|
20
|
+
Settings: {
|
21
|
+
Members: ids,
|
22
|
+
},
|
23
|
+
});
|
24
|
+
} })),
|
25
|
+
React.createElement(Setting, { label: "Owners" },
|
26
|
+
React.createElement(MentionList, { contacts: ((_c = wrokspace.settings) === null || _c === void 0 ? void 0 : _c.owners) ? (_d = wrokspace.settings) === null || _d === void 0 ? void 0 : _d.owners : [], canEdit: true, multiple: true, defaultSelection: "Users", placeholder: "Select an Owners", onChange: (list) => {
|
27
|
+
const ids = [];
|
28
|
+
list.map((i) => ids.push(i.id));
|
29
|
+
onEdit({
|
30
|
+
Settings: {
|
31
|
+
Owners: ids,
|
32
|
+
},
|
33
|
+
});
|
34
|
+
} })))));
|
36
35
|
});
|
37
36
|
function onEdit(data) {
|
38
37
|
store.edit(props.id, {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAG7E,MAAM,oBAAoB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACtD,MAAM,KAAK,GAAG,iBAAiB,EAAE,CAAC;IAClC,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAEzC,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB
|
1
|
+
{"version":3,"file":"SettingPage.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/pages/WorkspacePage/SettingPage.tsx"],"names":[],"mappings":"AAAA,OAAO,WAAW,MAAM,4CAA4C,CAAC;AACrE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,OAAO,MAAM,mDAAmD,CAAC;AACxE,OAAO,cAAc,MAAM,0DAA0D,CAAC;AACtF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,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