@voplus/morpho-workspace 1.2.0-dev.12 → 1.2.0-dev02
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/changelog.md +0 -3
- package/es/controls/MoreOperateDropdown/index.d.ts +1 -1
- package/es/controls/filters/DueDateFilter/state.js.map +1 -1
- package/es/controls/filters/StartDateFilter/state.js.map +1 -1
- package/es/data/board/mock.js +0 -21
- package/es/data/board/mock.js.map +1 -1
- package/es/data/task/interfaces.d.ts +1 -2
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.js +8 -6
- package/es/modules/board/components/BoardColumn/index.js.map +1 -1
- package/es/modules/board/components/BoardColumn/index.less +0 -2
- package/es/modules/board/components/BoardColumn/state.d.ts +3 -1
- package/es/modules/board/components/BoardColumn/state.js +18 -8
- package/es/modules/board/components/BoardColumn/state.js.map +1 -1
- package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/meeting/MeetingRoutes.js +1 -1
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +2 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +25 -17
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +3 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +15 -10
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +14 -24
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +1 -9
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +0 -6
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +0 -40
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +4 -6
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.js +1 -2
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +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/MeetingList/index.d.ts +2 -2
- package/es/modules/meeting/components/MeetingList/index.js +3 -9
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js +7 -3
- package/es/modules/meeting/components/MeetingsFolderProperitesView/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +1 -3
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +6 -8
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingListView/index.js +6 -6
- package/es/modules/meeting/pages/MeetingListView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +4 -4
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js +4 -2
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.js +5 -10
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +2 -6
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js +8 -7
- package/es/modules/tasks/components/TaskItem/DefaultTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js +7 -7
- package/es/modules/tasks/components/TaskItem/SubTaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/state.d.ts +3 -2
- package/es/modules/tasks/components/TaskItem/state.js +2 -8
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskPropertiesView/index.js +6 -5
- package/es/modules/tasks/components/TaskPropertiesView/index.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +2 -2
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskList/index.js +1 -2
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.js +9 -8
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js +3 -2
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/pages/Space/components/Tasks/index.less +1 -1
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkDueCard/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeDetail/index.js.map +1 -1
- package/es/pages/WorkType/WorkTypeSelect/index.js.map +1 -1
- package/package.json +22 -24
- package/es/controls/InlineSearch/index.d.ts +0 -6
- package/es/controls/InlineSearch/index.js +0 -42
- package/es/controls/InlineSearch/index.js.map +0 -1
- package/es/controls/InlineSearch/index.less +0 -10
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.d.ts +0 -20
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js +0 -52
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.js.map +0 -1
- package/es/modules/meeting/components/MeetingList/QuickSearch/index.less +0 -12
- package/es/modules/tasks/controls/TaskStatusLabel/index.d.ts +0 -10
- package/es/modules/tasks/controls/TaskStatusLabel/index.js +0 -9
- package/es/modules/tasks/controls/TaskStatusLabel/index.js.map +0 -1
- package/es/modules/tasks/controls/TaskStatusLabel/index.less +0 -33
@@ -1,7 +1,8 @@
|
|
1
|
-
import React, { useContext } from "react";
|
1
|
+
import React, { useContext, useEffect } from "react";
|
2
2
|
import { __RouterContext } from "react-router";
|
3
|
-
import { observe
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
4
4
|
import MeetingList from "../../components/MeetingList";
|
5
|
+
import { runInAction } from "mobx";
|
5
6
|
import { useDocument } from "@voplus/morpho-document-core";
|
6
7
|
import { useTabItem } from "@voplus/morpho-data";
|
7
8
|
const MeetingListView = (props) => {
|
@@ -9,11 +10,10 @@ const MeetingListView = (props) => {
|
|
9
10
|
const id = props.parentId || match.params.id;
|
10
11
|
const tab = useTabItem();
|
11
12
|
const document = useDocument(id);
|
12
|
-
|
13
|
-
var _a;
|
14
|
-
tab.title = (_a = document === null || document === void 0 ? void 0 : document.name) !== null && _a !== void 0 ? _a : "Meetings";
|
13
|
+
useEffect(() => {
|
14
|
+
runInAction(() => { var _a; return (tab.title = (_a = document === null || document === void 0 ? void 0 : document.name) !== null && _a !== void 0 ? _a : "Meetings"); });
|
15
15
|
});
|
16
|
-
return observe(() => React.createElement(MeetingList, { parentId: id
|
16
|
+
return observe(() => React.createElement(MeetingList, { parentId: id }));
|
17
17
|
};
|
18
18
|
export default MeetingListView;
|
19
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,OAAO,EAAoB,MAAM,mBAAmB,CAAC;AAE9D,OAAO,WAAW,MAAM,8BAA8B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,MAAM,eAAe,GAAG,CAAC,KAA4B,EAAE,EAAE;IACxD,MAAM,EAAE,KAAK,EAAE,GAAG,UAAU,CAAC,eAAe,CAE3C,CAAC;IACF,MAAM,EAAE,GAAG,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;IAE7C,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,WAAC,OAAA,CAAC,GAAG,CAAC,KAAK,SAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,UAAU,CAAC,CAAA,EAAA,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,GAAI,CAAC,CAAC;AACrD,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import React, { useContext, useEffect, useState } from "react";
|
2
2
|
import { __RouterContext } from "react-router";
|
3
|
-
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
4
3
|
import AgendaList from "../../components/AgendaList";
|
5
4
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
6
5
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
7
6
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
8
7
|
import MeetingHeader from "../../components/MeetingHeader";
|
9
8
|
import { Skeleton } from "@voplus/antd";
|
9
|
+
import { observe } from "@voplus/morpho-ui";
|
10
10
|
import { runInAction } from "mobx";
|
11
11
|
import styles from "./index.less";
|
12
12
|
import { useMeeting } from "../../../../data/meeting";
|
@@ -21,9 +21,9 @@ const MeetingTabView = () => {
|
|
21
21
|
useEffect(() => {
|
22
22
|
runInAction(() => asideContext.openAside(AsideElement, { span: 12 }));
|
23
23
|
}, []);
|
24
|
-
|
25
|
-
tab.title =
|
26
|
-
});
|
24
|
+
useEffect(() => {
|
25
|
+
runInAction(() => (tab.title = "Meeting Detail"));
|
26
|
+
}, []);
|
27
27
|
const AsideElement = (React.createElement("div", { className: "module-tab-view_aside" },
|
28
28
|
React.createElement(DocumentTabs, { id: id, exclude: ["Agenda"] })));
|
29
29
|
return observe(() => (React.createElement("div", { className: "module-tab-view" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAS,MAAM,cAAc,CAAC;AAEtD,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,YAAY,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AAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { Avatar, Button, Card, List } from "@voplus/antd";
|
2
2
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
3
|
+
import DocumentMenu from "@voplus/morpho-document/es/components/DocumentMenu";
|
3
4
|
import React from "react";
|
4
5
|
import classnames from "classnames";
|
5
6
|
import { observe } from "@voplus/morpho-ui";
|
6
7
|
import style from "./index.less";
|
7
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
8
|
-
//import DocumentMenu from "@voplus/morpho-document/es/components/DocumentMenu";
|
9
9
|
export default () => {
|
10
10
|
const { user } = useApplicationContext();
|
11
11
|
const data = [
|
@@ -61,7 +61,9 @@ export default () => {
|
|
61
61
|
xxl: 2,
|
62
62
|
}, dataSource: data, renderItem: (item) => (React.createElement(List.Item, { key: item.id },
|
63
63
|
React.createElement(Card, { title: React.createElement("div", null,
|
64
|
-
React.createElement("div", { className: "section" },
|
64
|
+
React.createElement("div", { className: "section" },
|
65
|
+
item.teams,
|
66
|
+
React.createElement(DocumentMenu, { id: "dymmy" })),
|
65
67
|
React.createElement(Avatar, { src: item.url, size: 38, style: { marginRight: 8 } }),
|
66
68
|
item.name) },
|
67
69
|
React.createElement("div", null,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/menus/pages/ListOptions/Teams/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/menus/pages/ListOptions/Teams/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAE1D,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,cAAc,CAAC;AACjC,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,eAAe,GAAG,EAAE;IACnB,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG;QACZ;YACC,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EACF,gGAAgG;SACjG;QACD;YACC,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EACF,gGAAgG;SACjG;QACD;YACC,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EACF,gGAAgG;SACjG;QACD;YACC,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EACF,gGAAgG;SACjG;QACD;YACC,EAAE,EAAE,CAAC;YACL,KAAK,EAAE,eAAe;YACtB,IAAI,EAAE,sBAAsB;YAC5B,GAAG,EACF,gGAAgG;SACj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AAC"}
|
@@ -10,7 +10,6 @@ import classnames from "classnames";
|
|
10
10
|
import { faListAlt } from "@fortawesome/pro-light-svg-icons";
|
11
11
|
import moment from "moment";
|
12
12
|
import { observe } from "@voplus/morpho-ui";
|
13
|
-
import { runInAction } from "mobx";
|
14
13
|
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
15
14
|
import { useTaskStore } from "../../../../data/task";
|
16
15
|
const NewTaskForm = (props) => {
|
@@ -21,7 +20,7 @@ const NewTaskForm = (props) => {
|
|
21
20
|
state.showMore && React.createElement("h3", null, "Add Task"),
|
22
21
|
React.createElement(Form, { layout: "vertical" }, state.showMore || !props.simple ? (React.createElement(React.Fragment, null,
|
23
22
|
React.createElement(Form.Item, { label: "Title for your task" },
|
24
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) =>
|
23
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, onChange: (e) => (state.params.Name = e.target.value), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
25
24
|
React.createElement(Form.Item, { label: "Description of your task" },
|
26
25
|
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Description =
|
27
26
|
opt.editor.dom.innerHTML === "<p><br></p>" ? "" : opt.editor.dom.innerHTML) })),
|
@@ -49,7 +48,7 @@ const NewTaskForm = (props) => {
|
|
49
48
|
React.createElement(Spin, { spinning: !!props.simple && !!state.loading },
|
50
49
|
React.createElement(Row, { justify: "space-between" },
|
51
50
|
React.createElement(Col, { flex: 1 },
|
52
|
-
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) =>
|
51
|
+
React.createElement(Input, { autoFocus: true, value: state.params.Name, placeholder: "Enter a title for this task", onChange: (e) => (state.params.Name = e.target.value), onPressEnter: () => (!!props.simple && !state.showMore ? onSubmit() : null), onKeyDown: onKeyDown })),
|
53
52
|
props.simple && (React.createElement(Col, null,
|
54
53
|
React.createElement("span", { onClick: onShowMore, className: "detailed" },
|
55
54
|
React.createElement(FAIcon, { icon: faListAlt, size: "lg" }))))))))))));
|
@@ -58,15 +57,13 @@ const NewTaskForm = (props) => {
|
|
58
57
|
return message.warning("Title is required");
|
59
58
|
if (props.onSubmitSave)
|
60
59
|
return props.onSubmitSave(state.params);
|
61
|
-
|
60
|
+
state.loading = true;
|
62
61
|
const res = await tasks.create({
|
63
62
|
data: { ...state.params, ParentId: props.parentId },
|
64
63
|
error: "message",
|
65
64
|
});
|
66
|
-
|
67
|
-
|
68
|
-
state.params = state.Params;
|
69
|
-
});
|
65
|
+
state.loading = false;
|
66
|
+
state.params = state.Params;
|
70
67
|
if (props.showView)
|
71
68
|
return asideContext.openAside(React.createElement(TaskPropertiesView, { id: res.id }), { span: 12 });
|
72
69
|
// if (state.showMore && props!.onSave) props!.onSave();
|
@@ -84,8 +81,6 @@ const NewTaskForm = (props) => {
|
|
84
81
|
state.params = state.Params;
|
85
82
|
if (props.showView)
|
86
83
|
return asideContext.closeAside();
|
87
|
-
if (props.simple)
|
88
|
-
state.showMore = false;
|
89
84
|
if (props.onCancel)
|
90
85
|
props.onCancel();
|
91
86
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,UAAU,EACV,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK,EACL,IAAI,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/NewTaskForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,UAAU,EACV,IAAI,EACJ,KAAK,EACL,GAAG,EACH,KAAK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AAe,WAAW,CAAC"}
|
@@ -16,11 +16,10 @@ import SubTaskItem from "../TaskItem/SubTaskItem";
|
|
16
16
|
import UnitsSelectDialog from "@voplus/morpho-org/es/components/UnitsSelectDialog";
|
17
17
|
import classnames from "classnames";
|
18
18
|
import { observe } from "@voplus/morpho-ui";
|
19
|
-
import { runInAction } from "mobx";
|
20
19
|
import { useDeepMemo } from "@voplus/morpho-data";
|
21
20
|
import { useRenderOnChange } from "@voplus/morpho-ui";
|
22
21
|
const SubTaskList = (props) => {
|
23
|
-
const { readonly, total
|
22
|
+
const { readonly, total } = props;
|
24
23
|
const documents = useDocumentStore();
|
25
24
|
const taskStore = useTaskStore();
|
26
25
|
const state = useDeepMemo(() => new State(), [props.parentId]);
|
@@ -42,7 +41,7 @@ const SubTaskList = (props) => {
|
|
42
41
|
list.remove(id);
|
43
42
|
}
|
44
43
|
list.union(result);
|
45
|
-
|
44
|
+
state.total = total;
|
46
45
|
}, { ...list.filters.options, Total: true });
|
47
46
|
/** */
|
48
47
|
useOnDeleteDocument((s, doc) => {
|
@@ -63,7 +62,6 @@ const SubTaskList = (props) => {
|
|
63
62
|
React.createElement(ListDataContext.Provider, { value: list },
|
64
63
|
React.createElement("div", { className: classnames("sub-task-list", props.className) },
|
65
64
|
!state.showMore && (React.createElement(ListView, { renderId: props.parentId, headerProps: {
|
66
|
-
visible: !!header,
|
67
65
|
header: (React.createElement(BatchHeader, { viewTitle: React.createElement(React.Fragment, null,
|
68
66
|
"Sub-Tasks",
|
69
67
|
total && (React.createElement(Badge, { count: state.total, overflowCount: 9999, className: "site-badge-count" }))), buttons: [
|
@@ -72,8 +70,6 @@ const SubTaskList = (props) => {
|
|
72
70
|
React.createElement(AssignButton, { execute: onAssign, loading: state.batchLoading, key: "AssignButton" }),
|
73
71
|
] })),
|
74
72
|
addAble: !readonly,
|
75
|
-
quickSearch: true,
|
76
|
-
searchOptions: { width: "150px" },
|
77
73
|
filterViewProps: {
|
78
74
|
columns: [
|
79
75
|
React.createElement(TaskStatusFilter, { key: "TaskStatusFilter" }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EACN,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EACN,WAAW,EACX,YAAY,EACZ,UAAU,GACV,MAAM,yDAAyD,CAAC;AACjE,OAAO,EAEN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAS,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,KAAK,EAAoB,MAAM,SAAS,CAAC;AAElD,OAAO,YAAY,MAAM,mCAAmC,CAAC;AAE7D,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings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AAE,GAAG,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;SAC7E;QACD,KAAK,CAAC,WAAW,GAAG,KAAK,CAAC;QAC1B,aAAa;QACb,MAAM,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,KAAK,CAAC,YAAY,GAAG,KAAK,CAAC;IAC5B,CAAC;IAED,oBAAoB;IACpB,KAAK,UAAU,SAAS,CAAC,EAAU,EAAE,OAAe;QACnD,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IACxC,CAAC;IACD,KAAK,UAAU,QAAQ,CAAC,KAAwB;QAC/C,MAAM,SAAS,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IAC3D,CAAC;IACD,SAAS,QAAQ,CAAC,OAAY;QAC7B,OAAO,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;AACF,CAAC,CAAC;AACF,WAAW,CAAC,YAAY,GAAG;IAC1B,MAAM,EAAE,IAAI;IACZ,KAAK,EAAE,IAAI;CACX,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -7,24 +7,25 @@ import { useTask, useTaskStore } from "../../../../data/task";
|
|
7
7
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
8
8
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
9
9
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
10
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
10
11
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
11
|
-
import FlagIcon from "@voplus/morpho-document/es/controls/
|
12
|
+
import FlagIcon from "@voplus/morpho-document/es/controls/FlagIcon";
|
12
13
|
import TaskAnalyticsDataIcon from "../../reports/TaskAnalyticsDataIcon";
|
13
|
-
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
14
|
-
import { autorun } from "mobx";
|
15
14
|
import moment from "moment";
|
16
15
|
import { observe } from "@voplus/morpho-ui";
|
17
16
|
import { useApplicationContext } from "@voplus/morpho-data";
|
18
17
|
const DefaultTaskItem = (props) => {
|
19
|
-
const { id, connectDragSource } = props;
|
18
|
+
const { id, isMeeting, connectDragSource } = props;
|
20
19
|
const { user } = useApplicationContext();
|
21
20
|
const taskStore = useTaskStore();
|
22
21
|
const task = useTask(id, { reload: false, includes: "tags,versions" });
|
23
22
|
const [taskStatus, setTaskStatus] = useState(task.taskStatus);
|
24
|
-
useEffect(() =>
|
23
|
+
useEffect(() => {
|
24
|
+
setTaskStatus(task.taskStatus);
|
25
|
+
}, [task.taskStatus]);
|
25
26
|
return observe(() => {
|
26
27
|
var _a;
|
27
|
-
return (React.createElement(DocumentHeader, Object.assign({ id: task.id, quickDataBarAlign: "left", flagVisible: false, tagsVisible: !!((_a = task.tags) === null || _a === void 0 ? void 0 : _a.length), className: "default-task-item", pre: React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly }), quickDataBar: React.createElement(React.Fragment, null,
|
28
|
+
return (React.createElement(DocumentHeader, Object.assign({ id: task.id, quickDataBarAlign: "left", flagVisible: false, tagsVisible: !!isMeeting && !!((_a = task.tags) === null || _a === void 0 ? void 0 : _a.length), className: "default-task-item", pre: React.createElement(FlagIcon, { id: task.id, flag: task.flag, editable: !task.readonly }), quickDataBar: React.createElement(React.Fragment, null,
|
28
29
|
connectDragSource &&
|
29
30
|
connectDragSource(React.createElement("span", { className: "task-move" }, React.createElement(FAIcon, { icon: faBars }))),
|
30
31
|
task.dueDate && (React.createElement(Tooltip, { title: "DueDate" },
|
@@ -37,7 +38,7 @@ const DefaultTaskItem = (props) => {
|
|
37
38
|
React.createElement(CommentDataIcon, { id: id }),
|
38
39
|
React.createElement(UserQuickIcon, { id: id })),
|
39
40
|
React.createElement(TaskAnalyticsDataIcon, { id: id, className: "margin-left-10" }),
|
40
|
-
React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: false, list: [...(task.members || []), ...(task.childMembers || [])] })), tools: React.createElement(
|
41
|
+
React.createElement(AvatarList, { organizationId: user.info.organizationId, editable: false, list: [...(task.members || []), ...(task.childMembers || [])] })), tools: React.createElement(DocumentStatusLabel, { status: taskStatus, editable: taskStatus !== "NotAssigned" || !task.readonly, onChange: (TaskStatus) => {
|
41
42
|
setTaskStatus(TaskStatus);
|
42
43
|
taskStore.edit(task.id, {
|
43
44
|
data: { TaskStatus },
|
@@ -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,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,QAAQ,MAAM,
|
1
|
+
{"version":3,"file":"DefaultTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/DefaultTaskItem.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAEhC,OAAO,EACN,eAAe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,gBAAgB,GAAG;gBAC5D,oBAAC,UAAU,IACV,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,KAAK,EACf,IAAI,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,IAAI,EAAE,CAAC,EAAE,GAAG,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,GAC5D,CACc,EAElB,KAAK,EACJ,oBAAC,mBAAmB,IACnB,MAAM,EAAE,UAAU,EAClB,QAAQ,EAAE,UAAU,KAAK,aAAa,IAAI,CAAC,IAAI,CAAC,QAAQ,EACxD,QAAQ,EAAE,CAAC,UAAU,EAAE,EAAE;oBACxB,aAAa,CAAC,UAAU,CAAC,CAAC;oBAC1B,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE;wBACvB,IAAI,EAAE,EAAE,UAAU,EAAE;wBACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;4BACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;4BAC7B,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;wBAChC,CAAC;qBACD,CAAC,CAAC;gBACJ,CAAC,GACA,IAEC,KAAK,CAAC,WAAW,EACpB,CACF,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
@@ -9,11 +9,11 @@ import { useTask, useTaskStore } from "../../../../data/task";
|
|
9
9
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
10
10
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
11
11
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
12
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
12
13
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
13
|
-
import FlagIcon from "@voplus/morpho-document/es/controls/
|
14
|
+
import FlagIcon from "@voplus/morpho-document/es/controls/FlagIcon";
|
14
15
|
import TaskAnalyticsDataIcon from "../../reports/TaskAnalyticsDataIcon";
|
15
16
|
import TaskEstimatedTime from "../TaskEstimatedTime";
|
16
|
-
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
17
17
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
18
18
|
import classnames from "classnames";
|
19
19
|
import { observe } from "@voplus/morpho-ui";
|
@@ -24,11 +24,11 @@ const SubTaskItem = (props) => {
|
|
24
24
|
const { user } = useApplicationContext();
|
25
25
|
const taskStore = useTaskStore();
|
26
26
|
const [state] = useState(new State(id, taskStore));
|
27
|
-
|
27
|
+
state.task = useTask(id, {
|
28
28
|
reload: !!reload,
|
29
29
|
includes: "tags,versions",
|
30
30
|
});
|
31
|
-
state.
|
31
|
+
// const [taskStatus, setTaskStatus] = useState(state.task.taskStatus);
|
32
32
|
useLayoutEffect(() => {
|
33
33
|
runInAction(() => (state.members = state.taskMembers));
|
34
34
|
}, []);
|
@@ -42,17 +42,17 @@ const SubTaskItem = (props) => {
|
|
42
42
|
React.createElement(UserQuickIcon, { id: id }),
|
43
43
|
React.createElement(TaskAnalyticsDataIcon, { id: id, className: "data-icon" })),
|
44
44
|
memberAlign === "block" && (React.createElement(AvatarList, { visible: state.isHover, organizationId: user.info.organizationId, buttonText: state.editable ? "Ok" : "Save", maxCount: 3, multiple: true, list: state.members, editable: state.editable || (state.isHover && !!state.taskMembers.length), className: "member-align-block", onChange: state.onChange }))), tools: React.createElement(React.Fragment, null,
|
45
|
-
memberAlign !== "block" && (React.createElement("div", { className: "sub-task-members", onMouseOver: () =>
|
45
|
+
memberAlign !== "block" && (React.createElement("div", { className: "sub-task-members", onMouseOver: () => (state.isHover = !multiple && !state.editable) },
|
46
46
|
React.createElement(AvatarList, { visible: state.isHover, organizationId: user.info.organizationId, buttonText: state.editable ? "Ok" : "Save", maxCount: 3, multiple: true, list: state.members, editable: state.editable || state.isHover, onChange: state.onChange }))),
|
47
47
|
state.editable ? (React.createElement("div", null,
|
48
48
|
React.createElement(Button, { shape: "circle", onClick: () => state.undo() },
|
49
49
|
React.createElement(FAIcon, { icon: faUndo })),
|
50
50
|
React.createElement(Button, { type: "primary", ghost: true, shape: "circle", disabled: !state.hasChanges, loading: state.loading, className: "margin-left-10", onClick: () => state.save() },
|
51
|
-
React.createElement(FAIcon, { icon: faSave })))) : (React.createElement(
|
51
|
+
React.createElement(FAIcon, { icon: faSave })))) : (React.createElement(DocumentStatusLabel, { status: state.task.taskStatus, editable: state.task.taskStatus !== "NotAssigned" || !state.task.readonly, onChange: (TaskStatus) => state.onEdit(TaskStatus), className: classnames("task-status-label", { hide: state.isHover }) })),
|
52
52
|
React.createElement("div", { className: classnames("hover-operate-icon", {
|
53
53
|
show: state.isHover,
|
54
54
|
}) },
|
55
|
-
React.createElement(ToolBar, { id: id,
|
55
|
+
React.createElement(ToolBar, { id: id, menuProps: { size: "middle" } },
|
56
56
|
React.createElement(Open, { size: "middle", url: `/tasks/${id}` }),
|
57
57
|
React.createElement(Edit, { size: "middle", disabled: state.task.readonly, action: () => state.startEdit() }),
|
58
58
|
React.createElement(Archive, { size: "middle" })))) })));
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"SubTaskItem.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/SubTaskItem.tsx"],"names":[],"mappings":"AAAA,OAAO,oBAAoB,CAAC;AAE5B,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,qDAAqD,CAAC;AAC1F,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,eAAe,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACzD,OAAO,EAAE,KAAK,EAAiB,MAAM,SAAS,CAAC;AA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EAAE,IAAI,EAAE,KAAK,CAAC,OAAO,EAAE,CAAC,GAClE,CACF;YACD,6BACC,SAAS,EAAE,UAAU,CAAC,oBAAoB,EAAE;oBAC3C,IAAI,EAAE,KAAK,CAAC,OAAO;iBACnB,CAAC;gBAEF,oBAAC,OAAO,IAAC,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;oBAC7C,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,GAAG,EAAE,UAAU,EAAE,EAAE,GAAI;oBAC3C,oBAAC,IAAI,IAAC,IAAI,EAAC,QAAQ,EAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,SAAS,EAAE,GAAI;oBACtF,oBAAC,OAAO,IAAC,IAAI,EAAC,QAAQ,GAAG,CAChB,CACL,CACU,GAEjB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
@@ -9,6 +9,8 @@ export declare type TaskItemProps = {
|
|
9
9
|
multiple?: boolean;
|
10
10
|
/** AvatarList 显示位置 */
|
11
11
|
memberAlign?: "center" | "block";
|
12
|
+
/** */
|
13
|
+
isMeeting?: boolean;
|
12
14
|
connectDragSource?: ConnectDragSource;
|
13
15
|
/** Header props */
|
14
16
|
headerProps?: Partial<DocumentHeaderProps>;
|
@@ -36,14 +38,13 @@ export declare class State {
|
|
36
38
|
/** MouseOver of sub task */
|
37
39
|
isHover: boolean;
|
38
40
|
constructor(id: string, taskStore: TaskStore);
|
39
|
-
update(task: ITask): void;
|
40
41
|
startEdit: () => void;
|
41
42
|
save: () => Promise<void>;
|
42
43
|
/** task delete */
|
43
44
|
onDelete: () => Promise<void>;
|
44
45
|
undo(): void;
|
45
46
|
onChange: (ids: string[], members: IUnit[]) => Promise<void>;
|
46
|
-
onEdit(TaskStatus:
|
47
|
+
onEdit(TaskStatus: "NotAssigned" | "NotStarted" | "InProgress" | "Done"): Promise<void>;
|
47
48
|
get childMembers(): {
|
48
49
|
disabled: boolean;
|
49
50
|
id: string;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, computed, makeObservable, observable,
|
2
|
+
import { action, computed, makeObservable, observable, toJS } from "mobx";
|
3
3
|
import { clone, isEqual } from "lodash-es";
|
4
4
|
import { message } from "@voplus/antd";
|
5
5
|
export class State {
|
@@ -127,7 +127,7 @@ export class State {
|
|
127
127
|
value: async (ids, members) => {
|
128
128
|
if (!this.editable) {
|
129
129
|
await this.taskStore.edit(this.id, { data: { MemberIds: ids }, error: "message" });
|
130
|
-
|
130
|
+
this.members = this.taskMembers;
|
131
131
|
}
|
132
132
|
else {
|
133
133
|
this.ids = ids;
|
@@ -137,9 +137,6 @@ export class State {
|
|
137
137
|
});
|
138
138
|
makeObservable(this);
|
139
139
|
}
|
140
|
-
update(task) {
|
141
|
-
this.task = task;
|
142
|
-
}
|
143
140
|
undo() {
|
144
141
|
this.editable = false;
|
145
142
|
this.members = this.taskMembers;
|
@@ -209,9 +206,6 @@ __decorate([
|
|
209
206
|
__decorate([
|
210
207
|
observable
|
211
208
|
], State.prototype, "isHover", void 0);
|
212
|
-
__decorate([
|
213
|
-
action
|
214
|
-
], State.prototype, "update", null);
|
215
209
|
__decorate([
|
216
210
|
action
|
217
211
|
], State.prototype, "startEdit", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskItem/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,M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C,CAAC;QAC3F,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,cAAc,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/D,MAAM,YAAY,GAAG,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnC,MAAM,YAAY,GAAG;YACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACtB,GAAG,EAAE,IAAI,CAAC,GAAG;SACb,CAAC;QACF,OAAO,CAAC,OAAO,CAAC,YAAY,EAAE,YAAY,CAAC,CAAC;IAC7C,CAAC;CACD;AAzGY;IAAX,UAAU;mCAAoB;AAEnB;IAAX,UAAU;kCAA2B;AAE1B;IAAX,UAAU;sCAA4B;AAE3B;IAAX,UAAU;mCAAkB;AAEjB;IAAX,UAAU;uCAA6B;AAE5B;IAAX,UAAU;6CAA2B;AAE1B;IAAX,UAAU;uCAAyB;AAExB;IAAX,UAAU;sCAAwB;AACvB;IAAX,UAAU;wCAAuB;AAEtB;IAAX,UAAU;sCAAwB;AAOnC;IADC,MAAM;wCAML;AAGF;IADC,MAAM;mCAUL;AAIF;IADC,MAAM;uCAGL;AAIF;IAFC,MAAM;iCAKN;AAED;IADC,MAAM;uCASL;AAGF;IAFC,MAAM;mCAYN;AAGD;IADC,QAAQ;yCAQR;AAED;IADC,QAAQ;wCAGR;AAGD;IADC,QAAQ;uCAWR"}
|
@@ -8,13 +8,12 @@ import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
|
8
8
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
9
9
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
10
10
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
11
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
11
12
|
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
12
13
|
import SubTaskList from "../SubTaskList";
|
13
14
|
import TaskAnalyticsDataIcon from "../../reports/TaskAnalyticsDataIcon";
|
14
15
|
import TaskEstimatedTime from "../TaskEstimatedTime";
|
15
|
-
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
16
16
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
17
|
-
import { autorun } from "mobx";
|
18
17
|
import { observe } from "@voplus/morpho-ui";
|
19
18
|
import { useApplicationContext } from "@voplus/morpho-data";
|
20
19
|
const TaskPropertiesView = (props) => {
|
@@ -24,7 +23,9 @@ const TaskPropertiesView = (props) => {
|
|
24
23
|
const taskStore = useTaskStore();
|
25
24
|
const [taskStatus, setTaskStatus] = useState(task.taskStatus);
|
26
25
|
const [loaded, setLoaded] = useState(true);
|
27
|
-
useEffect(() =>
|
26
|
+
useEffect(() => {
|
27
|
+
setTaskStatus(task.taskStatus);
|
28
|
+
}, [task.taskStatus]);
|
28
29
|
return observe(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
29
30
|
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, className: "task-properties-view-header", quickDataBar: React.createElement(React.Fragment, null,
|
30
31
|
React.createElement("div", null,
|
@@ -46,11 +47,11 @@ const TaskPropertiesView = (props) => {
|
|
46
47
|
taskStore.edit(id, { data: { MemberIds: ids }, error: "message" });
|
47
48
|
} })), tools: React.createElement("div", { className: "tools-bar" },
|
48
49
|
React.createElement("div", null,
|
49
|
-
React.createElement(ToolBar, { id: id,
|
50
|
+
React.createElement(ToolBar, { id: id, menuProps: { closeAside: true } },
|
50
51
|
React.createElement(Reload, { action: onReload }),
|
51
52
|
React.createElement(Open, { url: `/tasks/${id}` }),
|
52
53
|
React.createElement(Archive, null))),
|
53
|
-
React.createElement(
|
54
|
+
React.createElement(DocumentStatusLabel, { status: taskStatus, editable: taskStatus !== "NotAssigned" || !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus), className: "margin-top-10" })), descriptionVisible: false }),
|
54
55
|
React.createElement(DocumentTabs, { id: id, exclude: ["Task"], details: React.createElement("div", { className: "task-properties-view" },
|
55
56
|
task.loading ? (React.createElement("div", { className: "task-description" },
|
56
57
|
React.createElement(Skeleton, { active: true }),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,aAAa,GACb,MAAM,gDAAgD,CAAC;AACxD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAE9D,OAAO,UAAU,MAAM,kDAAkD,CAAC;AAC1E,OAAO,WAAW,MAAM,iDAAiD,CAAC;AAC1E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,qBAAqB,MAAM,qCAAqC,CAAC;AACxE,OAAO,iBAAiB,MAAM,sBAAsB,CAAC;AACrD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EACN,eAAe,EACf,gBAAgB,EAChB,a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AC,CAAC,CAAC,CACf,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,QAAQ,IAAC,MAAM,SAAG;oBAAC,GAAG,CAClB,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,GACtB,CACF;gBAED,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,KAAK,UAAU,GAAI,CAC9D,GAEN,CACc,CACjB,CACI,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;IAED,2BAA2B;IAC3B,KAAK,UAAU,MAAM,CAAC,UAAe;QACpC,aAAa,CAAC,UAAU,CAAC,CAAC;QAC1B,MAAM,SAAS,CAAC,IAAI,CAAC,EAAE,EAAE;YACxB,IAAI,EAAE,EAAE,UAAU,EAAE;YACpB,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;gBACvB,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;gBAC7B,aAAa,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;YAChC,CAAC;SACD,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -5,11 +5,11 @@ import { useTask, useTaskStore } from "../../../../data/task";
|
|
5
5
|
import AvatarList from "@voplus/morpho-document/es/components/AvatarList";
|
6
6
|
import DataIconBar from "@voplus/morpho-document/es/controls/DataIconBar";
|
7
7
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
8
|
+
import DocumentStatusLabel from "@voplus/morpho-document/es/controls/DocumentStatusLabel";
|
8
9
|
import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
|
9
10
|
import TaskAnalyticsDataIcon from "../../reports/TaskAnalyticsDataIcon";
|
10
11
|
import TaskDescription from "../TaskDescription";
|
11
12
|
import TaskEstimatedTime from "../TaskEstimatedTime";
|
12
|
-
import TaskStatusLabel from "../../controls/TaskStatusLabel";
|
13
13
|
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
14
14
|
import { message } from "@voplus/antd";
|
15
15
|
import { observe } from "@voplus/morpho-ui";
|
@@ -50,7 +50,7 @@ const TaskQuickViewDialog = (props) => {
|
|
50
50
|
React.createElement(Reload, { action: onReload }),
|
51
51
|
React.createElement(Open, { url: `/tasks/${id}` }),
|
52
52
|
React.createElement(Archive, null)),
|
53
|
-
React.createElement(
|
53
|
+
React.createElement(DocumentStatusLabel, { status: taskStatus, editable: taskStatus !== "NotAssigned" || !task.readonly, onChange: (TaskStatus) => onEdit(TaskStatus), className: "margin-top-5" })))) }, loaded && React.createElement(TaskDescription, { id: props.id }))));
|
54
54
|
/** reload data */
|
55
55
|
function onReload() {
|
56
56
|
setLoaded(false);
|