@voplus/morpho-workspace 1.0.0-dev24 → 1.0.0-dev26
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.d.ts +1 -2
- package/es/components/AvatarList/index.js +52 -28
- package/es/components/AvatarList/index.js.map +1 -1
- package/es/components/AvatarList/index.less +10 -1
- package/es/components/AvatarList/state.d.ts +3 -0
- package/es/components/AvatarList/state.js +12 -0
- package/es/components/AvatarList/state.js.map +1 -1
- package/es/components/PermissionModal/index.d.ts +7 -0
- package/es/components/PermissionModal/index.js +18 -0
- package/es/components/PermissionModal/index.js.map +1 -0
- package/es/components/ToolBar/index.d.ts +4 -2
- package/es/components/ToolBar/index.js +20 -29
- package/es/components/ToolBar/index.js.map +1 -1
- package/es/controls/DocumentStatusLabel/index.js +1 -1
- package/es/controls/DocumentStatusLabel/index.js.map +1 -1
- package/es/controls/SortViewDropdown/index.d.ts +2 -2
- package/es/controls/SortViewDropdown/index.js +4 -3
- package/es/controls/SortViewDropdown/index.js.map +1 -1
- package/es/controls/StarIcon/index.js +1 -1
- package/es/controls/StarIcon/index.js.map +1 -1
- package/es/data/contexts/StoreContext/index.js +3 -2
- package/es/data/contexts/StoreContext/index.js.map +1 -1
- package/es/data/meeting/AgendaStore.d.ts +3 -2
- package/es/data/meeting/AgendaStore.js.map +1 -1
- package/es/data/meeting/hooks.d.ts +10 -4
- package/es/data/meeting/hooks.js +13 -3
- package/es/data/meeting/hooks.js.map +1 -1
- package/es/data/meeting/index.d.ts +1 -0
- package/es/data/meeting/index.js +1 -0
- package/es/data/meeting/index.js.map +1 -1
- package/es/data/meeting/interfaces.d.ts +3 -1
- package/es/data/meeting/types.d.ts +11 -7
- package/es/modules/document/components/DocumentDetail/index.js +1 -1
- package/es/modules/document/components/DocumentDetail/index.js.map +1 -1
- package/es/modules/document/components/DocumentItem/index.js +3 -3
- package/es/modules/document/components/DocumentItem/index.js.map +1 -1
- package/es/modules/document/pages/DocumentTabView/index.js +2 -2
- package/es/modules/document/pages/DocumentTabView/index.js.map +1 -1
- package/es/modules/meeting/MeetingRoutes.d.ts +17 -0
- package/es/modules/meeting/MeetingRoutes.js +38 -0
- package/es/modules/meeting/MeetingRoutes.js.map +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.d.ts +7 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js +36 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.js.map +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskItem/index.less +59 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.d.ts +4 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js +39 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/index.js.map +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.d.ts +18 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js +40 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/components/TaskList/state.js.map +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.d.ts +6 -4
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +42 -23
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +47 -17
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.d.ts +4 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js +15 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/state.js.map +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.d.ts +2 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js +22 -16
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/index.less +16 -6
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.d.ts +1 -0
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js +4 -0
- package/es/modules/meeting/components/AgendaList/AgendaNewForm/state.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.d.ts +2 -6
- package/es/modules/meeting/components/AgendaList/index.js +31 -49
- package/es/modules/meeting/components/AgendaList/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/index.less +19 -75
- package/es/modules/meeting/components/AgendaList/state.d.ts +16 -1
- package/es/modules/meeting/components/AgendaList/state.js +26 -4
- package/es/modules/meeting/components/AgendaList/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingDetail/index.d.ts +2 -3
- package/es/modules/meeting/components/MeetingDetail/index.js +21 -14
- package/es/modules/meeting/components/MeetingDetail/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingDetail/index.less +14 -0
- package/es/modules/meeting/components/MeetingItem/index.d.ts +2 -2
- package/es/modules/meeting/components/MeetingItem/index.js +25 -36
- package/es/modules/meeting/components/MeetingItem/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingItem/index.less +1 -0
- package/es/modules/meeting/components/MeetingItem/state.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/index.d.ts +2 -2
- package/es/modules/meeting/components/MeetingList/index.js +10 -13
- package/es/modules/meeting/components/MeetingList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingList/state.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js +15 -10
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/state.d.ts +1 -0
- package/es/modules/meeting/components/NewMeetingForm/state.js +6 -1
- package/es/modules/meeting/components/NewMeetingForm/state.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.d.ts +2 -2
- package/es/modules/meeting/pages/MeetingTabView/index.js +23 -14
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.less +14 -0
- package/es/modules/menus/pages/ListOptions/Teams/index.js +1 -1
- package/es/modules/menus/pages/ListOptions/Teams/index.js.map +1 -1
- package/es/modules/tasks/TasksRoutes.js +1 -1
- package/es/modules/tasks/TasksRoutes.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/index.d.ts +4 -4
- package/es/modules/tasks/components/NewTaskForm/index.js +6 -4
- package/es/modules/tasks/components/NewTaskForm/index.js.map +1 -1
- package/es/modules/tasks/components/NewTaskForm/state.js.map +1 -1
- package/es/modules/tasks/components/SubTaskList/index.js +18 -18
- package/es/modules/tasks/components/SubTaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskDetail/index.d.ts +2 -2
- package/es/modules/tasks/components/TaskDetail/index.js +14 -18
- package/es/modules/tasks/components/TaskDetail/index.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/TaskItem.d.ts +3 -2
- package/es/modules/tasks/components/TaskItem/TaskItem.js +22 -41
- package/es/modules/tasks/components/TaskItem/TaskItem.js.map +1 -1
- package/es/modules/tasks/components/TaskItem/index.less +1 -1
- package/es/modules/tasks/components/TaskList/index.js +32 -30
- package/es/modules/tasks/components/TaskList/index.js.map +1 -1
- package/es/modules/tasks/components/TaskList/state.d.ts +1 -0
- package/es/modules/tasks/components/TaskList/state.js +4 -0
- package/es/modules/tasks/components/TaskList/state.js.map +1 -1
- package/es/modules/tasks/pages/TaskDefaultView/index.d.ts +2 -2
- package/es/modules/tasks/pages/TaskDefaultView/index.js +7 -12
- package/es/modules/tasks/pages/TaskDefaultView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/index.d.ts +2 -2
- package/es/modules/tasks/pages/TaskTabView/index.js +58 -65
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/tasks/pages/TaskTabView/state.d.ts +6 -0
- package/es/modules/tasks/pages/TaskTabView/state.js +18 -0
- package/es/modules/tasks/pages/TaskTabView/state.js.map +1 -0
- package/es/modules/workspaces/pages/BoardView/index.js +1 -1
- package/es/modules/workspaces/pages/BoardView/index.js.map +1 -1
- package/es/modules/workspaces/pages/ListView/index.js +1 -1
- package/es/modules/workspaces/pages/ListView/index.js.map +1 -1
- package/package.json +11 -10
- package/es/components/SortDnD/Card.d.ts +0 -19
- package/es/components/SortDnD/Card.js +0 -58
- package/es/components/SortDnD/Card.js.map +0 -1
- package/es/components/SortDnD/Container.d.ts +0 -15
- package/es/components/SortDnD/Container.js +0 -34
- package/es/components/SortDnD/Container.js.map +0 -1
- package/es/components/SortDnD/index.d.ts +0 -9
- package/es/components/SortDnD/index.js +0 -13
- package/es/components/SortDnD/index.js.map +0 -1
- package/es/components/SortDnD/index.less +0 -21
- package/es/components/SortDnD/type.d.ts +0 -4
- package/es/components/SortDnD/type.js +0 -4
- package/es/components/SortDnD/type.js.map +0 -1
- package/es/modules/meeting/components/AgendaList/TaskItem/index.d.ts +0 -5
- package/es/modules/meeting/components/AgendaList/TaskItem/index.js +0 -40
- package/es/modules/meeting/components/AgendaList/TaskItem/index.js.map +0 -1
- package/es/modules/meeting/components/AgendaList/TaskItem/index.less +0 -50
- package/es/modules/meeting/components/VoEditor/index.d.ts +0 -13
- package/es/modules/meeting/components/VoEditor/index.js +0 -46
- package/es/modules/meeting/components/VoEditor/index.js.map +0 -1
- package/es/modules/meeting/components/VoEditor/index.less +0 -12
- package/es/modules/meeting/pages/MeetingRoutes.d.ts +0 -3
- package/es/modules/meeting/pages/MeetingRoutes.js +0 -10
- package/es/modules/meeting/pages/MeetingRoutes.js.map +0 -1
- package/es/modules/tasks/components/PermissionModal/index.d.ts +0 -5
- package/es/modules/tasks/components/PermissionModal/index.js +0 -14
- package/es/modules/tasks/components/PermissionModal/index.js.map +0 -1
- package/es/modules/user/pages/Profile/index.d.ts +0 -11
- package/es/modules/user/pages/Profile/index.js +0 -79
- package/es/modules/user/pages/Profile/index.js.map +0 -1
- package/es/modules/user/pages/Profile/index.less +0 -45
- /package/es/{modules/tasks/components → components}/PermissionModal/index.less +0 -0
@@ -1,34 +1,40 @@
|
|
1
|
-
import React
|
1
|
+
import React from "react";
|
2
2
|
import { Button, Icon, Row, Tabs } from "@voplus/antd";
|
3
3
|
import ToolBar from "../../../../components/ToolBar";
|
4
4
|
import MeetingItem from "../MeetingItem";
|
5
5
|
import Comment from "@voplus/morpho-collaboration/es/components/Comment";
|
6
|
-
import DocumentList from "@voplus/morpho-document/es/
|
6
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
7
|
+
import { useAsideContentContext } from "@voplus/morpho-ui";
|
7
8
|
import RichTextEditor from "@voplus/morpho-ui/es/controls/RichTextEditor";
|
9
|
+
import { useObserver } from "mobx-react-lite";
|
8
10
|
import ActivityLog from "../../../../components/ActivityLog";
|
9
11
|
import { useMeeting, useMeetingStore } from "../../../../data/meeting";
|
10
|
-
import "../../../../styles/common.less";
|
11
12
|
import AgendaList from "../AgendaList";
|
12
|
-
|
13
|
-
|
13
|
+
import styles from "./index.less";
|
14
|
+
const MeetingDetail = (props) => {
|
14
15
|
const meetingStore = useMeetingStore();
|
15
16
|
const meeting = useMeeting(props.id, { reload: true });
|
16
|
-
|
17
|
+
const asideContext = useAsideContentContext();
|
18
|
+
const onDelete = async () => {
|
19
|
+
await meetingStore.delete(props.id, { DeleteChilds: true });
|
20
|
+
asideContext.closeAside();
|
21
|
+
};
|
22
|
+
return useObserver(() => (React.createElement("div", { className: "module-detail-view" },
|
17
23
|
React.createElement("div", { className: "module-view-header" },
|
18
24
|
React.createElement(Row, { type: "flex", justify: "space-between" },
|
19
25
|
React.createElement(MeetingItem, { id: props.id, isDetail: true }),
|
20
|
-
React.createElement("div",
|
21
|
-
React.createElement(ToolBar, { lock: true, routeUrl: `/meetings/${props.id}
|
26
|
+
React.createElement("div", { className: styles["meeting-tool-bar"] },
|
27
|
+
React.createElement(ToolBar, { id: props.id, lock: true, routeUrl: `/meetings/${props.id}`, onDelete: onDelete }),
|
22
28
|
React.createElement("div", { className: "margin-top-10" },
|
23
29
|
React.createElement(Button, { size: "small" }, "+tag"))))),
|
24
|
-
React.createElement(Tabs,
|
30
|
+
React.createElement(Tabs, null,
|
25
31
|
React.createElement(Tabs.TabPane, { tab: "Details", key: "1" },
|
26
|
-
React.createElement("div", { className: "
|
27
|
-
React.createElement("div", { className: "
|
28
|
-
React.createElement(RichTextEditor, { editable: false, content: meeting.description, placeholder: React.createElement("span", null,
|
32
|
+
React.createElement("div", { className: styles["meeting-detail-view"] },
|
33
|
+
React.createElement("div", { className: "meeting-detail-description" },
|
34
|
+
React.createElement(RichTextEditor, { editable: false, content: meeting.description || "", placeholder: React.createElement("span", null,
|
29
35
|
React.createElement(Icon, { type: "edit" }),
|
30
36
|
"Add Description"), onSave: v => meetingStore.edit(meeting.id, { Description: v }) })),
|
31
|
-
React.createElement(AgendaList, { parentId:
|
37
|
+
React.createElement(AgendaList, { parentId: meeting.id }))),
|
32
38
|
React.createElement(Tabs.TabPane, { tab: "Documents", key: "2" },
|
33
39
|
React.createElement("div", { className: "module-box" },
|
34
40
|
React.createElement(DocumentList, { id: props.id }))),
|
@@ -36,6 +42,7 @@ export default (props) => {
|
|
36
42
|
React.createElement(Comment, { channelId: props.id })),
|
37
43
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "4" },
|
38
44
|
React.createElement("div", { className: "module-box" },
|
39
|
-
React.createElement(ActivityLog, null))))));
|
45
|
+
React.createElement(ActivityLog, null)))))));
|
40
46
|
};
|
47
|
+
export default MeetingDetail;
|
41
48
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingDetail/index.tsx"],"names":[],"mappings":"AACA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingDetail/index.tsx"],"names":[],"mappings":"AACA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,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AAC,GAAG,EAAC,YAAY,EAAC,GAAG,EAAC,GAAG;gBACrC,6BAAK,SAAS,EAAC,YAAY;oBAC1B,oBAAC,WAAW,OAAG,CACV,CACQ,CACT,CACF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
@import "../../../../styles/common.less";
|
2
|
+
.meeting-tool-bar {
|
3
|
+
text-align: right;
|
4
|
+
}
|
5
|
+
.meeting-detail-view {
|
6
|
+
display: flex;
|
7
|
+
flex-direction: column;
|
8
|
+
height: 100%;
|
9
|
+
:global {
|
10
|
+
.meeting-detail-description {
|
11
|
+
padding: 10px 20px;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
import "./index.less";
|
3
|
-
declare const
|
3
|
+
declare const MeetingItem: (props: {
|
4
4
|
isDetail?: boolean | undefined;
|
5
5
|
className?: string | undefined;
|
6
6
|
id: string;
|
7
7
|
}) => JSX.Element;
|
8
|
-
export default
|
8
|
+
export default MeetingItem;
|
@@ -1,30 +1,22 @@
|
|
1
|
-
import React, { useState } from "react";
|
2
1
|
import classnames from "classnames";
|
3
|
-
import
|
4
|
-
import
|
5
|
-
import MoreOperateDropdown from "../../../../controls/MoreOperateDropdown";
|
6
|
-
import { faMapMarkerAlt, faClock, faStopwatch, faUserFriends } from "@fortawesome/pro-light-svg-icons";
|
2
|
+
import React, { useState } from "react";
|
3
|
+
import { faClock, faMapMarkerAlt, faStopwatch, faUserFriends } from "@fortawesome/pro-light-svg-icons";
|
7
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
8
|
-
import "
|
9
|
-
import { useMeeting, useMeetingStore } from "../../../../data/meeting";
|
5
|
+
import { Row, Tooltip } from "@voplus/antd";
|
10
6
|
import { InlineEdit } from "@voplus/morpho-ui";
|
11
7
|
import { useObserver } from "mobx-react-lite";
|
12
8
|
import moment from "moment";
|
9
|
+
import AvatarList from "../../../../components/AvatarList";
|
10
|
+
import { useMeeting, useMeetingStore } from "../../../../data/meeting";
|
11
|
+
import "./index.less";
|
13
12
|
import { State } from "./state";
|
14
|
-
|
15
|
-
const list = [
|
16
|
-
{ name: "HaHa1", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
17
|
-
{ name: "HaHa2", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
18
|
-
{ name: "HaHa3", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
19
|
-
{ name: "HaHa4", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
20
|
-
{ name: "HaHa5", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
21
|
-
{ name: "HaHa6", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" }
|
22
|
-
];
|
13
|
+
const MeetingItem = (props) => {
|
23
14
|
const meetingStore = useMeetingStore();
|
24
15
|
const [state] = useState(new State());
|
25
|
-
state.meeting = useMeeting(props.id);
|
26
|
-
const
|
27
|
-
|
16
|
+
state.meeting = useMeeting(props.id, { reload: false });
|
17
|
+
const a = { Name: "name" };
|
18
|
+
const onChangeMember = async (ids) => {
|
19
|
+
await meetingStore.edit(state.meeting.id, { MemberIds: ids });
|
28
20
|
};
|
29
21
|
const onDelete = () => {
|
30
22
|
console.log("delete");
|
@@ -32,16 +24,13 @@ export default (props) => {
|
|
32
24
|
const onRefresh = () => {
|
33
25
|
console.log("onRefresh");
|
34
26
|
};
|
35
|
-
const onSave = async (v) => {
|
36
|
-
if (v.trim() ===
|
27
|
+
const onSave = async (v, name, params) => {
|
28
|
+
if (v.trim() === name)
|
37
29
|
return;
|
38
|
-
state.
|
39
|
-
await meetingStore.edit(state.meeting.id, { Name: v });
|
40
|
-
state.loading = false;
|
30
|
+
await meetingStore.edit(state.meeting.id, params);
|
41
31
|
};
|
42
32
|
return useObserver(() => (React.createElement(React.Fragment, null, props.isDetail ? (React.createElement("div", { className: "meeting-item-detail" },
|
43
|
-
React.createElement(
|
44
|
-
React.createElement(InlineEdit, { defaultValue: state.meeting.name, content: v => React.createElement("div", { className: "meeting-item-name" }, v.store.value), onSave: onSave })),
|
33
|
+
React.createElement(InlineEdit, { defaultValue: state.meeting.name, content: v => React.createElement("div", { className: "meeting-item-name" }, v.store.value), onSave: value => onSave(value, state.meeting.name, { Name: value }) }),
|
45
34
|
React.createElement("div", null,
|
46
35
|
React.createElement("span", { className: "meeting-clock" },
|
47
36
|
React.createElement(FAIcon, { icon: faClock }),
|
@@ -52,16 +41,17 @@ export default (props) => {
|
|
52
41
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
53
42
|
moment(state.meeting.startTime).from(moment(state.meeting.endTime), true))),
|
54
43
|
React.createElement(Row, { type: "flex", align: "middle" },
|
55
|
-
React.createElement("
|
56
|
-
React.createElement(
|
57
|
-
|
44
|
+
React.createElement("div", { className: "meeting-clock" },
|
45
|
+
React.createElement(InlineEdit, { defaultValue: state.meeting.venue || "One Raffles Place", content: v => (React.createElement(React.Fragment, null,
|
46
|
+
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
47
|
+
v.store.value)), onSave: value => onSave(value, state.meeting.venue || "", { Venue: value }) })),
|
58
48
|
React.createElement(FAIcon, { icon: faUserFriends, flip: "horizontal", color: "#666", size: "sm" }),
|
59
|
-
React.createElement(AvatarList, { list:
|
49
|
+
React.createElement(AvatarList, { list: state.meeting.members || [], onChange: onChangeMember })))) : (React.createElement(Row, { type: "flex", align: "middle", className: classnames("meeting-item-list", props.className) },
|
60
50
|
React.createElement("div", { className: "meeting-item-date" },
|
61
51
|
React.createElement("div", null, moment(state.meeting.startTime).format("DD")),
|
62
52
|
React.createElement("div", { className: "month" }, moment(state.meeting.startTime).format("ddd"))),
|
63
53
|
React.createElement("div", { className: "meeting-item-content" },
|
64
|
-
React.createElement("div",
|
54
|
+
React.createElement("div", { style: { flex: 1 } },
|
65
55
|
React.createElement(InlineEdit, { editable: false, defaultValue: state.meeting.name, content: v => React.createElement("div", { className: "meeting-item-name" }, v.store.value) }),
|
66
56
|
React.createElement("div", null,
|
67
57
|
React.createElement("span", { className: "meeting-clock" },
|
@@ -74,11 +64,10 @@ export default (props) => {
|
|
74
64
|
React.createElement("span", null,
|
75
65
|
React.createElement(FAIcon, { icon: faStopwatch }),
|
76
66
|
moment(state.meeting.startTime).from(moment(state.meeting.endTime), true))),
|
77
|
-
React.createElement("div", null,
|
67
|
+
state.meeting.venue && (React.createElement("div", null,
|
78
68
|
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
79
|
-
state.meeting.venue
|
80
|
-
React.createElement(
|
81
|
-
React.createElement(AvatarList, { list: list, num: 4, className: "margin-right-10" }),
|
82
|
-
React.createElement(MoreOperateDropdown, { onEdit: onEdit, onDelete: onDelete }))))))));
|
69
|
+
state.meeting.venue))),
|
70
|
+
React.createElement(AvatarList, { list: state.meeting.members || [], editable: false, onChange: onChangeMember })))))));
|
83
71
|
};
|
72
|
+
export default MeetingItem;
|
84
73
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAA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
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IAAlB;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingItem/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IAAlB;QAEoB,YAAO,GAAY,KAAK,CAAC;IAC7C,CAAC;CAAA;AAFY;IAAX,UAAU;sCAA0B;AACzB;IAAX,UAAU;sCAAiC"}
|
@@ -1,3 +1,3 @@
|
|
1
1
|
/// <reference types="react" />
|
2
|
-
declare const
|
3
|
-
export default
|
2
|
+
declare const MeetingList: () => JSX.Element;
|
3
|
+
export default MeetingList;
|
@@ -9,28 +9,25 @@ import MeetingDetail from "../MeetingDetail";
|
|
9
9
|
import MeetingItem from "../MeetingItem";
|
10
10
|
import NewMeetingForm from "../NewMeetingForm";
|
11
11
|
import { State } from "./state";
|
12
|
-
|
12
|
+
const MeetingList = () => {
|
13
13
|
const meetings = useMeetingStore();
|
14
14
|
const [state] = useState(new State(meetings));
|
15
15
|
const sortStore = useSort();
|
16
16
|
useEffect(() => {
|
17
|
-
state.page = 1;
|
18
17
|
state.subscribeOnMeetingCreateCallback();
|
19
18
|
}, []);
|
20
|
-
useObserver(() => {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
});
|
19
|
+
// useObserver(() => {
|
20
|
+
useMeetingListEffect(list => {
|
21
|
+
state.meetings = list;
|
22
|
+
state.loading = false;
|
23
|
+
}, { Sort: toJS(sortStore.data), ...{ page: state.page } });
|
24
|
+
// state.loading = false;
|
25
|
+
// });
|
27
26
|
const loadData = () => {
|
28
27
|
// state.page = page;
|
29
28
|
// state.loading = true;
|
30
29
|
};
|
31
|
-
return useObserver(() => (React.createElement(ListView, { data: state.meetings, loading: state.loading, formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, null), defaultView: (id) => React.createElement(MeetingDetail, { id: id }), renderItem: (meeting, className) => (React.createElement(MeetingItem, { id: meeting.id, className: className })),
|
32
|
-
// seek={false}
|
33
|
-
// iconStyle={{ padding: "10px" }}
|
34
|
-
loadMore: loadData })));
|
30
|
+
return useObserver(() => (React.createElement(ListView, { data: state.meetings, loading: state.loading, formViewTitle: "Add Meeting", formView: React.createElement(NewMeetingForm, null), defaultView: (id) => React.createElement(MeetingDetail, { id: id }), renderItem: (meeting, className) => (React.createElement(MeetingItem, { id: meeting.id, className: className })), loadMore: loadData })));
|
35
31
|
};
|
32
|
+
export default MeetingList;
|
36
33
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,0DAA0D;AAC1D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,EAAE,OAAO,EAAE,MAAM,+DAA+D,CAAC;AACxF,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AACjF,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAC7C,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,cAAc,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/index.tsx"],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ACzB,CAAC,CAAC;IACF,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,QAAQ,IACR,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,OAAY,EAAE,SAAkB,EAAE,EAAE,CAAC,CACjD,oBAAC,WAAW,IAAC,EAAE,EAAE,OAAO,CAAC,EAAE,EAAE,SAAS,EAAE,SAAS,GAAI,CACrD,EACD,QAAQ,EAAE,QAAQ,GACjB,CACF,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,WAAW,CAAC"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGlC,MAAM,OAAO,KAAK;IACjB,YAA2B,MAAoB;QAApB,WAAM,GAAN,MAAM,CAAc;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingList/state.ts"],"names":[],"mappings":";AAAA,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;QAE7B,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;IApBgD,CAAC;CAqBnD;AApBY;IAAX,UAAU;uCAAkC;AACjC;IAAX,UAAU;sCAAgC;AAC/B;IAAX,UAAU;mCAAyB"}
|
@@ -14,23 +14,25 @@ import { useMeetingStore } from "../../../../data/meeting";
|
|
14
14
|
import styles from "./index.less";
|
15
15
|
import { State } from "./state";
|
16
16
|
const NewMeetingForm = () => {
|
17
|
-
const list = [
|
18
|
-
{ name: "HaHa1", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" },
|
19
|
-
{ name: "HaHa2", url: "https://zos.alipayobjects.com/rmsportal/ODTLcjxAfvqbxHnVXCYX.png" }
|
20
|
-
];
|
21
17
|
const Params = {
|
22
18
|
Name: "",
|
23
19
|
Description: "",
|
24
20
|
StartTime: undefined,
|
25
21
|
EndTime: undefined,
|
26
22
|
Venue: "",
|
27
|
-
Url: ""
|
23
|
+
Url: "",
|
24
|
+
MemberIds: [],
|
25
|
+
Agendas: []
|
28
26
|
};
|
29
27
|
const sortStore = useSort();
|
30
28
|
const meetings = useMeetingStore();
|
31
29
|
const [state] = useState(new State());
|
32
30
|
const asideContext = useAsideContentContext();
|
33
|
-
|
31
|
+
const onChangMember = (ids, members) => {
|
32
|
+
state.params.MemberIds = ids;
|
33
|
+
state.Members = members;
|
34
|
+
console.log(members, "params");
|
35
|
+
};
|
34
36
|
const disabledStartTime = (StartTime) => {
|
35
37
|
const { EndTime } = state.params;
|
36
38
|
if (!StartTime || !EndTime) {
|
@@ -65,7 +67,8 @@ const NewMeetingForm = () => {
|
|
65
67
|
return [];
|
66
68
|
};
|
67
69
|
const onChangeAgenda = (params) => {
|
68
|
-
state.params.
|
70
|
+
state.params.Agendas = params;
|
71
|
+
console.log(state.params.Agendas, "state.params.Agendas");
|
69
72
|
};
|
70
73
|
const changeAllDay = (e) => {
|
71
74
|
state.allDay = e.target.checked;
|
@@ -74,6 +77,7 @@ const NewMeetingForm = () => {
|
|
74
77
|
};
|
75
78
|
let agendaRef = createRef();
|
76
79
|
const onSubmit = async () => {
|
80
|
+
console.log(state.params);
|
77
81
|
if (!state.params.Name)
|
78
82
|
return message.warning("Title is required");
|
79
83
|
state.loading = true;
|
@@ -81,7 +85,8 @@ const NewMeetingForm = () => {
|
|
81
85
|
state.loading = false;
|
82
86
|
asideContext.openAside(React.createElement(MeetingDetail, { id: res.id }), { span: 12 });
|
83
87
|
state.params = Params;
|
84
|
-
|
88
|
+
if (agendaRef.current)
|
89
|
+
agendaRef.current.clear();
|
85
90
|
};
|
86
91
|
return useObserver(() => (React.createElement(Form, { layout: "vertical", className: styles["new-meeting-form"] },
|
87
92
|
React.createElement(Form.Item, { label: "Title for your meeting" },
|
@@ -114,8 +119,8 @@ const NewMeetingForm = () => {
|
|
114
119
|
React.createElement(Select.Option, { value: "Daily" }, "Daily"),
|
115
120
|
React.createElement(Select.Option, { value: "Weekly" }, "Weekly")))))),
|
116
121
|
React.createElement(Form.Item, null,
|
117
|
-
React.createElement(FAIcon, { icon: faUserFriends, className:
|
118
|
-
React.createElement(AvatarList, { list:
|
122
|
+
React.createElement(FAIcon, { icon: faUserFriends, className: "margin-right-10" }),
|
123
|
+
React.createElement(AvatarList, { list: state.Members, onChange: onChangMember })),
|
119
124
|
React.createElement(Form.Item, { label: "Enter Place" },
|
120
125
|
React.createElement(Input, { prefix: React.createElement(FAIcon, { icon: faMapMarkerAlt }), value: state.params.Venue, onChange: e => (state.params.Venue = e.target.value) })),
|
121
126
|
React.createElement(Form.Item, { label: "Meeting Url" },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAEN,MAAM,EACN,QAAQ,EACR,GAAG,EACH,UAAU,EACV,IAAI,EACJ,KAAK,EACL,OAAO,EACP,GAAG,EACH,MAAM,EACN,UAAU,EACV,MAAM,EACN,MAAM,cAAc,CAAC;AACtB,MAAM,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;AAC3B,OAAO,EACN,OAAO,EACP,cAAc,EACd,SAAS,EACT,aAAa,EACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,uCAAuC,CAAC;AAChE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iB,aAGnB;gBACT,oBAAC,MAAM,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,EAAE,IAAI,EAAC,SAAS,EAAC,OAAO,EAAE,QAAQ,aAEvD,CACJ,CACK,CACN,CACP,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -8,8 +8,10 @@ export class State {
|
|
8
8
|
StartTime: undefined,
|
9
9
|
EndTime: undefined,
|
10
10
|
Url: "",
|
11
|
-
|
11
|
+
MemberIds: [],
|
12
|
+
Agendas: []
|
12
13
|
};
|
14
|
+
this.Members = [];
|
13
15
|
this.loading = false;
|
14
16
|
this.allDay = false;
|
15
17
|
this.endTimeType = "Once";
|
@@ -18,6 +20,9 @@ export class State {
|
|
18
20
|
__decorate([
|
19
21
|
observable
|
20
22
|
], State.prototype, "params", void 0);
|
23
|
+
__decorate([
|
24
|
+
observable
|
25
|
+
], State.prototype, "Members", void 0);
|
21
26
|
__decorate([
|
22
27
|
observable
|
23
28
|
], State.prototype, "loading", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;IAAlB;QACoB,WAAM,GAAQ;YAChC,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,EAAE;YACf,SAAS,EAAE,SAAS;YACpB,OAAO,EAAE,SAAS;YAClB,GAAG,EAAE,EAAE;YACP,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,EAAE;SACX,CAAC;QACiB,YAAO,GAAU,EAAE,CAAC;QACpB,YAAO,GAAY,KAAK,CAAC;QACzB,WAAM,GAAY,KAAK,CAAC;QACxB,gBAAW,GAAW,MAAM,CAAC;IACjD,CAAC;CAAA;AAbY;IAAX,UAAU;qCAQT;AACU;IAAX,UAAU;sCAA4B;AAC3B;IAAX,UAAU;sCAAiC;AAChC;IAAX,UAAU;qCAAgC;AAC/B;IAAX,UAAU;0CAAqC"}
|
@@ -1,19 +1,20 @@
|
|
1
1
|
import React, { useContext, useEffect, useState } from "react";
|
2
2
|
import { Button, Icon, Row, Skeleton, Tabs } from "@voplus/antd";
|
3
3
|
import Comment from "@voplus/morpho-collaboration/es/components/Comment";
|
4
|
-
import DocumentList from "@voplus/morpho-document/es/
|
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
9
|
import ToolBar from "../../../../components/ToolBar";
|
10
|
-
import { useTabItem } from "@voplus/morpho-data";
|
10
|
+
import { useLayout, useTabItem } from "@voplus/morpho-data";
|
11
11
|
import { __RouterContext } from "react-router";
|
12
12
|
import { useMeeting, useMeetingStore } from "../../../../data/meeting";
|
13
13
|
import "../../../../styles/common.less";
|
14
14
|
import AgendaList from "../../components/AgendaList";
|
15
15
|
import MeetingItem from "../../components/MeetingItem";
|
16
|
-
|
16
|
+
import styles from "./index.less";
|
17
|
+
const MeetingTabView = () => {
|
17
18
|
const { match } = useContext(__RouterContext);
|
18
19
|
const id = match.params.id;
|
19
20
|
const meeting = useMeeting(id, { reload: true });
|
@@ -22,14 +23,19 @@ export default () => {
|
|
22
23
|
const meetingStore = useMeetingStore();
|
23
24
|
const [scrollParentRef, setScrollParentRef] = useState();
|
24
25
|
const [asideContext] = useState(AsideContent.createContext());
|
26
|
+
const layout = useLayout();
|
25
27
|
useEffect(() => {
|
26
28
|
asideContext.openAside(AsideElement, { span: 12 });
|
27
29
|
}, []);
|
30
|
+
const onDelete = async () => {
|
31
|
+
layout.history.push(`/meeting`);
|
32
|
+
layout.tabNav.remove(tab);
|
33
|
+
await meetingStore.delete(id, { DeleteChilds: true });
|
34
|
+
};
|
28
35
|
const AsideElement = (React.createElement("div", { className: "module-tab-view_aside" },
|
29
36
|
React.createElement(Tabs, { defaultActiveKey: "1" },
|
30
37
|
React.createElement(Tabs.TabPane, { tab: "Documents", key: "1" },
|
31
|
-
React.createElement(
|
32
|
-
React.createElement(DocumentList, { id: id }))),
|
38
|
+
React.createElement(DocumentList, { id: id })),
|
33
39
|
React.createElement(Tabs.TabPane, { tab: "Comments", key: "2" },
|
34
40
|
React.createElement(Comment, { channelId: id })),
|
35
41
|
React.createElement(Tabs.TabPane, { tab: "Activities", key: "3" },
|
@@ -37,18 +43,21 @@ export default () => {
|
|
37
43
|
React.createElement(ActivityLog, { showHeader: false }))))));
|
38
44
|
return useObserver(() => (React.createElement("div", { className: "module-tab-view" },
|
39
45
|
React.createElement(AsideContent, { context: asideContext },
|
40
|
-
React.createElement("div", { className: "
|
41
|
-
React.createElement(
|
42
|
-
React.createElement(
|
43
|
-
React.createElement(
|
44
|
-
|
45
|
-
React.createElement(
|
46
|
-
|
47
|
-
|
48
|
-
|
46
|
+
React.createElement("div", { className: styles["meeting-tab-view"], ref: ref => setScrollParentRef(ref) },
|
47
|
+
React.createElement("div", { className: "meeting-tab-view_header" },
|
48
|
+
React.createElement(Skeleton, { loading: !meeting.loaded },
|
49
|
+
React.createElement(Row, { type: "flex", justify: "space-between", className: "margin-bottom-10" },
|
50
|
+
React.createElement(MeetingItem, { id: id, isDetail: true }),
|
51
|
+
React.createElement("div", { className: styles["meeting-tool-bar"] },
|
52
|
+
React.createElement(ToolBar, { onDelete: onDelete, onExpend: () => asideContext.asideContent
|
53
|
+
? asideContext.closeAside()
|
54
|
+
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
55
|
+
React.createElement("div", { className: "margin-top-10" },
|
56
|
+
React.createElement(Button, { size: "small" }, "+tag")))),
|
49
57
|
React.createElement(RichTextEditor, { editable: false, content: meeting.description, placeholder: React.createElement("span", null,
|
50
58
|
React.createElement(Icon, { type: "edit" }),
|
51
59
|
"Add Description"), onSave: v => meetingStore.edit(id, { Description: v }) }))),
|
52
60
|
React.createElement(AgendaList, { preview: true, parentId: id }))))));
|
53
61
|
};
|
62
|
+
export default MeetingTabView;
|
54
63
|
//# 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,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,YAAY,MAAM,
|
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,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,OAAO,MAAM,oDAAoD,CAAC;AACzE,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,cAAc,MAAM,8CAA8C,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D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M,CAAC,kBAAkB,CAAC;gCACzC,oBAAC,OAAO,IACP,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,GAAG,EAAE,CACd,YAAY,CAAC,YAAY;wCACxB,CAAC,CAAC,YAAY,CAAC,UAAU,EAAE;wCAC3B,CAAC,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,GAErD;gCACF,6BAAK,SAAS,EAAC,eAAe;oCAC7B,oBAAC,MAAM,IAAC,IAAI,EAAC,OAAO,WAAc,CAC7B,CACD,CACD;wBACN,oBAAC,cAAc,IACd,QAAQ,EAAE,KAAK,EACf,OAAO,EAAE,OAAO,CAAC,WAAW,EAC5B,WAAW,EACV;gCACC,oBAAC,IAAI,IAAC,IAAI,EAAC,MAAM,GAAG;kDAEd,EAER,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,WAAW,EAAE,CAAC,EAAE,CAAC,GACrD,CACQ,CACN;gBAEN,oBAAC,UAAU,IACV,OAAO,QACP,QAAQ,EAAE,EAAE,GAEX,CACG,CACQ,CACV,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -65,6 +65,6 @@ export default () => {
|
|
65
65
|
item.name) },
|
66
66
|
React.createElement("div", null,
|
67
67
|
React.createElement("p", null, "Member(s)"),
|
68
|
-
React.createElement(AvatarList, { list: []
|
68
|
+
React.createElement(AvatarList, { list: [] }))))) }))));
|
69
69
|
};
|
70
70
|
//# sourceMappingURL=index.js.map
|