@voplus/morpho-workspace 1.1.0-dev006 → 1.1.0-dev007
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/meeting/components/MeetingHeader/index.js +5 -8
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.js +2 -2
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/tasks/components/TaskHeader/index.js +7 -11
- package/es/modules/tasks/components/TaskHeader/index.js.map +1 -1
- package/es/modules/tasks/components/TaskHeader/index.less +7 -28
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +2 -2
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +5 -6
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/defaultTaskItem.less +0 -1
- package/es/modules/tasks/components/TaskItem/subTaskItem.less +4 -18
- package/es/modules/tasks/pages/TaskTabView/index.js +7 -5
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +9 -0
- package/package.json +2 -2
- package/es/controls/IconNumbers/index.d.ts +0 -18
- package/es/controls/IconNumbers/index.js +0 -31
- package/es/controls/IconNumbers/index.js.map +0 -1
- package/es/controls/IconNumbers/index.less +0 -10
@@ -6,10 +6,10 @@ import { faClock, faMapMarkerAlt, faStopwatch, faUserFriends } from "@fortawesom
|
|
6
6
|
import { localFormat, toLocal } from "../../../../data/contexts/StoreContext";
|
7
7
|
import { useAgendaStore, useMeeting, useMeetingStore } from "../../../../data/meeting";
|
8
8
|
import AvatarList from "../../../../components/AvatarList";
|
9
|
+
import DocumentName from "@voplus/morpho-document/es/components/DocumentName";
|
9
10
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
11
|
import { FileStore } from "@voplus/morpho-document/es/data/FileStore/FileContext";
|
11
|
-
import
|
12
|
-
import TagView from "@voplus/morpho-document/es/components/TagView";
|
12
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
13
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
14
14
|
import moment from "moment";
|
15
15
|
import { useDocumentStore } from "@voplus/morpho-document";
|
@@ -72,11 +72,10 @@ const MeetingHeader = (props) => {
|
|
72
72
|
});
|
73
73
|
meetingStore.move(moveIds);
|
74
74
|
};
|
75
|
-
const { taskNumbers, incompleteTaskNumbers, documents, comments, members } = meeting;
|
76
75
|
return useObserver(() => (React.createElement("div", { className: "meeting-item-detail" },
|
77
76
|
React.createElement(Skeleton, { loading: !meeting.loaded, active: true },
|
78
77
|
React.createElement("div", { className: "meeting-item-content" },
|
79
|
-
React.createElement(
|
78
|
+
React.createElement(DocumentName, { id: id, inlineEdit: true, includes: "tags,task-number-reports" }),
|
80
79
|
editable && !readonly ? (React.createElement("div", { style: { padding: "5px 0" } },
|
81
80
|
React.createElement(DatePicker.RangePicker, { autoFocus: true, showTime: { format: "HH:mm" }, format: "YYYY-MM-DD HH:mm", value: [toLocal(meeting.startTime), toLocal(meeting.endTime)], open: open, onChange: onChangeDate, onOpenChange: onOpenChange }))) : (React.createElement("div", null,
|
82
81
|
React.createElement(Tooltip, { title: meeting.startTime
|
@@ -101,10 +100,8 @@ const MeetingHeader = (props) => {
|
|
101
100
|
v.store.value || "Venue")), onSave: value => onSave(value, meeting.venue || "", { Venue: value }) })),
|
102
101
|
React.createElement(FAIcon, { icon: faUserFriends, flip: "horizontal", color: "#666", size: "sm" }),
|
103
102
|
React.createElement(AvatarList, { list: meeting.members || [], editable: !readonly, onChange: onChangeMember })),
|
104
|
-
React.createElement(
|
105
|
-
React.createElement(
|
106
|
-
React.createElement(ToolBar, { id: id, path: `meetings/print/${id}`, url: !!onExpand ? "" : `/meetings/${id}`, expand: !!onExpand, onDelete: onDelete, onMove: onMove, reload: true, onLock: onLock, onUnlock: onUnlock, onPaste: onPaste, onReLoad: onReLoad, onExpand: onExpand }),
|
107
|
-
React.createElement(TagView, { id: id, tags: meeting.tags, editable: meeting.status !== "Readonly" }))))));
|
103
|
+
React.createElement(QuickDataIcon, { id: id, includes: "tags,task-number-reports" })),
|
104
|
+
React.createElement(ToolBar, { id: id, path: `meetings/print/${id}`, url: !!onExpand ? "" : `/meetings/${id}`, expand: !!onExpand, onDelete: onDelete, onMove: onMove, reload: true, onLock: onLock, onUnlock: onUnlock, onPaste: onPaste, onReLoad: onReLoad, onExpand: onExpand })))));
|
108
105
|
};
|
109
106
|
export default MeetingHeader;
|
110
107
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,OAAO,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEvF,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting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AC,OAAO,IACP,EAAE,EAAE,EAAE,EACN,IAAI,EAAE,kBAAkB,EAAE,EAAE,EAC5B,GAAG,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,EAAE,EAAE,EACxC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,MAAM,QACN,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GACjB,CACQ,CACN,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
@@ -3,8 +3,8 @@ import React, { useState } from "react";
|
|
3
3
|
import { faClock, faMapMarkerAlt, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
4
4
|
import AvatarList from "../../../../components/AvatarList";
|
5
5
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
|
-
import IconNumebers from "../../../../controls/IconNumbers";
|
7
6
|
import { InlineEdit } from "@voplus/morpho-ui";
|
7
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
8
8
|
import { State } from "./state";
|
9
9
|
import { Tooltip } from "@voplus/antd";
|
10
10
|
import classnames from "classnames";
|
@@ -39,7 +39,7 @@ const MeetingItem = (props) => {
|
|
39
39
|
React.createElement("span", { className: "margin-right-10" },
|
40
40
|
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
41
41
|
state.meeting.venue),
|
42
|
-
React.createElement(
|
42
|
+
React.createElement(QuickDataIcon, { id: props.id, includes: "task-number-reports" })))),
|
43
43
|
React.createElement(AvatarList, { list: state.meeting.members || [], editable: false })))));
|
44
44
|
};
|
45
45
|
export default MeetingItem;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAExF,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAExF,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,aAAa,MAAM,mDAAmD,CAAC;AAC9E,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,WAAW,EAAE,MAAM,wCAAwC,CAAC;AACrE,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,WAAW,GAAG,CAAC,KAAyC,EAAE,EAAE;IACjE,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IACtC,KAA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,SAAS,CAAC;gCAC/C,MAAM;gCACN,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,EAAE,SAAS,CAAC,CACxC,CACE,CACJ;oBACP;wBACC,oBAAC,MAAM,IAAC,IAAI,EAAE,WAAW,GAAI;wBAC5B,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,IAAI,CAAC,CACpE,CACF,CACN;gBACA,KAAK,CAAC,OAAO,CAAC,KAAK,IAAI,CACvB;oBACC,8BAAM,SAAS,EAAC,iBAAiB;wBAChC,oBAAC,MAAM,IAAC,IAAI,EAAE,cAAc,GAAI;wBAC/B,KAAK,CAAC,OAAO,CAAC,KAAK,CACd;oBACP,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,QAAQ,EAAC,qBAAqB,GAAG,CACzD,CACN,CACI;YACN,oBAAC,UAAU,IAAC,IAAI,EAAE,KAAK,CAAC,OAAO,CAAC,OAAO,IAAI,EAAE,EAAE,QAAQ,EAAE,KAAK,GAAI,CAC7D,CACD,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -3,12 +3,11 @@ import React, { useState } from "react";
|
|
3
3
|
import { State } from "../TaskItem/state";
|
4
4
|
import { useTask, useTaskStore } from "../../../../data/task";
|
5
5
|
import AvatarList from "../../../../components/AvatarList";
|
6
|
+
import DocumentName from "@voplus/morpho-document/es/components/DocumentName";
|
6
7
|
import DocumentStatusLabel from "../../../../controls/DocumentStatusLabel";
|
7
8
|
import FlagIcon from "../../../../controls/FlagIcon";
|
8
|
-
import
|
9
|
-
import { InlineEdit } from "@voplus/morpho-ui";
|
9
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
10
10
|
import { Skeleton } from "@voplus/antd";
|
11
|
-
import TagView from "@voplus/morpho-document/es/components/TagView";
|
12
11
|
import TaskTimeBox from "../TaskTimeBox";
|
13
12
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
14
13
|
import { useObserver } from "mobx-react-lite";
|
@@ -17,21 +16,18 @@ const TaskHeader = (props) => {
|
|
17
16
|
const taskStore = useTaskStore();
|
18
17
|
const [state] = useState(new State(taskStore));
|
19
18
|
state.task = useTask(id, { reload: true, includes });
|
20
|
-
const { taskNumbers, incompleteTaskNumbers, documents, comments, members } = state.task;
|
21
19
|
return useObserver(() => (React.createElement("div", { className: "detail-task-item" }, !state.task.loading ? (React.createElement(React.Fragment, null,
|
22
|
-
React.createElement("div",
|
23
|
-
React.createElement("div", { className: "task-
|
20
|
+
React.createElement("div", { className: "task-header" },
|
21
|
+
React.createElement("div", { className: "task-name" },
|
24
22
|
React.createElement(FlagIcon, { id: id, flag: state.task.flag, className: "task-flag", editable: !state.readonly }),
|
25
|
-
React.createElement(
|
23
|
+
React.createElement(DocumentName, { id: id, inlineEdit: true, includes: includes })),
|
26
24
|
React.createElement("div", { className: "file-num" },
|
27
25
|
React.createElement(TaskTimeBox, { id: id, estimatedHours: state.task.estimatedHours || 0, schedule: [state.task.startDate, state.task.dueDate], editable: !state.readonly })),
|
28
26
|
React.createElement("div", { className: "file-num" },
|
29
|
-
React.createElement(
|
27
|
+
React.createElement(QuickDataIcon, { id: id, includes: includes }),
|
30
28
|
React.createElement(DocumentStatusLabel, { status: state.task.taskStatus, editable: state.task.taskStatus !== "NotAssigned" || !state.readonly, onChange: TaskStatus => state.onEdit({ TaskStatus }), className: "margin-left-30" })),
|
31
29
|
React.createElement(AvatarList, { editable: !state.readonly, list: state.task.members, onChange: ids => state.onEdit({ MemberIds: ids }) })),
|
32
|
-
React.createElement("
|
33
|
-
React.createElement(ToolBar, { id: id, reload: true, size: "small", timer: true, includes: includes, url: onExpand ? "" : `/tasks/${id}`, expand: !!onExpand, onDelete: state.onDelete, onMove: state.onMove, onPaste: state.onPaste, onLock: () => state.onEdit({ Status: "Readonly" }), onUnlock: () => state.onEdit({ Status: "Normal" }), onReLoad: onReload, onExpand: onExpand }),
|
34
|
-
React.createElement(TagView, { id: id, tags: state.task.tags, editable: !state.readonly })))) : (React.createElement(Skeleton, { active: true })))));
|
30
|
+
React.createElement(ToolBar, { id: id, reload: true, size: "small", timer: true, includes: includes, url: onExpand ? "" : `/tasks/${id}`, expand: !!onExpand, onDelete: state.onDelete, onMove: state.onMove, onPaste: state.onPaste, onLock: () => state.onEdit({ Status: "Readonly" }), onUnlock: () => state.onEdit({ Status: "Normal" }), onReLoad: onReload, onExpand: onExpand }))) : (React.createElement(Skeleton, { active: true })))));
|
35
31
|
};
|
36
32
|
TaskHeader.defaultProps = {
|
37
33
|
/** includes: path,tags,task-number-reports*/
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,mBAAmB,MAAM,0CAA0C,CAAC;AAC3E,OAAO,QAAQ,MAAM,+BAA+B,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,mBAAmB,CAAC;AACzD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,mCAAmC,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OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAClD,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,EAClD,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,GACjB,CACc,CACjB,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,UAAU,CAAC,YAAY,GAAG;IACzB,6CAA6C;IAC7C,QAAQ,EAAE,0BAA0B;IACpC,qBAAqB;IACrB,MAAM,EAAE,KAAK;CACb,CAAC;AACF,eAAe,UAAU,CAAC"}
|
@@ -7,35 +7,18 @@
|
|
7
7
|
justify-content: space-between;
|
8
8
|
padding: 10px 0;
|
9
9
|
margin: 0 20px;
|
10
|
-
> div {
|
11
|
-
flex: 1;
|
12
|
-
}
|
13
10
|
.task-header {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
flex: 1;
|
22
|
-
}
|
23
|
-
}
|
24
|
-
.task-item-name {
|
25
|
-
color: #000;
|
26
|
-
font-size: 15px;
|
27
|
-
font-weight: 500;
|
28
|
-
&.task-item-name_done {
|
29
|
-
color: #a8a8a8;
|
11
|
+
flex: 1;
|
12
|
+
.task-name {
|
13
|
+
display: flex;
|
14
|
+
align-items: center;
|
15
|
+
.task-flag {
|
16
|
+
width: 25px;
|
17
|
+
}
|
30
18
|
}
|
31
19
|
}
|
32
20
|
.file-num {
|
33
21
|
color: #444;
|
34
|
-
font-size: 13px;
|
35
|
-
padding-bottom: 5px;
|
36
|
-
// > span + span {
|
37
|
-
// margin-left: 12px;
|
38
|
-
// }
|
39
22
|
.svg-inline--fa {
|
40
23
|
margin-right: 5px;
|
41
24
|
}
|
@@ -43,9 +26,5 @@
|
|
43
26
|
margin: 0 30px 0 12px;
|
44
27
|
}
|
45
28
|
}
|
46
|
-
.toolbar-content {
|
47
|
-
max-width: 40%;
|
48
|
-
text-align: right;
|
49
|
-
}
|
50
29
|
}
|
51
30
|
}
|
@@ -7,7 +7,7 @@ import AvatarList from "../../../../components/AvatarList";
|
|
7
7
|
import DocumentStatusLabel from "../../../../controls/DocumentStatusLabel";
|
8
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
9
9
|
import FlagIcon from "../../../../controls/FlagIcon";
|
10
|
-
import
|
10
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
11
11
|
import { Tooltip } from "@voplus/antd";
|
12
12
|
import classnames from "classnames";
|
13
13
|
import moment from "moment";
|
@@ -31,7 +31,7 @@ const DefaultTaskItem = (props) => {
|
|
31
31
|
React.createElement("span", { className: "margin-right-15" },
|
32
32
|
React.createElement(FAIcon, { icon: faClock }),
|
33
33
|
moment(state.task.dueDate).format("D MMM YYYY")))),
|
34
|
-
React.createElement(
|
34
|
+
React.createElement(QuickDataIcon, { id: id, includes: "task-number-reports" })),
|
35
35
|
React.createElement(AvatarList, { editable: false, list: state.task.members, className: "box" })),
|
36
36
|
React.createElement(DocumentStatusLabel, { status: state.task.taskStatus, editable: state.task.taskStatus !== "NotAssigned" || !state.readonly, onChange: TaskStatus => state.onEdit({ TaskStatus }) }))));
|
37
37
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"DefaultTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/DefaultTaskItem.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AAC/C,OAAO,EAAE,MAAM,EAAE,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AE,OAAO,GAAI;wBACxB,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,YAAY,CAAC,CAC1C,CACE,CACV;gBACD,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,EAAC,qBAAqB,GAAG,CACnD;YACN,oBAAC,UAAU,IAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,EAAC,KAAK,GAAG,CACpE;QAEN,oBAAC,mBAAmB,IACnB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,EAC7B,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,UAAU,KAAK,aAAa,IAAI,CAAC,KAAK,CAAC,QAAQ,EACpE,QAAQ,EAAE,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,GACnD,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -1,15 +1,15 @@
|
|
1
1
|
import "./subTaskItem.less";
|
2
|
-
import { Button, Checkbox
|
2
|
+
import { Button, Checkbox } from "@voplus/antd";
|
3
3
|
import React, { useState } from "react";
|
4
4
|
import { State } from "./state";
|
5
5
|
import { faBars, faSave, faUndo } from "@fortawesome/pro-light-svg-icons";
|
6
6
|
import { useTask, useTaskStore } from "../../../../data/task";
|
7
7
|
import AvatarList from "../../../../components/AvatarList";
|
8
|
+
import DocumentName from "@voplus/morpho-document/es/components/DocumentName";
|
8
9
|
import DocumentStatusLabel from "../../../../controls/DocumentStatusLabel";
|
9
10
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
10
11
|
import FlagIcon from "../../../../controls/FlagIcon";
|
11
|
-
import
|
12
|
-
import TagView from "@voplus/morpho-document/es/components/TagView";
|
12
|
+
import QuickDataIcon from "@voplus/morpho-document/es/controls/QuickDataIcon";
|
13
13
|
import TaskQuickViewDialog from "../TaskQuickViewDialog";
|
14
14
|
import TaskTimeBox from "../TaskTimeBox";
|
15
15
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar";
|
@@ -27,8 +27,7 @@ const SubTaskItem = (props) => {
|
|
27
27
|
React.createElement("div", null,
|
28
28
|
React.createElement("div", { className: "task-header" },
|
29
29
|
multiple ? (React.createElement(Checkbox, { value: props.id, disabled: state.readonly, className: "multiple-checkbox" })) : (React.createElement(FlagIcon, { id: id, flag: state.task.flag, className: "task-flag", editable: !state.readonly })),
|
30
|
-
|
31
|
-
React.createElement(TagView, { id: id, tags: state.task.tags, editable: !state.readonly })),
|
30
|
+
React.createElement(DocumentName, { id: id, includes: "tags,task-number-reports", editable: state.editable, onChange: value => (state.name = value), className: "task-name", showTags: !state.editable })),
|
32
31
|
React.createElement("div", { className: "task-file-info" },
|
33
32
|
!multiple && connectDragSource ? (connectDragSource(React.createElement("span", { className: classnames("task-move", { show: state.editable }) }, React.createElement(FAIcon, { icon: faBars })))) : (React.createElement("span", { className: "task-move" })),
|
34
33
|
React.createElement("div", null,
|
@@ -36,7 +35,7 @@ const SubTaskItem = (props) => {
|
|
36
35
|
React.createElement(TaskTimeBox, { id: id, estimatedHours: state.task.estimatedHours || 0, schedule: [state.task.startDate, state.task.dueDate], editable: !state.readonly &&
|
37
36
|
!!(state.editable || state.task.startDate || state.task.estimatedHours), className: "task-time-box" })),
|
38
37
|
React.createElement("p", null,
|
39
|
-
React.createElement(
|
38
|
+
React.createElement(QuickDataIcon, { id: id, includes: "tags,task-number-reports" }))))),
|
40
39
|
React.createElement(AvatarList, { num: 3, multiple: state.editable, list: [...(state.task.members || []), ...state.inheritedMembers], editable: state.editable, onChange: (ids) => {
|
41
40
|
state.ids = ids;
|
42
41
|
}, className: "box" })),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SubTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/SubTaskItem.tsx"],"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,UAAU,KAAK,CAAC,EAAE,EAAE,EACzB,SAAS,EAAE,CAAC,KAAK,CAAC,QAAQ,EAC1B,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,EAC/B,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,MAAM,EAAE,KAAK,CAAC,MAAM,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC,EAClD,QAAQ,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,GACjD,CACG,CAKD;QACN,oBAAC,mBAAmB,IACnB,EAAE,EAAE,EAAE,EACN,OAAO,EAAE,KAAK,CAAC,gBAAgB,EAC/B,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,GAC/C,CACc,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -9,9 +9,6 @@
|
|
9
9
|
align-items: center;
|
10
10
|
padding-top: 10px;
|
11
11
|
margin: 0 20px;
|
12
|
-
&:last-child {
|
13
|
-
padding-bottom: 10px;
|
14
|
-
}
|
15
12
|
&_box {
|
16
13
|
flex: 1;
|
17
14
|
display: flex;
|
@@ -35,28 +32,17 @@
|
|
35
32
|
.task-flag {
|
36
33
|
width: 25px;
|
37
34
|
}
|
38
|
-
|
39
|
-
|
40
|
-
color: #000;
|
41
|
-
font-size: 15px;
|
42
|
-
font-weight: 500;
|
43
|
-
z-index: 100;
|
44
|
-
&.task-item-name_done {
|
45
|
-
color: #a8a8a8;
|
35
|
+
.task-name {
|
36
|
+
flex: 1;
|
46
37
|
}
|
47
38
|
}
|
48
39
|
.task-file-info {
|
49
40
|
display: flex;
|
50
41
|
color: #444;
|
51
|
-
font-size: 13px;
|
52
|
-
padding-top: 5px;
|
53
42
|
line-height: 24px;
|
54
43
|
p {
|
55
44
|
margin: 0;
|
56
45
|
}
|
57
|
-
& span + span {
|
58
|
-
margin-left: 12px;
|
59
|
-
}
|
60
46
|
.svg-inline--fa {
|
61
47
|
margin-right: 5px;
|
62
48
|
}
|
@@ -68,6 +54,7 @@
|
|
68
54
|
.task-time-box {
|
69
55
|
position: relative;
|
70
56
|
z-index: 100;
|
57
|
+
cursor: pointer;
|
71
58
|
.ant-tag {
|
72
59
|
margin: 0 0 0 5px;
|
73
60
|
padding: 0 5px;
|
@@ -93,7 +80,7 @@
|
|
93
80
|
background-color: #fff;
|
94
81
|
z-index: 99;
|
95
82
|
}
|
96
|
-
.task-
|
83
|
+
.task-name,
|
97
84
|
.task-time-box {
|
98
85
|
opacity: 0.5;
|
99
86
|
}
|
@@ -121,7 +108,6 @@
|
|
121
108
|
.task-date-picker {
|
122
109
|
.ant-calendar-range .ant-calendar-footer-extra {
|
123
110
|
float: right;
|
124
|
-
// text-align: right;
|
125
111
|
}
|
126
112
|
}
|
127
113
|
}
|
@@ -59,11 +59,13 @@ const TaskTabView = () => {
|
|
59
59
|
React.createElement("div", { className: "view-title" }, "Linked Dependent Tasks"),
|
60
60
|
(task.links || [])
|
61
61
|
.filter(({ type, right }) => type === "Dependent" && right.type === "Task")
|
62
|
-
.map((item) => (React.createElement(
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
62
|
+
.map((item) => (React.createElement("div", { key: item.id, className: "linked-dependent-task-item" },
|
63
|
+
React.createElement("span", null, item.right && item.right.id === id ? "By" : ""),
|
64
|
+
React.createElement(SubTaskItem, { id: item.right
|
65
|
+
? item.right.id === id
|
66
|
+
? item.left.id
|
67
|
+
: item.right.id
|
68
|
+
: "" }))))))),
|
67
69
|
React.createElement(SubTaskList, { parentId: id, readonly: task.status === "Readonly" })))))))));
|
68
70
|
/** reload data */
|
69
71
|
function onReload() {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/pages/TaskTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/pages/TaskTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAO,QAAQ,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAE5D,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAE3E,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AACrD,OAAO,WAAW,MAAM,uCAAuC,CAAC;AAChE,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAErD,MAAM,WAAW,GAAG,GAAG,EAAE;IACxB,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAC9D,MAAM,KAAK,GAAG,aAAa,EAAk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I,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAQ;4BAC7D,oBAAC,WAAW,IACX,EAAE,EACD,IAAI,CAAC,KAAK;oCACT,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE;wCACrB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;wCACd,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;oCAChB,CAAC,CAAC,EAAE,GAEL,CACG,CACN,CAAC,CACE,CACN,CACD;oBACD,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,KAAK,UAAU,GAAI,CACvD,CACG,CACjB,CACI,CACQ,CACV,CACN,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@voplus/morpho-workspace",
|
3
|
-
"version": "1.1.0-
|
3
|
+
"version": "1.1.0-dev007",
|
4
4
|
"description": "morpho workspace module",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -43,7 +43,7 @@
|
|
43
43
|
"@voplus/morpho-collaboration": "^1.0.0-dev021-antd4",
|
44
44
|
"@voplus/morpho-config": "^1.0.0-dev44",
|
45
45
|
"@voplus/morpho-data": "^1.0.0-dev081",
|
46
|
-
"@voplus/morpho-document": "^1.0.0-
|
46
|
+
"@voplus/morpho-document": "^1.0.0-dev193",
|
47
47
|
"@voplus/morpho-org": "^1.0.0-dev032-antd4",
|
48
48
|
"@voplus/morpho-text": "^1.0.0-dev016",
|
49
49
|
"@voplus/morpho-ui": "^1.0.0-dev094",
|
@@ -1,18 +0,0 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const IconNumebers: {
|
3
|
-
(props: {
|
4
|
-
taskNumbers: number;
|
5
|
-
incompleteTaskNumbers: number;
|
6
|
-
documents: number;
|
7
|
-
comments: number;
|
8
|
-
memberNumbers: number;
|
9
|
-
}): JSX.Element;
|
10
|
-
defaultProps: {
|
11
|
-
taskNumbers: number;
|
12
|
-
incompleteTaskNumbers: number;
|
13
|
-
documents: number;
|
14
|
-
comments: number;
|
15
|
-
memberNumbers: number;
|
16
|
-
};
|
17
|
-
};
|
18
|
-
export default IconNumebers;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { faCommentDots, faListAlt, faListOl, faPaperclip, faUsers } from "@fortawesome/pro-light-svg-icons";
|
2
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
3
|
-
import React from "react";
|
4
|
-
import { library } from "@fortawesome/fontawesome-svg-core";
|
5
|
-
import styles from "./index.less";
|
6
|
-
library.add(faCommentDots, faListAlt, faListOl, faPaperclip, faUsers);
|
7
|
-
const IconNumebers = (props) => {
|
8
|
-
const { taskNumbers, incompleteTaskNumbers, documents, comments, memberNumbers } = props;
|
9
|
-
const list = [
|
10
|
-
{ icon: ["fal", "list-ol"], num: taskNumbers },
|
11
|
-
{ icon: ["fal", "list-alt"], num: incompleteTaskNumbers },
|
12
|
-
{ icon: ["fal", "paperclip"], num: documents > taskNumbers ? documents - taskNumbers : 0 },
|
13
|
-
{ icon: ["fal", "comment-dots"], num: comments },
|
14
|
-
{
|
15
|
-
icon: ["fal", "users"],
|
16
|
-
num: memberNumbers
|
17
|
-
}
|
18
|
-
];
|
19
|
-
return (React.createElement(React.Fragment, null, list.map((item, index) => (React.createElement("span", { key: index, className: styles["icon-numbers"] },
|
20
|
-
React.createElement(FAIcon, { icon: item.icon }),
|
21
|
-
item.num)))));
|
22
|
-
};
|
23
|
-
IconNumebers.defaultProps = {
|
24
|
-
taskNumbers: 0,
|
25
|
-
incompleteTaskNumbers: 0,
|
26
|
-
documents: 0,
|
27
|
-
comments: 0,
|
28
|
-
memberNumbers: 0
|
29
|
-
};
|
30
|
-
export default IconNumebers;
|
31
|
-
//# sourceMappingURL=index.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/IconNumbers/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,aAAa,EACb,SAAS,EACT,QAAQ,EACR,WAAW,EACX,OAAO,EACP,MAAM,kCAAkC,CAAC;AAE1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAC;AAC5D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,OAAO,CAAC,GAAG,CAAC,aAAa,EAAE,SAAS,EAAE,QAAQ,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;AACtE,MAAM,YAAY,GAAG,CAAC,KAMrB,EAAE,EAAE;IACJ,MAAM,EAAE,WAAW,EAAE,qBAAqB,EAAE,SAAS,EAAE,QAAQ,EAAE,aAAa,EAAE,GAAG,KAAK,CAAC;IACzF,MAAM,IAAI,GAAG;QACZ,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,EAAE,GAAG,EAAE,WAAW,EAAE;QAC9C,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,EAAE,GAAG,EAAE,qBAAqB,EAAE;QACzD,EAAE,IAAI,EAAE,CAAC,KAAK,EAAE,WAAW,CAAC,EAAE,GAAG,EAAE,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,SAAS,GAAG,WAAW,CAAC,CAAC,CAAC,CAAC,EAAE;QAC1F,EAAE,IAAI,EAAE,CAAC,KAAK,E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