@voplus/morpho-workspace 1.0.0-dev41 → 1.0.0-dev43
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/components/AvatarList/index.js +19 -11
- package/es/components/AvatarList/index.js.map +1 -1
- package/es/components/AvatarList/index.less +13 -4
- package/es/components/AvatarList/state.d.ts +1 -0
- package/es/components/AvatarList/state.js +4 -0
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/PageListView/index.d.ts +1 -7
- package/es/components/PageListView/index.js +16 -63
- package/es/components/PageListView/index.js.map +1 -1
- package/es/components/PageListView/index.less +3 -64
- package/es/components/PageListView/state.d.ts +0 -3
- package/es/components/PageListView/state.js +0 -12
- package/es/components/PageListView/state.js.map +1 -1
- package/es/components/ToolBar/index.d.ts +4 -1
- package/es/components/ToolBar/index.js +17 -6
- package/es/components/ToolBar/index.js.map +1 -1
- package/es/components/ToolBar/index.less +4 -1
- package/es/controls/FlagIcon/index.d.ts +2 -1
- package/es/controls/FlagIcon/index.js +13 -3
- package/es/controls/FlagIcon/index.js.map +1 -1
- package/es/data/board/BoardStore.d.ts +21 -0
- package/es/data/board/BoardStore.js +39 -0
- package/es/data/board/BoardStore.js.map +1 -0
- package/es/data/board/hooks.d.ts +12 -0
- package/es/data/board/hooks.js +24 -0
- package/es/data/board/hooks.js.map +1 -0
- package/es/data/board/index.d.ts +4 -0
- package/es/data/board/index.js +3 -0
- package/es/data/board/index.js.map +1 -0
- package/es/data/board/interfaces.d.ts +25 -0
- package/es/data/board/interfaces.js +1 -0
- package/es/data/board/interfaces.js.map +1 -0
- package/es/data/board/mock.d.ts +3 -0
- package/es/data/board/mock.js +37 -0
- package/es/data/board/mock.js.map +1 -0
- package/es/data/board/types.d.ts +14 -0
- package/es/data/board/types.js +1 -0
- package/es/data/board/types.js.map +1 -0
- package/es/data/meeting/interfaces.d.ts +1 -0
- package/es/data/task/interfaces.d.ts +1 -0
- package/es/modules/BoardView/components/BoardColumn/index.d.ts +5 -2
- package/es/modules/BoardView/components/BoardColumn/index.js +49 -224
- package/es/modules/BoardView/components/BoardColumn/index.js.map +1 -1
- package/es/modules/BoardView/components/BoardColumn/index.less +49 -108
- package/es/modules/BoardView/components/BoardColumn/state.d.ts +11 -0
- package/es/modules/BoardView/components/BoardColumn/state.js +38 -0
- package/es/modules/BoardView/components/BoardColumn/state.js.map +1 -0
- package/es/modules/BoardView/components/BoardList/index.d.ts +5 -0
- package/es/modules/BoardView/components/BoardList/index.js +35 -0
- package/es/modules/BoardView/components/BoardList/index.js.map +1 -0
- package/es/modules/BoardView/components/BoardList/index.less +39 -0
- package/es/modules/BoardView/components/BoardList/state.d.ts +7 -0
- package/es/modules/BoardView/components/BoardList/state.js +23 -0
- package/es/modules/BoardView/components/BoardList/state.js.map +1 -0
- package/es/modules/BoardView/components/NewTaskForm/index.d.ts +11 -0
- package/es/modules/BoardView/components/NewTaskForm/index.js +66 -0
- package/es/modules/BoardView/components/NewTaskForm/index.js.map +1 -0
- package/es/modules/BoardView/components/NewTaskForm/index.less +91 -0
- package/es/modules/BoardView/components/NewTaskForm/state.d.ts +24 -0
- package/es/modules/BoardView/components/NewTaskForm/state.js +37 -0
- package/es/modules/BoardView/components/NewTaskForm/state.js.map +1 -0
- package/es/modules/BoardView/components/TaskCard/index.d.ts +4 -1
- package/es/modules/BoardView/components/TaskCard/index.js +113 -33
- package/es/modules/BoardView/components/TaskCard/index.js.map +1 -1
- package/es/modules/BoardView/components/TaskCard/index.less +55 -19
- package/es/modules/BoardView/components/TaskCard/state.d.ts +15 -0
- package/es/modules/BoardView/components/TaskCard/state.js +54 -0
- package/es/modules/BoardView/components/TaskCard/state.js.map +1 -0
- package/es/modules/BoardView/components/TaskList/index.d.ts +10 -0
- package/es/modules/BoardView/components/TaskList/index.js +45 -0
- package/es/modules/BoardView/components/TaskList/index.js.map +1 -0
- package/es/modules/BoardView/components/TaskList/state.d.ts +7 -0
- package/es/modules/BoardView/components/TaskList/state.js +23 -0
- package/es/modules/BoardView/components/TaskList/state.js.map +1 -0
- package/es/modules/BoardView/pages/BoardViewList/index.d.ts +2 -2
- package/es/modules/BoardView/pages/BoardViewList/index.js +13 -11
- package/es/modules/BoardView/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/BoardView/pages/BoardViewRoutes.js +1 -1
- package/es/modules/BoardView/pages/BoardViewRoutes.js.map +1 -1
- package/es/modules/calendar/CalendarRoutes.d.ts +11 -0
- package/es/modules/calendar/CalendarRoutes.js +25 -0
- package/es/modules/calendar/CalendarRoutes.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.d.ts +7 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js +193 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.less +144 -0
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +3 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js +12 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js.map +1 -0
- package/es/modules/calendar/pages/CalendarWeek/index.d.ts +0 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js +1 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js.map +1 -0
- package/es/modules/meeting/MeetingRoutes.js +2 -2
- package/es/modules/meeting/MeetingRoutes.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +4 -4
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +1 -2
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +8 -10
- package/es/modules/meeting/components/AgendaList/index.js +23 -18
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.less +4 -35
- package/es/modules/meeting/components/AgendaList/state.d.ts +1 -1
- package/es/modules/meeting/components/AgendaList/state.js +2 -2
- package/es/modules/meeting/components/MeetingDescription/index.d.ts +6 -0
- package/es/modules/meeting/components/MeetingDescription/index.js +26 -0
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingDescription/index.less +12 -0
- package/es/modules/meeting/components/MeetingDetail/index.js +24 -45
- package/es/modules/meeting/components/MeetingDetail/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +10 -0
- package/es/modules/meeting/components/MeetingHeader/index.js +90 -0
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingHeader/index.less +26 -0
- package/es/modules/meeting/components/MeetingItem/index.d.ts +0 -1
- package/es/modules/meeting/components/MeetingItem/index.js +5 -54
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.less +7 -81
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.d.ts +7 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +13 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -0
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.less +0 -0
- package/es/modules/meeting/pages/MeetingList/index.js +40 -0
- package/es/modules/meeting/pages/MeetingList/index.js.map +1 -0
- package/es/modules/meeting/{components → pages}/MeetingList/state.d.ts +2 -0
- package/es/modules/meeting/{components → pages}/MeetingList/state.js +4 -0
- package/es/modules/meeting/pages/MeetingList/state.js.map +1 -0
- package/es/modules/meeting/pages/MeetingTabView/index.js +26 -38
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.less +4 -0
- package/es/modules/tasks/TasksRoutes.d.ts +0 -6
- package/es/modules/tasks/TasksRoutes.js +3 -11
- package/es/modules/tasks/TasksRoutes.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +30 -10
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.less +3 -67
- package/es/modules/tasks/components/TaskDescription/index.d.ts +6 -0
- package/es/modules/tasks/components/TaskDescription/index.js +33 -0
- package/es/modules/tasks/components/TaskDescription/index.js.map +1 -0
- package/es/modules/tasks/components/TaskDescription/index.less +11 -0
- package/es/modules/tasks/components/TaskDetail/index.js +21 -57
- package/es/modules/tasks/components/TaskDetail/index.js.map +1 -1
- package/es/modules/tasks/components/TaskHeader/index.d.ts +10 -0
- package/es/modules/tasks/components/TaskHeader/index.js +46 -0
- package/es/modules/tasks/components/TaskHeader/index.js.map +1 -0
- package/es/modules/tasks/components/TaskHeader/index.less +6 -0
- package/es/modules/tasks/components/TaskItem/TaskItem.js +94 -48
- package/es/modules/tasks/components/TaskItem/TaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/index.less +6 -2
- package/es/modules/tasks/components/TaskItem/state.d.ts +2 -0
- package/es/modules/tasks/components/TaskItem/state.js +8 -0
- package/es/modules/tasks/components/TaskItem/state.js.map +1 -1
- package/es/modules/tasks/components/TaskQuickViewDialog/index.d.ts +7 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js +13 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.js.map +1 -0
- package/es/modules/tasks/components/TaskQuickViewDialog/index.less +7 -0
- package/es/modules/tasks/pages/TaskList/index.js +73 -0
- package/es/modules/tasks/pages/TaskList/index.js.map +1 -0
- package/es/modules/tasks/{components → pages}/TaskList/state.d.ts +2 -1
- package/es/modules/tasks/pages/TaskList/state.js.map +1 -0
- package/es/modules/tasks/pages/TaskTabView/index.js +34 -29
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.less +3 -3
- package/es/modules/tasks/pages/TaskTabView/state.d.ts +0 -1
- package/es/modules/tasks/pages/TaskTabView/state.js +0 -4
- package/es/modules/tasks/pages/TaskTabView/state.js.map +1 -1
- package/package.json +16 -10
- package/es/modules/BoardView/components/AddBoard/index.d.ts +0 -3
- package/es/modules/BoardView/components/AddBoard/index.js +0 -24
- package/es/modules/BoardView/components/AddBoard/index.js.map +0 -1
- package/es/modules/BoardView/components/AddBoard/index.less +0 -48
- package/es/modules/meeting/components/MeetingList/index.js +0 -36
- package/es/modules/meeting/components/MeetingList/index.js.map +0 -1
- package/es/modules/meeting/components/MeetingList/state.js.map +0 -1
- package/es/modules/meeting/pages/MeetingListView/index.d.ts +0 -3
- package/es/modules/meeting/pages/MeetingListView/index.js +0 -8
- package/es/modules/meeting/pages/MeetingListView/index.js.map +0 -1
- package/es/modules/tasks/components/TaskList/index.js +0 -76
- package/es/modules/tasks/components/TaskList/index.js.map +0 -1
- package/es/modules/tasks/components/TaskList/state.js.map +0 -1
- package/es/modules/tasks/pages/TaskDefaultView/index.d.ts +0 -3
- package/es/modules/tasks/pages/TaskDefaultView/index.js +0 -63
- package/es/modules/tasks/pages/TaskDefaultView/index.js.map +0 -1
- package/es/modules/tasks/pages/TaskListView/index.d.ts +0 -3
- package/es/modules/tasks/pages/TaskListView/index.js +0 -9
- package/es/modules/tasks/pages/TaskListView/index.js.map +0 -1
- /package/es/modules/meeting/{components → pages}/MeetingList/index.d.ts +0 -0
- /package/es/modules/tasks/{components → pages}/TaskList/index.d.ts +0 -0
- /package/es/modules/tasks/{components → pages}/TaskList/state.js +0 -0
@@ -0,0 +1,40 @@
|
|
1
|
+
import React, { useEffect, useState } from "react";
|
2
|
+
import { useTabItem } from "@voplus/morpho-data";
|
3
|
+
import { ListView } from "@voplus/morpho-ui";
|
4
|
+
import { toJS } from "mobx";
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
6
|
+
import { useMeetingListEffect, useMeetingStore } from "../../../../data/meeting";
|
7
|
+
import MeetingDetail from "../../components/MeetingDetail";
|
8
|
+
import MeetingItem from "../../components/MeetingItem";
|
9
|
+
import NewMeetingForm from "../../components/NewMeetingForm";
|
10
|
+
import { State } from "./state";
|
11
|
+
const MeetingList = () => {
|
12
|
+
const tab = useTabItem();
|
13
|
+
tab.title = "Meetings";
|
14
|
+
const meetings = useMeetingStore();
|
15
|
+
const [state] = useState(new State(meetings));
|
16
|
+
useEffect(() => {
|
17
|
+
state.subscribeOnMeetingCreateCallback();
|
18
|
+
}, []);
|
19
|
+
useObserver(() => {
|
20
|
+
useMeetingListEffect(list => {
|
21
|
+
state.meetings = list;
|
22
|
+
state.loading = false;
|
23
|
+
}, { Sort: toJS(state.data), Page: { Page: state.page, PageSize: 20 } });
|
24
|
+
useEffect(() => {
|
25
|
+
state.page = 1;
|
26
|
+
state.meetings = [];
|
27
|
+
state.loading = true;
|
28
|
+
}, [JSON.stringify(state.data)]);
|
29
|
+
});
|
30
|
+
const onSort = (data) => {
|
31
|
+
state.data = data;
|
32
|
+
};
|
33
|
+
const loadData = () => {
|
34
|
+
state.loading = true;
|
35
|
+
state.page = state.page + 1;
|
36
|
+
};
|
37
|
+
return useObserver(() => (React.createElement(ListView, { reUseFilter: true, data: state.meetings, loading: state.loading, formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, null), defaultView: (id) => React.createElement(MeetingDetail, { id: id }), renderItem: ({ item }) => React.createElement(MeetingItem, { id: item.id }), loadMore: loadData, onSort: onSort })));
|
38
|
+
};
|
39
|
+
export default MeetingList;
|
40
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EA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AAG,CAAC,IAAS,EAAE,EAAE;QAC5B,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IACnB,CAAC,CAAC;IACF,MAAM,QAAQ,GAAG,GAAG,EAAE;QACrB,KAAK,CAAC,OAAO,GAAG,IAAI,CAAC;QACrB,KAAK,CAAC,IAAI,GAAG,KAAK,CAAC,IAAI,GAAG,CAAC,CAAC;IAC7B,CAAC,CAAC;IACF,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,QAAQ,IACR,WAAW,QACX,IAAI,EAAE,KAAK,CAAC,QAAQ,EACpB,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,aAAa,EAAC,aAAa,EAC3B,QAAQ,EAAE,oBAAC,cAAc,OAAG,EAC5B,WAAW,EAAE,CAAC,EAAU,EAAE,EAAE,CAAC,oBAAC,aAAa,IAAC,EAAE,EAAE,EAAE,GAAI,EACtD,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,oBAAC,WAAW,IAAC,EAAE,EAAE,IAAI,CAAC,EAAE,GAAI,EAC3D,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,GACb,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { SortParameters } from "@voplus/morpho-data/es/types";
|
1
2
|
import { IMeeting, MeetingStore } from "../../../../data/meeting";
|
2
3
|
export declare class State {
|
3
4
|
private _store;
|
@@ -5,6 +6,7 @@ export declare class State {
|
|
5
6
|
meetings: IMeeting[];
|
6
7
|
loading: boolean;
|
7
8
|
page: number;
|
9
|
+
data: SortParameters;
|
8
10
|
onMeetingCreated: (s: MeetingStore, t: IMeeting) => void;
|
9
11
|
onMeetingDeleted: (s: MeetingStore, t: IMeeting) => void;
|
10
12
|
subscribeOnMeetingCreateCallback: () => () => void;
|
@@ -6,6 +6,7 @@ export class State {
|
|
6
6
|
this.meetings = [];
|
7
7
|
this.loading = true;
|
8
8
|
this.page = 1;
|
9
|
+
this.data = {};
|
9
10
|
this.onMeetingCreated = (s, t) => {
|
10
11
|
this.meetings.push(t);
|
11
12
|
};
|
@@ -31,4 +32,7 @@ __decorate([
|
|
31
32
|
__decorate([
|
32
33
|
observable
|
33
34
|
], State.prototype, "page", void 0);
|
35
|
+
__decorate([
|
36
|
+
observable
|
37
|
+
], State.prototype, "data", void 0);
|
34
38
|
//# sourceMappingURL=state.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IACjB,YAA2B,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;QAC5B,aAAQ,GAAe,EAAE,CAAC;QAC1B,YAAO,GAAY,IAAI,CAAC;QACxB,SAAI,GAAW,CAAC,CAAC;QACjB,SAAI,GAAmB,EAAE,CAAC;QAEtC,qBAAgB,GAAG,CAAC,CAAe,EAAE,CAAW,EAAE,EAAE;YAC1D,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACvB,CAAC,CAAC;QAEK,qBAAgB,GAAG,CAAC,CAAe,EAAE,CAAW,EAAE,EAAE;YAC1D,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;QACtE,CAAC,CAAC;QAEK,qCAAgC,GAAG,GAAG,EAAE;YAC9C,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAC9D,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,SAAS,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YAC9D,OAAO,GAAG,EAAE;gBACX,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;gBAChE,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,WAAW,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;YACjE,CAAC,CAAC;QACH,CAAC,CAAC;IArBgD,CAAC;CAsBnD;AArBY;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;sCAAgC;AAC/B;IAAX,UAAU;mCAAyB;AACxB;IAAX,UAAU;mCAAkC"}
|
@@ -1,72 +1,60 @@
|
|
1
1
|
import React, { useContext, useEffect, useState } from "react";
|
2
|
-
import {
|
2
|
+
import { Icon, Skeleton, Tabs } from "@voplus/antd";
|
3
3
|
import Comment from "@voplus/morpho-collaboration/es/components/Comment";
|
4
4
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
5
5
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
6
6
|
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
7
7
|
import { useObserver } from "mobx-react-lite";
|
8
8
|
import ActivityLog from "../../../../components/ActivityLog";
|
9
|
-
import
|
10
|
-
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
9
|
+
import { useTabItem } from "@voplus/morpho-data";
|
11
10
|
import { __RouterContext } from "react-router";
|
12
11
|
import { useMeeting, useMeetingStore } from "../../../../data/meeting";
|
13
12
|
import "../../../../styles/common.less";
|
14
13
|
import AgendaList from "../../components/AgendaList";
|
15
|
-
import
|
14
|
+
import MeetingHeader from "../../components/MeetingHeader";
|
16
15
|
import styles from "./index.less";
|
17
|
-
import { useDocumentStore } from "@voplus/morpho-document";
|
18
16
|
const MeetingTabView = () => {
|
19
17
|
const { match } = useContext(__RouterContext);
|
20
18
|
const id = match.params.id;
|
21
|
-
const
|
19
|
+
const [reload, setReload] = useState(true);
|
20
|
+
const meeting = useMeeting(id, { reload: reload });
|
22
21
|
const readonly = meeting.status === "Readonly";
|
23
22
|
const tab = useTabItem();
|
24
23
|
tab.title = "Meeting Detail";
|
25
24
|
const meetingStore = useMeetingStore();
|
26
|
-
const documentStore = useDocumentStore();
|
27
|
-
const [scrollParentRef, setScrollParentRef] = useState();
|
28
25
|
const [asideContext] = useState(AsideContent.createContext());
|
29
|
-
const
|
26
|
+
const onReLoad = () => {
|
27
|
+
setReload(!reload);
|
28
|
+
};
|
30
29
|
useEffect(() => {
|
31
30
|
asideContext.openAside(AsideElement, { span: 12 });
|
32
31
|
}, []);
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
documentStore.edit(id, { Status: "Readonly" });
|
40
|
-
};
|
41
|
-
const onUnlock = () => {
|
42
|
-
documentStore.edit(id, { Status: "Normal" });
|
43
|
-
};
|
32
|
+
useObserver(() => {
|
33
|
+
useEffect(() => {
|
34
|
+
if (!reload)
|
35
|
+
setReload(true);
|
36
|
+
}, [reload]);
|
37
|
+
});
|
44
38
|
const AsideElement = (React.createElement("div", { className: "module-tab-view_aside" },
|
45
39
|
React.createElement(Tabs, { defaultActiveKey: "1" },
|
46
40
|
React.createElement(Tabs.TabPane, { tab: "Documents", key: "1" },
|
47
|
-
React.createElement(DocumentList, { id: id })),
|
41
|
+
React.createElement(DocumentList, { id: id, exclude: ["Agenda"] })),
|
48
42
|
React.createElement(Tabs.TabPane, { tab: "Comments", key: "2" },
|
49
43
|
React.createElement(Comment, { channelId: id })),
|
50
44
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "3" },
|
51
45
|
React.createElement("div", { className: "module-box" },
|
52
46
|
React.createElement(ActivityLog, { showHeader: false }))))));
|
53
|
-
return useObserver(() => (React.createElement("div", { className: "module-tab-view" },
|
54
|
-
React.createElement(
|
55
|
-
React.createElement("div", { className:
|
56
|
-
React.createElement(
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
React.createElement("div", { className: "margin-top-10" },
|
65
|
-
React.createElement(Button, { size: "small" }, "+tag")))),
|
66
|
-
React.createElement(RichTextEditor, { readOnly: readonly, editable: false, content: meeting.description, placeholder: React.createElement("span", null,
|
67
|
-
React.createElement(Icon, { type: "edit" }),
|
68
|
-
"Add Description"), onSave: v => meetingStore.edit(id, { Description: v }) }))),
|
69
|
-
React.createElement(AgendaList, { preview: true, readOnly: readonly, parentId: id }))))));
|
47
|
+
return useObserver(() => (React.createElement("div", { className: "module-tab-view" }, reload && (React.createElement(AsideContent, { context: asideContext },
|
48
|
+
React.createElement("div", { className: styles["meeting-tab-view"] },
|
49
|
+
React.createElement("div", { className: "meeting-tab-view_header" },
|
50
|
+
React.createElement(MeetingHeader, { id: id, onReLoad: onReLoad, onExpand: () => asideContext.asideContent
|
51
|
+
? asideContext.closeAside()
|
52
|
+
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
53
|
+
React.createElement(Skeleton, { loading: !meeting.loaded },
|
54
|
+
React.createElement(RichTextEditor, { readOnly: readonly, editable: false, content: meeting.description || "", placeholder: React.createElement("span", null,
|
55
|
+
React.createElement(Icon, { type: "edit" }),
|
56
|
+
"Add Description"), onSave: v => meetingStore.edit(id, { Description: v }) }))),
|
57
|
+
React.createElement(AgendaList, { preview: true, readOnly: readonly, parentId: id })))))));
|
70
58
|
};
|
71
59
|
export default MeetingTabView;
|
72
60
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,UAA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AE,YAAY;QAClC,6BAAK,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC;YACzC,6BAAK,SAAS,EAAC,yBAAyB;gBAEvC,oBAAC,aAAa,IACb,EAAE,EAAE,EAAE,EACN,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE,CACd,YAAY,CAAC,YAAY;wBACxB,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;wBAC3B,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAErD;gBAqBF,oBAAC,QAAQ,IAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;oBACjC,oBAAC,cAAc,IACd,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,OAAO,CAAC,WAAW,IAAI,EAAE,EAClC,WAAW,EACV;4BACC,oBAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG;8CAEd,EAER,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,GACrD,CACQ,CACN;YAEN,oBAAC,UAAU,IAAC,OAAO,QAAC,QAAQ,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,GAAI,CACnD,CACQ,CACf,CACI,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -12,12 +12,6 @@ declare const Routes: {
|
|
12
12
|
getUrl: (id: string) => string;
|
13
13
|
component: () => JSX.Element;
|
14
14
|
};
|
15
|
-
Tab: {
|
16
|
-
route: string;
|
17
|
-
tabPattern: RegExp;
|
18
|
-
getUrl: (id: string) => string;
|
19
|
-
component: () => JSX.Element;
|
20
|
-
};
|
21
15
|
addRoutes: () => void;
|
22
16
|
};
|
23
17
|
export default Routes;
|
@@ -1,21 +1,19 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { Route, Switch } from "react-router";
|
3
3
|
import { BaseRoutes } from "@voplus/morpho-data";
|
4
|
-
import
|
5
|
-
import TaskListView from "./pages/TaskListView";
|
4
|
+
import TaskList from "./pages/TaskList";
|
6
5
|
import TaskTabView from "./pages/TaskTabView";
|
7
6
|
const TaskRoutes = () => {
|
8
7
|
return (React.createElement(Switch, null,
|
9
8
|
React.createElement(Route, { path: Routes.TaskList.route, exact: true, component: Routes.TaskList.component }),
|
10
|
-
React.createElement(Route, { path: Routes.Task.route, exact: true, component: Routes.Task.component })
|
11
|
-
React.createElement(Route, { path: Routes.Tab.route, exact: true, component: Routes.Tab.component })));
|
9
|
+
React.createElement(Route, { path: Routes.Task.route, exact: true, component: Routes.Task.component })));
|
12
10
|
};
|
13
11
|
const Routes = {
|
14
12
|
TaskList: {
|
15
13
|
route: "/tasks",
|
16
14
|
tabPattern: RegExp("/tasks"),
|
17
15
|
getUrl: () => `/tasks`,
|
18
|
-
component:
|
16
|
+
component: TaskList
|
19
17
|
},
|
20
18
|
Task: {
|
21
19
|
route: "/tasks/:id",
|
@@ -23,12 +21,6 @@ const Routes = {
|
|
23
21
|
getUrl: (id) => `/tasks/${id}`,
|
24
22
|
component: TaskTabView
|
25
23
|
},
|
26
|
-
Tab: {
|
27
|
-
route: "/tasks/tab/:id",
|
28
|
-
tabPattern: RegExp("/tasks/tab/[^/]+"),
|
29
|
-
getUrl: (id) => `/tasks/tab/${id}`,
|
30
|
-
component: TaskDefaultView
|
31
|
-
},
|
32
24
|
addRoutes: () => {
|
33
25
|
BaseRoutes.routes.push({
|
34
26
|
name: "task",
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"TasksRoutes.js","sourceRoot":"","sources":["../../../src/modules/tasks/TasksRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EA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,CAAC,IAAI,CAAC,UAAU;YACtC,SAAS,EAAE,oBAAC,UAAU,OAAG;SACzB,CAAC,CAAC;QACH,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,WAAW;YACjB,cAAc,EAAE,MAAM,CAAC,QAAQ,CAAC,UAAU;YAC1C,SAAS,EAAE,oBAAC,UAAU,OAAG;SACzB,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -1,13 +1,9 @@
|
|
1
1
|
import classnames from "classnames";
|
2
2
|
import React, { useEffect, useRef, useState } from "react";
|
3
|
-
import
|
4
|
-
// import PageListView from "@voplus/morpho-ui/es/controls/PageListView";
|
5
|
-
import PageListView from "../../../../components/PageListView";
|
6
|
-
import SortViewDropdown from "../../../../controls/SortViewDropdown";
|
3
|
+
import { ListView } from "@voplus/morpho-ui";
|
7
4
|
import TaskItem from "../TaskItem";
|
8
5
|
import "./index.less";
|
9
6
|
import { FileStore } from "@voplus/morpho-document/es/data/FileStore/FileContext";
|
10
|
-
import FilterListDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/FilterListDropdown";
|
11
7
|
import { toJS } from "mobx";
|
12
8
|
import { useObserver } from "mobx-react-lite";
|
13
9
|
import { useTaskListEffect, useTaskStore } from "../../../../data/task";
|
@@ -45,13 +41,17 @@ const SubTaskList = (props) => {
|
|
45
41
|
state.loading = true;
|
46
42
|
state.page = state.page + 1;
|
47
43
|
};
|
44
|
+
const onMove = (ids) => {
|
45
|
+
store.onMove(ids);
|
46
|
+
};
|
48
47
|
const onSort = async (value) => {
|
49
48
|
reset();
|
50
49
|
state.data = value;
|
51
50
|
};
|
52
51
|
const onFilter = async (value) => {
|
53
52
|
reset();
|
54
|
-
|
53
|
+
const { status, assignee, created, labels, dueDate } = value;
|
54
|
+
state.filters = status;
|
55
55
|
};
|
56
56
|
// order by sub task
|
57
57
|
const moveAfter = async (id, afterId, list) => {
|
@@ -70,7 +70,7 @@ const SubTaskList = (props) => {
|
|
70
70
|
state.page = 1;
|
71
71
|
state.tasks = [];
|
72
72
|
state.loading = true;
|
73
|
-
ref.current
|
73
|
+
// ref.current!.reset();
|
74
74
|
};
|
75
75
|
const scrollParentRef = useRef();
|
76
76
|
const ref = useRef();
|
@@ -81,9 +81,29 @@ const SubTaskList = (props) => {
|
|
81
81
|
}, [props.parentId]);
|
82
82
|
return useObserver(() => (React.createElement(React.Fragment, null,
|
83
83
|
React.createElement("div", { className: classnames("sub-task-list", props.className) },
|
84
|
-
!state.showMore && (React.createElement(
|
85
|
-
|
86
|
-
|
84
|
+
!state.showMore && (React.createElement(ListView
|
85
|
+
// ref={ref}
|
86
|
+
, {
|
87
|
+
// ref={ref}
|
88
|
+
renderId: props.parentId, addAble: !readonly, subTitle: "Sub-Tasks", showMultiple: true, filterView: true, data: state.tasks, page: state.page, loading: state.loading, loadMore: loadMore, onDelete: onDelete, onMove: onMove, onSort: onSort, onFilter: onFilter, onAdd: () => (state.addAble = true), moveAfter: moveAfter, renderItem: ({ item, index, connectDragSource, multiple }) => (React.createElement(TaskItem, { type: "sub", id: item.id, index: index, connectDragSource: connectDragSource, multiple: multiple, readonly: readonly })) })
|
89
|
+
/* {(list: any[], multiple: boolean) => (
|
90
|
+
<SortDnD
|
91
|
+
list={list}
|
92
|
+
moveAfter={moveAfter}
|
93
|
+
text={(task: any, index: number, connectDragSource: any) => (
|
94
|
+
<TaskItem
|
95
|
+
type="sub"
|
96
|
+
id={task.id}
|
97
|
+
index={index}
|
98
|
+
connectDragSource={connectDragSource}
|
99
|
+
multiple={multiple}
|
100
|
+
readonly={readonly}
|
101
|
+
/>
|
102
|
+
)}
|
103
|
+
/>
|
104
|
+
)}
|
105
|
+
</ListView> */
|
106
|
+
),
|
87
107
|
state.addAble && (React.createElement(NewTaskForm, { simple: true, parentId: props.parentId, block: true, onSave: onCancel, onCancel: onCancel, onShowMore: () => (state.showMore = !state.showMore) }))))));
|
88
108
|
};
|
89
109
|
SubTaskList.defaultProps = {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/SubTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE3D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,QAAQ,MAAM,aAAa,CAAC;AAEnC,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAS,iBAAiB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AAC/E,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,KAAK,EAAoB,MAAM,SAAS,CAAC;AAElD,MAAM,WAAW,GAAG,CAAC,KAAuB,EAAE,EAAE;IAC/C,MAAM,SAAS,GAAG,YAAY,EAAE,CAAC;IACjC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC;IAC1C,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC;IAC/C,MAAM,CAAC,QAAQ,EAAE,WAAW,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC;I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,QAAQ,EAAE,KAAK,CAAC,QAAQ,EACxB,KAAK,EAAE,IAAI,EACX,MAAM,EAAE,QAAQ,EAChB,QAAQ,EAAE,QAAQ,EAClB,UAAU,EAAE,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,CAAC,KAAK,CAAC,QAAQ,CAAC,GACnD,CACF,CACI,CACU,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,WAAW,CAAC,YAAY,GAAG;IAC1B,MAAM,EAAE,IAAI;CACZ,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -5,74 +5,10 @@
|
|
5
5
|
display: flex;
|
6
6
|
flex-direction: column;
|
7
7
|
height: 100%;
|
8
|
-
.
|
9
|
-
position: relative;
|
10
|
-
display: flex;
|
11
|
-
justify-content: space-between;
|
12
|
-
align-items: center;
|
13
|
-
// padding: 2px 0 10px 0;
|
14
|
-
padding: 10px 0;
|
15
|
-
margin: 0 20px;
|
16
|
-
color: #000;
|
8
|
+
.multiple-icon-text {
|
17
9
|
font-size: 15px;
|
18
|
-
font-weight:
|
19
|
-
|
20
|
-
.multiple-icon-text {
|
21
|
-
cursor: pointer;
|
22
|
-
.ant-btn {
|
23
|
-
padding: 0 10px 0 0;
|
24
|
-
font-size: 16px;
|
25
|
-
}
|
26
|
-
}
|
27
|
-
.select-operate-btn {
|
28
|
-
.ant-btn {
|
29
|
-
padding: 0 10px;
|
30
|
-
font-style: italic;
|
31
|
-
}
|
32
|
-
.del-btn {
|
33
|
-
color: #ff4d4f;
|
34
|
-
&:hover {
|
35
|
-
color: #ff7875;
|
36
|
-
}
|
37
|
-
}
|
38
|
-
.cancel-btn {
|
39
|
-
color: #666;
|
40
|
-
&:hover {
|
41
|
-
color: @primary-color;
|
42
|
-
}
|
43
|
-
}
|
44
|
-
}
|
45
|
-
.operate-icon span {
|
46
|
-
margin-left: 10px;
|
47
|
-
cursor: pointer;
|
48
|
-
}
|
49
|
-
.plus-icon {
|
50
|
-
display: inline-block;
|
51
|
-
padding: 4px;
|
52
|
-
font-size: 13px;
|
53
|
-
line-height: 1px;
|
54
|
-
background: #1abc9c;
|
55
|
-
cursor: pointer;
|
56
|
-
}
|
57
|
-
}
|
58
|
-
.sub-task-list_header:after {
|
59
|
-
position: absolute;
|
60
|
-
content: "";
|
61
|
-
left: 0;
|
62
|
-
bottom: 0;
|
63
|
-
right: 0;
|
64
|
-
border-bottom: 1px solid @border-color-base;
|
65
|
-
}
|
66
|
-
.sub-task-list_page {
|
67
|
-
flex: 1;
|
68
|
-
// overflow-x: hidden;
|
69
|
-
padding: 10px 0 20px 0;
|
70
|
-
.task-row-item {
|
71
|
-
padding: 0 20px;
|
72
|
-
}
|
73
|
-
.select-checkbox {
|
74
|
-
padding: 5px 10px 0 0;
|
75
|
-
}
|
10
|
+
font-weight: 600;
|
11
|
+
color: #000;
|
76
12
|
}
|
77
13
|
}
|
78
14
|
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
import { faEdit } from "@fortawesome/pro-light-svg-icons";
|
2
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
3
|
+
import { Skeleton } from "@voplus/antd";
|
4
|
+
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
6
|
+
import React, { useEffect, useState } from "react";
|
7
|
+
import { useTaskStore } from "../../../../data/task";
|
8
|
+
import { useTask } from "../../../../data/task/hooks";
|
9
|
+
import SubTaskList from "../SubTaskList";
|
10
|
+
import styles from "./index.less";
|
11
|
+
const TaskDescription = (props) => {
|
12
|
+
const tasks = useTaskStore();
|
13
|
+
const id = props.id;
|
14
|
+
useEffect(() => {
|
15
|
+
task.loaded = false;
|
16
|
+
}, [id]);
|
17
|
+
useEffect(() => {
|
18
|
+
setReload(props.readonly ? true : false);
|
19
|
+
}, [props.readonly]);
|
20
|
+
const [reload, setReload] = useState(false);
|
21
|
+
const task = useTask(id, { reload: reload });
|
22
|
+
const readonly = task.status === "Readonly" ? true : false;
|
23
|
+
const [scrollParentRef, setScrollParentRef] = useState();
|
24
|
+
return useObserver(() => (React.createElement("div", { className: styles["sub-task-tab-view"], ref: ref => setScrollParentRef(ref) },
|
25
|
+
React.createElement("div", { className: "task-description" },
|
26
|
+
React.createElement(Skeleton, { loading: !task.loaded, active: true },
|
27
|
+
React.createElement(RichTextEditor, { readOnly: readonly, editable: false, defaultValue: id, content: task.description || "", placeholder: readonly ? ("No description") : (React.createElement("span", null,
|
28
|
+
React.createElement(FAIcon, { icon: faEdit }),
|
29
|
+
"Add Description")), onSave: v => tasks.edit(task.id, { Description: v }) }))),
|
30
|
+
React.createElement(SubTaskList, { parentId: id, readonly: readonly, scrollParentRef: scrollParentRef }))));
|
31
|
+
};
|
32
|
+
export default TaskDescription;
|
33
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/tasks/components/TaskDescription/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,6BAA6B,CAAC;AACtD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,eAAe,GAAG,CAAC,KAAyC,EAAE,EAAE;IACrE,MAAM,KAAK,GAAG,YAAa,EAAE,CA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IAAC,IAAI,EAAE,MAAM,GAAI;0CAElB,CACP,EAEF,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,GACnD,CACQ,CACN;QACN,oBAAC,WAAW,IAAC,QAAQ,EAAE,EAAE,EAAE,QAAQ,EAAE,QAAQ,EAAE,eAAe,EAAE,eAAe,GAAI,CAC9E,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -1,75 +1,39 @@
|
|
1
|
-
import
|
2
|
-
import { faEdit } from "@fortawesome/pro-light-svg-icons";
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import { Button, Row, Skeleton, Tabs } from "@voplus/antd";
|
1
|
+
import { Spin, Tabs } from "@voplus/antd";
|
5
2
|
import Comment from "@voplus/morpho-collaboration/es/components/Comment";
|
6
|
-
import { useDocumentStore } from "@voplus/morpho-document";
|
7
3
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
8
|
-
import ActivityLog from "../../../../components/ActivityLog";
|
9
|
-
import ToolBar from "../../../../components/ToolBar";
|
10
|
-
import SubTaskList from "../SubTaskList";
|
11
|
-
import TaskItem from "../TaskItem";
|
12
|
-
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
13
4
|
import { useObserver } from "mobx-react-lite";
|
14
|
-
import {
|
5
|
+
import React, { useEffect, useState } from "react";
|
6
|
+
import ActivityLog from "../../../../components/ActivityLog";
|
15
7
|
import { useTask } from "../../../../data/task/hooks";
|
16
|
-
|
17
|
-
import
|
18
|
-
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
19
|
-
import styles from "./index.less";
|
20
|
-
// id of the task
|
8
|
+
import TaskDescription from "../TaskDescription";
|
9
|
+
import TaskHeader from "../TaskHeader";
|
21
10
|
const TaskDetail = (props) => {
|
22
|
-
// const { match } = useContext(__RouterContext) as {
|
23
|
-
// match: match<any>;
|
24
|
-
// };
|
25
|
-
const tasks = useTaskStore();
|
26
|
-
const documents = useDocumentStore();
|
27
11
|
const id = props.id;
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
const
|
32
|
-
|
33
|
-
const readonly = task.status === "Readonly" ? true : false;
|
34
|
-
const [scrollParentRef, setScrollParentRef] = useState();
|
35
|
-
const asideContext = useAsideContentContext();
|
36
|
-
const onItemDelete = async () => {
|
37
|
-
await tasks.delete([id], { DeleteChilds: true });
|
38
|
-
asideContext.closeAside();
|
39
|
-
};
|
40
|
-
const onMove = () => {
|
41
|
-
store.onMove([id]);
|
12
|
+
const [reload, setReload] = useState(true);
|
13
|
+
const task = useTask(id, { reload: reload });
|
14
|
+
const [readonly, setReadonly] = useState();
|
15
|
+
const onChangeReadonly = (newReadonly) => {
|
16
|
+
setReadonly(newReadonly);
|
42
17
|
};
|
43
|
-
const
|
44
|
-
|
18
|
+
const onReLoad = () => {
|
19
|
+
setReload(!reload);
|
45
20
|
};
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
React.createElement(TaskItem, { type: "detail", id: task.id }),
|
53
|
-
React.createElement("div", { className: styles["task-tool-bar"] },
|
54
|
-
React.createElement(ToolBar, { id: id, size: "small", timer: true, url: `/tasks/${id}`, del: !readonly, move: !readonly, lock: task.status === "Draft" || task.status === "Normal", unlock: task.status === "Readonly", onDelete: onItemDelete, onMove: onMove, onPaste: () => store.onPaste(() => tasks.move(store.moveIds, task.id)), onLock: onLock, onUnlock: onUnlock }),
|
55
|
-
React.createElement("div", { className: "margin-top-10" },
|
56
|
-
React.createElement(Button, { size: "small" }, "+tag"))))),
|
21
|
+
useEffect(() => {
|
22
|
+
if (!reload && task.loaded)
|
23
|
+
setReload(true);
|
24
|
+
}, [reload]);
|
25
|
+
return useObserver(() => reload ? (React.createElement("div", { className: "module-detail-view" },
|
26
|
+
React.createElement(TaskHeader, { id: id, onChangeReadonly: onChangeReadonly, onReLoad: onReLoad }),
|
57
27
|
React.createElement(Tabs, { defaultActiveKey: "Details" },
|
58
28
|
React.createElement(Tabs.TabPane, { tab: "Details", key: "Details" },
|
59
|
-
React.createElement(
|
60
|
-
React.createElement("div", { className: "task-description" },
|
61
|
-
React.createElement(Skeleton, { loading: !task.loaded, active: true },
|
62
|
-
React.createElement(RichTextEditor, { readOnly: readonly, editable: false, defaultValue: id, content: task.description || "", placeholder: readonly ? ("No description") : (React.createElement("span", null,
|
63
|
-
React.createElement(FAIcon, { icon: faEdit }),
|
64
|
-
"Add Description")), onSave: v => tasks.edit(task.id, { Description: v }) }))),
|
65
|
-
React.createElement(SubTaskList, { parentId: id, readonly: readonly, scrollParentRef: scrollParentRef }))),
|
29
|
+
React.createElement(TaskDescription, { id: id, readonly: readonly })),
|
66
30
|
React.createElement(Tabs.TabPane, { tab: "Documents", key: "Documents" },
|
67
|
-
React.createElement(DocumentList, { id: id })),
|
31
|
+
React.createElement(DocumentList, { id: id, exclude: ["Task"] })),
|
68
32
|
React.createElement(Tabs.TabPane, { tab: "Comments", key: "Comments" },
|
69
33
|
React.createElement(Comment, { channelId: task.channelId })),
|
70
34
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "Activities" },
|
71
35
|
React.createElement("div", { className: "module-box" },
|
72
|
-
React.createElement(ActivityLog, null)))))));
|
36
|
+
React.createElement(ActivityLog, null)))))) : (React.createElement(Spin, null)));
|
73
37
|
};
|
74
38
|
export default TaskDetail;
|
75
39
|
//# sourceMappingURL=index.js.map
|