@voplus/morpho-workspace 1.3.50 → 1.3.52
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/controls/filters/AssigneeViewFilter/index.js +1 -1
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js +5 -2
- package/es/modules/tasks/controls/ChildTasksDataIcon/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/components/ChangeAvatarDialog/index.d.ts +2 -0
- package/es/modules/work/components/ChangeAvatarDialog/index.js +1 -1
- package/es/modules/work/components/ChangeAvatarDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.d.ts +5 -2
- package/es/modules/work/components/NewWorkErrorDialog/index.js +13 -21
- package/es/modules/work/components/NewWorkErrorDialog/index.js.map +1 -1
- package/es/modules/work/components/NewWorkErrorDialog/index.less +2 -2
- package/es/modules/work/components/NewWorkErrorDialog/state.js +2 -2
- package/es/modules/work/components/NewWorkErrorDialog/state.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.d.ts +3 -1
- package/es/modules/work/components/NewWorkForm/index.js +4 -20
- package/es/modules/work/components/NewWorkForm/index.js.map +1 -1
- package/es/modules/work/components/NewWorkForm/index.less +8 -7
- package/es/modules/work/components/RejectWorkDialog/index.d.ts +0 -1
- package/es/modules/work/components/RejectWorkDialog/index.js +4 -4
- package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -1
- package/es/modules/work/components/RejectWorkDialog/index.less +2 -2
- package/es/modules/work/components/SubWorkList/index.d.ts +0 -1
- package/es/modules/work/components/SubWorkList/index.js +8 -9
- package/es/modules/work/components/SubWorkList/index.js.map +1 -1
- package/es/modules/work/components/SubWorkList/index.less +2 -2
- package/es/modules/work/components/WorkErrorItem/index.d.ts +0 -1
- package/es/modules/work/components/WorkErrorItem/index.js +8 -8
- package/es/modules/work/components/WorkErrorItem/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorItem/index.less +9 -11
- package/es/modules/work/components/WorkErrorList/index.d.ts +0 -1
- package/es/modules/work/components/WorkErrorList/index.js +10 -15
- package/es/modules/work/components/WorkErrorList/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorList/index.less +3 -3
- package/es/modules/work/components/WorkErrorProperties/index.d.ts +3 -1
- package/es/modules/work/components/WorkErrorProperties/index.js +23 -14
- package/es/modules/work/components/WorkErrorProperties/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorProperties/index.less +2 -2
- package/es/modules/work/components/WorkErrorProperties/state.d.ts +1 -0
- package/es/modules/work/components/WorkErrorProperties/state.js +8 -1
- package/es/modules/work/components/WorkErrorProperties/state.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.d.ts +3 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.js +7 -7
- package/es/modules/work/components/WorkErrorPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkErrorPropertiesView/index.less +7 -8
- package/es/modules/work/components/WorkItem/index.d.ts +0 -1
- package/es/modules/work/components/WorkItem/index.js +15 -34
- package/es/modules/work/components/WorkItem/index.js.map +1 -1
- package/es/modules/work/components/WorkItem/index.less +8 -0
- package/es/modules/work/components/WorkList/index.js +9 -12
- package/es/modules/work/components/WorkList/index.js.map +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.d.ts +0 -1
- package/es/modules/work/components/WorkPropertiesView/index.js +4 -8
- package/es/modules/work/components/WorkPropertiesView/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.d.ts +0 -1
- package/es/modules/work/components/WorkQATab/index.js +19 -11
- package/es/modules/work/components/WorkQATab/index.js.map +1 -1
- package/es/modules/work/components/WorkQATab/index.less +2 -2
- package/es/modules/work/components/WorkTabs/index.d.ts +0 -1
- package/es/modules/work/components/WorkTabs/index.js +2 -4
- package/es/modules/work/components/WorkTabs/index.js.map +1 -1
- package/es/modules/work/components/WorkTabs/index.less +3 -3
- package/es/modules/work/components/WorkTaskList/index.js.map +1 -1
- package/es/modules/work/components/WorkTaskList/index.less +4 -9
- package/es/modules/work/components/WorksProperties/index.js +38 -63
- package/es/modules/work/components/WorksProperties/index.js.map +1 -1
- package/es/modules/work/components/WorksProperties/index.less +1 -17
- package/es/modules/work/components/WorksProperties/state.d.ts +19 -0
- package/es/modules/work/components/WorksProperties/state.js +117 -0
- package/es/modules/work/components/WorksProperties/state.js.map +1 -0
- package/es/modules/work/controls/WorkDataIconBar/index.d.ts +5 -0
- package/es/modules/work/controls/WorkDataIconBar/index.js +30 -0
- package/es/modules/work/controls/WorkDataIconBar/index.js.map +1 -0
- package/es/modules/work/controls/WorkErrorMenu/index.d.ts +1 -1
- package/es/modules/work/controls/WorkErrorMenu/index.js +5 -7
- package/es/modules/work/controls/WorkErrorMenu/index.js.map +1 -1
- package/es/modules/work/controls/WorkErrorMenu/index.less +10 -11
- package/es/modules/work/pages/WorkDefaultView/index.d.ts +0 -1
- package/es/modules/work/pages/WorkDefaultView/index.js +4 -6
- package/es/modules/work/pages/WorkDefaultView/index.js.map +1 -1
- package/es/modules/work/pages/WorkDefaultView/index.less +2 -2
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js +1 -1
- package/es/modules/workspace/components/NewWorkspaceDialog/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js +1 -1
- package/es/modules/workspace/components/WorkspacePropertiesView/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js +7 -6
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.less +8 -0
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js +1 -1
- package/es/modules/workspace/pages/WorkspaceDefaultView/index.js.map +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/modules/workspaces/pages/ListView/index.js +1 -1
- package/es/modules/workspaces/pages/ListView/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/index.js.map +1 -1
- package/es/modules/worktype/components/NewTypeForm/state.js +0 -1
- package/es/modules/worktype/components/NewTypeForm/state.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.d.ts +0 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.js +6 -21
- package/es/modules/worktype/components/WorkTypeProperties/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeProperties/index.less +16 -17
- package/es/modules/worktype/components/WorkTypeProperties/state.d.ts +7 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.js +27 -0
- package/es/modules/worktype/components/WorkTypeProperties/state.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.d.ts +0 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.js +2 -7
- package/es/modules/worktype/components/WorkTypeTabs/index.js.map +1 -1
- package/es/modules/worktype/components/WorkTypeTabs/index.less +9 -4
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.d.ts +0 -1
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js +2 -2
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.js.map +1 -1
- package/es/modules/worktype/pages/WorkTypeDefaultView/index.less +3 -5
- package/es/pages/Space/components/TaskMenu/index.js +33 -27
- package/es/pages/Space/components/TaskMenu/index.js.map +1 -1
- package/es/pages/Space/components/WorkMenu/index.js +30 -24
- package/es/pages/Space/components/WorkMenu/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.less +4 -0
- package/es/pages/Work/components/NewWorkDialog/index.js +1 -1
- package/es/pages/Work/components/NewWorkDialog/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/work/components/WorkPropertiesView/index.less +0 -23
@@ -1,32 +1,31 @@
|
|
1
|
-
import { DatePicker, Form
|
1
|
+
import { Avatar, DatePicker, Form } from "@voplus/antd";
|
2
2
|
import { InlineEdit, observe } from "@voplus/morpho-ui";
|
3
|
-
import React, { useState } from "react";
|
3
|
+
import React, { useEffect, useState } from "react";
|
4
4
|
import moment from "moment";
|
5
5
|
import { useWork, useWorkStore } from "../../../../data/work";
|
6
|
-
import
|
6
|
+
import AvatarItem from "@voplus/morpho-org/es/components/AvatarList/AvatarItem";
|
7
7
|
import ChangeAvatarDialog from "../ChangeAvatarDialog";
|
8
8
|
import ChildDocumentSelect from "@voplus/morpho-document/es/controls/ChildDocumentSelect";
|
9
9
|
import DocumentReference from "@voplus/morpho-document/es/controls/DocumentReference";
|
10
10
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
11
11
|
import { Scrollbars } from "react-custom-scrollbars";
|
12
|
+
import { State } from "./state";
|
12
13
|
import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
13
|
-
import
|
14
|
-
import DocumentQuickViewDialog from "@voplus/morpho-document/es/components/DocumentQuickViewDialog";
|
14
|
+
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference";
|
15
15
|
import WorkStatusLabel from "../../controls/WorkStatusLabel";
|
16
|
+
import { runInAction } from "mobx";
|
16
17
|
import styles from "./index.less";
|
17
18
|
const WorksProperties = (props) => {
|
18
|
-
const
|
19
|
+
const { id } = props;
|
20
|
+
const work = useWork(id);
|
19
21
|
const store = useWorkStore();
|
20
|
-
const [
|
21
|
-
const [ownerEditable, setOwnerEditable] = useState(false);
|
22
|
-
const [contactEditable, setContactEditable] = useState(false);
|
23
|
-
const [visibleQuickView, setVisibleQuickView] = useState(false);
|
24
|
-
const [visible, setVisible] = useState(false);
|
25
|
-
const [folderEdit, setFolderEdit] = useState(false);
|
26
|
-
const [ids, setIds] = useState("");
|
22
|
+
const [state] = useState(new State(id, store));
|
27
23
|
const noData = React.createElement("span", { className: "no-data" }, "no data");
|
24
|
+
useEffect(() => {
|
25
|
+
state.clear();
|
26
|
+
}, [id]);
|
28
27
|
return observe(() => {
|
29
|
-
var _a, _b, _c, _d
|
28
|
+
var _a, _b, _c, _d;
|
30
29
|
return (React.createElement("div", { className: styles["work-roperties"] },
|
31
30
|
React.createElement("div", { className: "work-type-open" },
|
32
31
|
React.createElement("h2", { className: "work-text" }, (_a = work.workType) === null || _a === void 0 ? void 0 : _a.name),
|
@@ -35,61 +34,37 @@ const WorksProperties = (props) => {
|
|
35
34
|
React.createElement(Form, { labelAlign: "left", labelCol: { span: 10 }, scrollToFirstError: true },
|
36
35
|
React.createElement(Form.Item, { label: "No" }, work.number || noData),
|
37
36
|
React.createElement(Form.Item, { label: "Status" },
|
38
|
-
React.createElement(WorkStatusLabel, { status: work.workStatus, editable: !work.readonly, onChange: (workStatus) =>
|
39
|
-
store.edit(work.id, {
|
40
|
-
data: { workStatus },
|
41
|
-
error: (error) => {
|
42
|
-
message.error(error.message);
|
43
|
-
},
|
44
|
-
});
|
45
|
-
} })),
|
37
|
+
React.createElement(WorkStatusLabel, { status: work.workStatus, editable: !work.readonly, onChange: (workStatus) => state.workStatusEdit(workStatus) })),
|
46
38
|
React.createElement(Form.Item, { label: "Contact" },
|
47
|
-
React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () =>
|
48
|
-
var _a;
|
49
|
-
return work.contact || contactEditable ? (React.createElement(React.Fragment, null,
|
50
|
-
React.createElement(
|
51
|
-
|
52
|
-
|
53
|
-
setVisibleQuickView(true);
|
54
|
-
} },
|
55
|
-
React.createElement(AvatarList, { className: "contact-avatar", editable: false, list: [work.contact] || [] })),
|
56
|
-
React.createElement(ToolBar, { className: "toolbar-content", accordingtext: "more", id: (_a = work.contact) === null || _a === void 0 ? void 0 : _a.id }))) : (noData);
|
39
|
+
React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.contactEditable = true)), content: (v) => {
|
40
|
+
var _a, _b, _c;
|
41
|
+
return work.contact || state.contactEditable ? (React.createElement(React.Fragment, null,
|
42
|
+
React.createElement(UnitReference, { id: (_a = work.contact) === null || _a === void 0 ? void 0 : _a.id },
|
43
|
+
React.createElement(AvatarItem, { id: (_b = work.contact) === null || _b === void 0 ? void 0 : _b.id, index: 0, size: 26 })),
|
44
|
+
React.createElement(ToolBar, { className: "toolbar-content", accordingtext: "more", id: (_c = work.contact) === null || _c === void 0 ? void 0 : _c.id }))) : (noData);
|
57
45
|
} })),
|
58
|
-
React.createElement(Form.Item, { label: "Folder" },
|
59
|
-
React.createElement(InlineEdit, { showEditIcon:
|
46
|
+
React.createElement(Form.Item, { label: "Folder", wrapperCol: { span: 14 } },
|
47
|
+
React.createElement(InlineEdit, { showEditIcon: state.showEditIcon, defaultValue: `&${(_c = work.folder) === null || _c === void 0 ? void 0 : _c.name}`, editable: false, content: (v) => observe(() => {
|
60
48
|
var _a, _b;
|
61
|
-
return (React.createElement(React.Fragment, null, ((_a = work.folder) === null || _a === void 0 ? void 0 : _a.id
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
49
|
+
return (React.createElement(React.Fragment, null, state.folderEditable && work.folderParentId ? (React.createElement(ChildDocumentSelect, { id: work.folderParentId, multiple: false, selected: (_a = work.folder) === null || _a === void 0 ? void 0 : _a.id, onChange: (doc) => {
|
50
|
+
state.folderEdit(doc);
|
51
|
+
runInAction(() => (state.showEditIcon = true));
|
52
|
+
} })) : ((_b = work.folder) === null || _b === void 0 ? void 0 : _b.id) ? (React.createElement(DocumentReference, { id: work.folder.id })) : (React.createElement("span", null, "Add Folder"))));
|
53
|
+
}), onEditIconClick: () => runInAction(() => {
|
54
|
+
state.folderEditable = true;
|
55
|
+
state.showEditIcon = false;
|
56
|
+
}) })),
|
67
57
|
React.createElement(Form.Item, { label: "Document" }, ((_d = work.document) === null || _d === void 0 ? void 0 : _d.id) ? React.createElement(DocumentReference, { id: work.document.id }) : noData),
|
68
58
|
React.createElement(Form.Item, { label: "Create Date" }, work.createDate ? moment(work.createDate).format("DD MMM yyyy") : noData),
|
69
|
-
React.createElement(Form.Item, { label: "Due" },
|
70
|
-
.edit(work.id, { data: { DueDate: dateString }, error: "message" })
|
71
|
-
.then(() => setDueDateEdit(false)) })) : (React.createElement("div", { onClick: () => setDueDateEdit(true) }, work.due ? moment(work.due).format("DD MMM yyyy") : noData))),
|
59
|
+
React.createElement(Form.Item, { label: "Due" }, state.dueDateEditable ? (React.createElement(DatePicker, { defaultValue: moment(work.due), bordered: false, onChange: (date, dateString) => state.dueDateEdit(date, dateString) })) : (React.createElement("div", { onClick: () => runInAction(() => (state.dueDateEditable = true)) }, work.due ? moment(work.due).format("DD MMM yyyy") : noData))),
|
72
60
|
React.createElement(Form.Item, { label: "Owner" },
|
73
|
-
React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () =>
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
ownerEditable && (React.createElement(ChangeAvatarDialog, { title: "Change Owner Dialog", person: work.owners || [], onCancel: () => setOwnerEditable(false), onSave: async (ids) => {
|
81
|
-
await store.edit(props.id, { data: { OwnerIds: ids }, error: "message" });
|
82
|
-
setOwnerEditable(false);
|
83
|
-
} })),
|
84
|
-
contactEditable && (React.createElement(ChangeAvatarDialog, { title: "Change Contact Dialog", person: [work.contact] || [], onCancel: () => setContactEditable(false), onSave: async (ids) => {
|
85
|
-
await store.edit(props.id, { data: { ContactId: ids[0] }, error: "message" });
|
86
|
-
setContactEditable(false);
|
87
|
-
} })),
|
88
|
-
visibleQuickView && (React.createElement(UnitQuickView, { id: ids, visible: true, onCancel: () => setVisibleQuickView(false) })),
|
89
|
-
folderEdit && work.folderParentId && (React.createElement(ChildDocumentSelect, { id: work.folderParentId, selected: (_f = work.folder) === null || _f === void 0 ? void 0 : _f.id, onCancel: () => setFolderEdit(false), onSelect: async (folderId) => {
|
90
|
-
await store.edit(props.id, { data: { FolderId: folderId }, error: "message" });
|
91
|
-
setFolderEdit(false);
|
92
|
-
} }))));
|
61
|
+
React.createElement(InlineEdit, { defaultValue: "", showEditIcon: true, editable: false, onEditIconClick: () => runInAction(() => (state.ownerEditable = true)), content: (v) => {
|
62
|
+
var _a;
|
63
|
+
return work.owners || state.ownerEditable ? (React.createElement(Avatar.Group, null, (_a = work.owners) === null || _a === void 0 ? void 0 : _a.map((item, index) => (React.createElement(UnitReference, { key: item.id, id: item.id },
|
64
|
+
React.createElement(AvatarItem, { id: item.id, index: index, size: 26 })))))) : (noData);
|
65
|
+
} })))),
|
66
|
+
state.ownerEditable && (React.createElement(ChangeAvatarDialog, { title: "Change Owner Dialog", person: work.owners || [], onCancel: () => runInAction(() => (state.ownerEditable = false)), onSave: (ids) => state.ownerEdit(ids) })),
|
67
|
+
state.contactEditable && (React.createElement(ChangeAvatarDialog, { title: "Change Contact Dialog", person: [work.contact] || [], onCancel: () => runInAction(() => (state.contactEditable = false)), onSave: (ids) => state.contactEdit(ids) }))));
|
93
68
|
});
|
94
69
|
};
|
95
70
|
export default WorksProperties;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,MAAkB,MAAM,QAAQ,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,mBAAmB,MAAM,yDAAyD,CAAC;AAC1F,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AAEtF,OAAO,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,eAAe,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eA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AAE,EAAE,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,GAAI,CACpC,CAChB,CAAC,CACY,CACf,CAAC,CAAC,CAAC,CACH,MAAM,CACN,CAAA;6BAAA,GAED,CACS,CACN,CACK;YACZ,KAAK,CAAC,aAAa,IAAI,CACvB,oBAAC,kBAAkB,IAClB,KAAK,EAAC,qBAAqB,EAC3B,MAAM,EAAE,IAAI,CAAC,MAAM,IAAI,EAAE,EACzB,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,GAAG,KAAK,CAAC,CAAC,EAChE,MAAM,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,CAAC,GAC9C,CACF;YACA,KAAK,CAAC,eAAe,IAAI,CACzB,oBAAC,kBAAkB,IAClB,KAAK,EAAC,uBAAuB,EAC7B,MAAM,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,EAC5B,QAAQ,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,eAAe,GAAG,KAAK,CAAC,CAAC,EAClE,MAAM,EAAE,CAAC,GAAa,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,GAAG,CAAC,GAChD,CACF,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -33,21 +33,5 @@
|
|
33
33
|
font-size: 12px;
|
34
34
|
color: #ccc;
|
35
35
|
}
|
36
|
-
|
37
|
-
.prosemirror-mention-node {
|
38
|
-
color: rgb(66, 82, 110);
|
39
|
-
cursor: pointer;
|
40
|
-
line-height: 1.714;
|
41
|
-
font-size: 1em;
|
42
|
-
font-weight: normal;
|
43
|
-
word-break: break-word;
|
44
|
-
background: rgba(9, 30, 66, 0.08);
|
45
|
-
border-width: 1px;
|
46
|
-
border-style: solid;
|
47
|
-
border-color: transparent;
|
48
|
-
border-image: initial;
|
49
|
-
border-radius: 20px;
|
50
|
-
padding: 0px 0.3em 2px 0.23em;
|
51
|
-
}
|
52
36
|
}
|
53
|
-
}
|
37
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { IDocument } from "@voplus/morpho-document-core";
|
2
|
+
import { Moment } from "moment";
|
3
|
+
import { WorkStore } from "../../../../data/work";
|
4
|
+
export declare class State {
|
5
|
+
private id;
|
6
|
+
private store;
|
7
|
+
dueDateEditable: boolean;
|
8
|
+
ownerEditable: boolean;
|
9
|
+
contactEditable: boolean;
|
10
|
+
folderEditable: boolean;
|
11
|
+
showEditIcon: boolean;
|
12
|
+
constructor(id: string, store: WorkStore);
|
13
|
+
clear(): void;
|
14
|
+
workStatusEdit(workStatus: string): void;
|
15
|
+
folderEdit(doc: IDocument): Promise<void>;
|
16
|
+
ownerEdit(ids: string[]): Promise<void>;
|
17
|
+
contactEdit(ids: string[]): Promise<void>;
|
18
|
+
dueDateEdit(date: Moment, dateString: string): Promise<void>;
|
19
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
2
|
+
import { action, makeObservable, observable } from "mobx";
|
3
|
+
import { message } from "@voplus/antd";
|
4
|
+
export class State {
|
5
|
+
constructor(id, store) {
|
6
|
+
Object.defineProperty(this, "id", {
|
7
|
+
enumerable: true,
|
8
|
+
configurable: true,
|
9
|
+
writable: true,
|
10
|
+
value: id
|
11
|
+
});
|
12
|
+
Object.defineProperty(this, "store", {
|
13
|
+
enumerable: true,
|
14
|
+
configurable: true,
|
15
|
+
writable: true,
|
16
|
+
value: store
|
17
|
+
});
|
18
|
+
Object.defineProperty(this, "dueDateEditable", {
|
19
|
+
enumerable: true,
|
20
|
+
configurable: true,
|
21
|
+
writable: true,
|
22
|
+
value: false
|
23
|
+
});
|
24
|
+
Object.defineProperty(this, "ownerEditable", {
|
25
|
+
enumerable: true,
|
26
|
+
configurable: true,
|
27
|
+
writable: true,
|
28
|
+
value: false
|
29
|
+
});
|
30
|
+
Object.defineProperty(this, "contactEditable", {
|
31
|
+
enumerable: true,
|
32
|
+
configurable: true,
|
33
|
+
writable: true,
|
34
|
+
value: false
|
35
|
+
});
|
36
|
+
Object.defineProperty(this, "folderEditable", {
|
37
|
+
enumerable: true,
|
38
|
+
configurable: true,
|
39
|
+
writable: true,
|
40
|
+
value: false
|
41
|
+
});
|
42
|
+
Object.defineProperty(this, "showEditIcon", {
|
43
|
+
enumerable: true,
|
44
|
+
configurable: true,
|
45
|
+
writable: true,
|
46
|
+
value: true
|
47
|
+
});
|
48
|
+
makeObservable(this);
|
49
|
+
}
|
50
|
+
clear() {
|
51
|
+
this.dueDateEditable = false;
|
52
|
+
this.ownerEditable = false;
|
53
|
+
this.contactEditable = false;
|
54
|
+
this.folderEditable = false;
|
55
|
+
}
|
56
|
+
workStatusEdit(workStatus) {
|
57
|
+
this.store.edit(this.id, {
|
58
|
+
data: { workStatus },
|
59
|
+
error: (error) => {
|
60
|
+
message.error(error.message);
|
61
|
+
},
|
62
|
+
});
|
63
|
+
}
|
64
|
+
async folderEdit(doc) {
|
65
|
+
await this.store.edit(this.id, {
|
66
|
+
data: { FolderId: doc.id },
|
67
|
+
error: "message",
|
68
|
+
});
|
69
|
+
this.folderEditable = false;
|
70
|
+
}
|
71
|
+
async ownerEdit(ids) {
|
72
|
+
await this.store.edit(this.id, { data: { OwnerIds: ids }, error: "message" });
|
73
|
+
this.ownerEditable = false;
|
74
|
+
}
|
75
|
+
async contactEdit(ids) {
|
76
|
+
await this.store.edit(this.id, { data: { ContactId: ids[0] }, error: "message" });
|
77
|
+
this.contactEditable = false;
|
78
|
+
}
|
79
|
+
async dueDateEdit(date, dateString) {
|
80
|
+
await this.store.edit(this.id, { data: { DueDate: dateString }, error: "message" });
|
81
|
+
this.dueDateEditable = false;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
__decorate([
|
85
|
+
observable
|
86
|
+
], State.prototype, "dueDateEditable", void 0);
|
87
|
+
__decorate([
|
88
|
+
observable
|
89
|
+
], State.prototype, "ownerEditable", void 0);
|
90
|
+
__decorate([
|
91
|
+
observable
|
92
|
+
], State.prototype, "contactEditable", void 0);
|
93
|
+
__decorate([
|
94
|
+
observable
|
95
|
+
], State.prototype, "folderEditable", void 0);
|
96
|
+
__decorate([
|
97
|
+
observable
|
98
|
+
], State.prototype, "showEditIcon", void 0);
|
99
|
+
__decorate([
|
100
|
+
action
|
101
|
+
], State.prototype, "clear", null);
|
102
|
+
__decorate([
|
103
|
+
action
|
104
|
+
], State.prototype, "workStatusEdit", null);
|
105
|
+
__decorate([
|
106
|
+
action
|
107
|
+
], State.prototype, "folderEdit", null);
|
108
|
+
__decorate([
|
109
|
+
action
|
110
|
+
], State.prototype, "ownerEdit", null);
|
111
|
+
__decorate([
|
112
|
+
action
|
113
|
+
], State.prototype, "contactEdit", null);
|
114
|
+
__decorate([
|
115
|
+
action
|
116
|
+
], State.prototype, "dueDateEdit", null);
|
117
|
+
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/work/components/WorksProperties/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAK1D,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAEvC,MAAM,OAAO,KAAK;IAOjB,YAAoB,EAAU,EAAU,KAAgB;;;;;mBAApC;;;;;;mBAAoB;;QAN5B;;;;mBAAyB,KAAK;WAAC;QAC/B;;;;mBAAuB,KAAK;WAAC;QAC7B;;;;mBAAyB,KAAK;WAAC;QAC/B;;;;mBAAwB,KAAK;WAAC;QAC9B;;;;mBAAsB,IAAI;WAAC;QAGtC,cAAc,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAEc,KAAK;QACnB,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;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AC,WAAW,CAAC,IAAY,EAAE,UAAkB;QAChE,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACpF,IAAI,CAAC,eAAe,GAAG,KAAK,CAAC;IAC9B,CAAC;CACD;AAhDY;IAAX,UAAU;8CAAgC;AAC/B;IAAX,UAAU;4CAA8B;AAC7B;IAAX,UAAU;8CAAgC;AAC/B;IAAX,UAAU;6CAA+B;AAC9B;IAAX,UAAU;2CAA4B;AAM/B;IAAP,MAAM;kCAKN;AAEO;IAAP,MAAM;2CAON;AAEO;IAAP,MAAM;uCAMN;AAEO;IAAP,MAAM;sCAGN;AAEO;IAAP,MAAM;wCAGN;AAEO;IAAP,MAAM;wCAGN"}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
import { CommentDataIcon, DocumentDataIcon, UserQuickIcon, } from "@voplus/morpho-document/es/controls/data-icons";
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
4
|
+
import { Tooltip } from "@voplus/antd";
|
5
|
+
import UnitReference from "@voplus/morpho-org/es/controls/UnitReference";
|
6
|
+
import moment from "moment";
|
7
|
+
import { observe } from "@voplus/morpho-ui";
|
8
|
+
import { useWork } from "../../../../data/work";
|
9
|
+
const WorkDataIconBar = (props) => {
|
10
|
+
const { id } = props;
|
11
|
+
const [visible, setVisible] = useState(false);
|
12
|
+
const work = useWork(id, { reload: false });
|
13
|
+
return observe(() => {
|
14
|
+
var _a, _b;
|
15
|
+
return (React.createElement(DataIconBar, null,
|
16
|
+
React.createElement(Tooltip, { title: "Due Date" },
|
17
|
+
React.createElement("span", { className: "due-date" }, work.due ? moment(work.due).format("DD MMM yyyy") : "no data")),
|
18
|
+
React.createElement(DocumentDataIcon, { id: id }),
|
19
|
+
React.createElement(CommentDataIcon, { id: id }),
|
20
|
+
React.createElement(UserQuickIcon, { id: id }),
|
21
|
+
((_a = work.contact) === null || _a === void 0 ? void 0 : _a.id) && (React.createElement(Tooltip, { title: "Work Contact", visible: visible, onVisibleChange: onVisibleChange },
|
22
|
+
React.createElement("span", { className: "data-icon", onClick: () => setVisible(false) },
|
23
|
+
React.createElement(UnitReference, { id: (_b = work.contact) === null || _b === void 0 ? void 0 : _b.id }))))));
|
24
|
+
});
|
25
|
+
function onVisibleChange(visible) {
|
26
|
+
setVisible(visible);
|
27
|
+
}
|
28
|
+
};
|
29
|
+
export default WorkDataIconBar;
|
30
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +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,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,aAAa,MAAM,8CAA8C,CAAC;AACzE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAEhD,MAAM,eAAe,GAAG,CAAC,KAAqB,EAAE,EAAE;IACjD,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACrB,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC9C,MAAM,IAAI,GAAG,OAAO,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAE5C,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,oBAAC,WAAW;YACX,oBAAC,OAAO,IAAC,KAAK,EAAC,UAAU;gBACxB,8BAAM,SAAS,EAAC,UAAU,IACxB,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,SAAS,CACxD,CACE;YACV,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,GAAI;YAC5B,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI;YAC3B,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI;YACxB,CAAA,MAAA,IAAI,CAAC,OAAO,0CAAE,EAAE,KAAI,CACpB,oBAAC,OAAO,IAAC,KAAK,EAAC,cAAc,EAAC,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,eAAe;gBAC/E,8BAAM,SAAS,EAAC,WAAW,EAAC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;oBAC3D,oBAAC,aAAa,IAAC,EAAE,EAAE,MAAA,IAAI,CAAC,OAAO,0CAAE,EAAE,GAAI,CACjC,CACE,CACV,CACY,CACd,CAAA;KAAA,CAAC,CAAC;IAEH,SAAS,eAAe,CAAC,OAAgB;QACxC,UAAU,CAAC,OAAO,CAAC,CAAC;IACrB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
import "./index.less";
|
3
2
|
declare const WorkErrorMenu: {
|
4
3
|
(props: {
|
5
4
|
id: string;
|
6
5
|
className?: string;
|
6
|
+
/** Delete Menu Item 删除后是否关闭Aside */
|
7
7
|
closeAside?: boolean;
|
8
8
|
size: "small" | "middle" | "large" | undefined;
|
9
9
|
}): JSX.Element;
|
@@ -1,18 +1,16 @@
|
|
1
|
-
import React from "react";
|
2
1
|
import { Button, Dropdown, Modal } from "@voplus/antd";
|
3
|
-
import { useWorkErrorStore } from "../../../../data/workerror";
|
4
|
-
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
5
2
|
import { observe, useAsideContentContext } from "@voplus/morpho-ui";
|
6
3
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
7
4
|
import { MoreOutlined } from "@ant-design/icons";
|
8
|
-
|
9
|
-
// 用于操作权限
|
5
|
+
import React from "react";
|
10
6
|
import classnames from "classnames";
|
11
|
-
import "
|
7
|
+
import { faTrashAlt } from "@fortawesome/pro-light-svg-icons";
|
8
|
+
import styles from "./index.less";
|
9
|
+
import { useWorkErrorStore } from "../../../../data/workerror";
|
12
10
|
const WorkErrorMenu = (props) => {
|
13
11
|
const store = useWorkErrorStore();
|
14
12
|
const asideContext = useAsideContentContext();
|
15
|
-
return observe(() => (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames("workError-menu", props.className) },
|
13
|
+
return observe(() => (React.createElement(Dropdown, { placement: "bottomRight", overlay: React.createElement("div", { className: classnames(styles["workError-menu"], props.className) },
|
16
14
|
React.createElement(Button, { type: "link", onClick: onClick },
|
17
15
|
React.createElement(FAIcon, { icon: faTrashAlt, color: "#f5222d" }),
|
18
16
|
React.createElement("span", { className: "delete" }, "Delete"))) },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkErrorMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/controls/WorkErrorMenu/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AAEpE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC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AAY,uBAAZ,YAAY,CAAE,YAAY,CAAA;oBAAE,YAAY,aAAZ,YAAY,uBAAZ,YAAY,CAAE,UAAU,EAAE,CAAC;gBACjF,OAAO;YACR,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,aAAa,CAAC,YAAY,GAAG;IAC5B,IAAI,EAAE,OAAO;CACb,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,14 +1,13 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
1
|
+
.workError-menu {
|
2
|
+
padding: 4px 0;
|
3
|
+
list-style-type: none;
|
4
|
+
background-color: #fff;
|
5
|
+
background-clip: padding-box;
|
6
|
+
border-radius: 2px;
|
7
|
+
outline: none;
|
8
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
9
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
10
|
+
:global {
|
12
11
|
.ant-btn {
|
13
12
|
display: block;
|
14
13
|
width: 100%;
|
@@ -1,4 +1,3 @@
|
|
1
|
-
import "./index.less";
|
2
1
|
import React, { useMemo, useState } from "react";
|
3
2
|
import { TabItemContext, TabItemStore } from "@voplus/morpho-data";
|
4
3
|
import { ViewContext, ViewContextData } from "@voplus/morpho-document/es/data/contexts/ViewContext";
|
@@ -7,21 +6,20 @@ import MainContent from "@voplus/morpho-ui/es/components/layout/MainContent";
|
|
7
6
|
import WorkTabs from "../../components/WorkTabs";
|
8
7
|
import WorksProperties from "../../components/WorksProperties";
|
9
8
|
import { observe } from "@voplus/morpho-ui";
|
10
|
-
import
|
9
|
+
import styles from "./index.less";
|
11
10
|
/** The Work Page component with router parameters support. */
|
12
11
|
const WorkDefaultView = ({ id }) => {
|
13
12
|
const store = new TabItemStore({ url: "" });
|
14
13
|
const [asideContext] = useState(AsideContent.createContext());
|
15
|
-
const workStore = useWorkStore();
|
16
14
|
const view = useMemo(() => new ViewContextData("PropertiesView"), []);
|
17
|
-
return observe(() => React.createElement(TabItemContext.Provider, { value: store },
|
18
|
-
React.createElement(MainContent, { className: "work-default-view" },
|
15
|
+
return observe(() => (React.createElement(TabItemContext.Provider, { value: store },
|
16
|
+
React.createElement(MainContent, { className: styles["work-default-view"] },
|
19
17
|
React.createElement(MainContent.Nav, { collapsible: true },
|
20
18
|
React.createElement(WorksProperties, { id: id })),
|
21
19
|
React.createElement("div", { className: "work-context" },
|
22
20
|
React.createElement(AsideContent, { context: asideContext },
|
23
21
|
React.createElement(ViewContext.Provider, { value: view },
|
24
|
-
React.createElement(WorkTabs, { id: id })))))));
|
22
|
+
React.createElement(WorkTabs, { id: id }))))))));
|
25
23
|
};
|
26
24
|
export default WorkDefaultView;
|
27
25
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/work/pages/WorkDefaultView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,sDAAsD,CAAC;AAGpG,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAC7E,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,eAAe,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,8DAA8D;AAC9D,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAClD,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC;IAC5C,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,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,cAAc,CAAC,QAAQ,IAAC,KAAK,EAAE,KAAK;QACpC,oBAAC,WAAW,IAAC,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC;YAClD,oBAAC,WAAW,CAAC,GAAG,IAAC,WAAW;gBAC3B,oBAAC,eAAe,IAAC,EAAE,EAAE,EAAE,GAAI,CACV;YAClB,6BAAK,SAAS,EAAC,cAAc;gBAC5B,oBAAC,YAAY,IAAC,OAAO,EAAE,YAAY;oBAClC,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;wBAChC,oBAAC,QAAQ,IAAC,EAAE,EAAE,EAAE,GAAI,CACE,CACT,CACV,CACO,CACW,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { Button, Form, Input, Row, Space, message } from "@voplus/antd";
|
3
3
|
import React, { useState } from "react";
|
4
|
-
import AvatarList from "@voplus/morpho-
|
4
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
5
5
|
import Modal from "@voplus/morpho-ui/es/components/Modal";
|
6
6
|
import { State } from "./state";
|
7
7
|
import WorkspacePropertiesView from "../WorkspacePropertiesView";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/NewWorkspaceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAO,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/NewWorkspaceDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,MAAM,EAAO,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC7E,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,KAAK,MAAM,uCAAuC,CAAC;AAC1D,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,uBAAuB,MAAM,4BAA4B,CAAC;AACjE,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,KAM3B,EAAE,EAAE;IACJ,MAAM,UAAU,GAAG,iBAAiB,EAAE,CAAC;IAEvC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAA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F,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -3,7 +3,7 @@ import { InlineEdit, observe } from "@voplus/morpho-ui";
|
|
3
3
|
import { Open } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
4
4
|
import React, { useEffect, useState } from "react";
|
5
5
|
import { useWorkspace, useWorkspaceStore } from "../../../../data/workspace";
|
6
|
-
import AvatarList from "@voplus/morpho-
|
6
|
+
import AvatarList from "@voplus/morpho-org/es/components/AvatarList";
|
7
7
|
import { State } from "./state";
|
8
8
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
9
9
|
import WorkspaceCompletedWorksChart from "../../controls/WorkspaceCompletedWorksChart";
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAU,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAE7E,OAAO,UAAU,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspacePropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAU,MAAM,qDAAqD,CAAC;AACnF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC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C,CAAC;IACP,CAAC;AACL,CAAC,CAAC;AACF,eAAe,uBAAuB,CAAC"}
|
@@ -1,22 +1,23 @@
|
|
1
|
-
import { Tabs } from "@voplus/antd";
|
2
1
|
import React, { useEffect, useState } from "react";
|
3
2
|
import ActivityLog from "@voplus/morpho-document/es/components/ActivityLog/ActivityLog2";
|
4
3
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
5
4
|
import SubWorkList from "../../../work/components/SubWorkList";
|
5
|
+
import { Tabs } from "@voplus/antd";
|
6
6
|
import WorkTypeList from "../../../worktype/components/WorkTypeList";
|
7
7
|
import { observe } from "@voplus/morpho-ui";
|
8
|
+
import styles from "./index.less";
|
8
9
|
const WorkspaceTabs = (props) => {
|
9
10
|
const { id } = props;
|
10
11
|
/**Tabs 当前激活 tab 面板的 key */
|
11
|
-
const [activeKey, setActiveKey] = useState("
|
12
|
+
const [activeKey, setActiveKey] = useState("Works");
|
12
13
|
useEffect(() => {
|
13
|
-
setActiveKey("
|
14
|
+
setActiveKey("Works");
|
14
15
|
}, [props.id]);
|
15
|
-
return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: "
|
16
|
-
React.createElement(Tabs.TabPane, { tab: "Work Types", key: "WorkTypes" }, activeKey === "WorkTypes" && React.createElement(WorkTypeList, { workspaceId: id })),
|
16
|
+
return observe(() => (React.createElement(Tabs, { activeKey: activeKey, className: styles["workspace-tabs"], onChange: onChange },
|
17
17
|
React.createElement(Tabs.TabPane, { tab: "Works", key: "Works" }, activeKey === "Works" && React.createElement(SubWorkList, { workspaceId: id })),
|
18
|
+
React.createElement(Tabs.TabPane, { tab: "Work Types", key: "WorkTypes" }, activeKey === "WorkTypes" && React.createElement(WorkTypeList, { workspaceId: id })),
|
18
19
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" }, activeKey === "Activities" && React.createElement(ActivityLog, { id: id })),
|
19
|
-
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" }, activeKey === "Documents" && React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Meeting", "MeetingsFolder"] })))));
|
20
|
+
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" }, activeKey === "Documents" && (React.createElement(DocumentList, { id: id, multiple: true, exclude: ["Meeting", "MeetingsFolder"] }))))));
|
20
21
|
/**切换面板的回调*/
|
21
22
|
function onChange(activeKey) {
|
22
23
|
setActiveKey(activeKey);
|