@voplus/morpho-workspace 1.0.0-dev41 → 1.0.0-dev42
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 +16 -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 +6 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js +72 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.less +0 -0
- package/es/modules/calendar/pages/CalendarMonth/state.d.ts +10 -0
- package/es/modules/calendar/pages/CalendarMonth/state.js +31 -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 +23 -44
- 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 +94 -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 +11 -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 +25 -37
- 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 +28 -9
- 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 +20 -56
- 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 +11 -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 +75 -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 +14 -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,10 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import "./index.less";
|
3
|
+
declare const MeetingHeader: (props: {
|
4
|
+
id: string;
|
5
|
+
reload?: boolean | undefined;
|
6
|
+
onChangeReadonly?: any;
|
7
|
+
onReLoad?: (() => void) | undefined;
|
8
|
+
onExpand?: (() => void) | undefined;
|
9
|
+
}) => JSX.Element;
|
10
|
+
export default MeetingHeader;
|
@@ -0,0 +1,94 @@
|
|
1
|
+
import { DatePicker, Row, Skeleton } from "@voplus/antd";
|
2
|
+
import { useDocumentStore } from "@voplus/morpho-document";
|
3
|
+
import { FileStore } from "@voplus/morpho-document/es/data/FileStore/FileContext";
|
4
|
+
import { InlineEdit, useAsideContentContext } from "@voplus/morpho-ui";
|
5
|
+
import { useObserver } from "mobx-react-lite";
|
6
|
+
import React, { useState } from "react";
|
7
|
+
import ToolBar from "../../../../components/ToolBar";
|
8
|
+
import { useAgendaStore, useMeeting, useMeetingStore } from "../../../../data/meeting";
|
9
|
+
import { faClock, faMapMarkerAlt, faStopwatch, faUserFriends } from "@fortawesome/pro-light-svg-icons";
|
10
|
+
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
11
|
+
import moment from "moment";
|
12
|
+
import AvatarList from "../../../../components/AvatarList";
|
13
|
+
import "./index.less";
|
14
|
+
const MeetingHeader = (props) => {
|
15
|
+
const { id, reload, onReLoad, onExpand } = props;
|
16
|
+
const meetingStore = useMeetingStore();
|
17
|
+
const agendaStore = useAgendaStore();
|
18
|
+
const documentStore = useDocumentStore();
|
19
|
+
const meeting = useMeeting(id, { reload: !!reload });
|
20
|
+
const readonly = meeting.status === "Readonly";
|
21
|
+
const [editable, setEditable] = useState(false);
|
22
|
+
const [open, setOpen] = useState(false);
|
23
|
+
const [store] = useState(new FileStore());
|
24
|
+
const asideContext = useAsideContentContext();
|
25
|
+
const onDelete = async () => {
|
26
|
+
await meetingStore.delete([id], { DeleteChilds: true });
|
27
|
+
asideContext.closeAside();
|
28
|
+
};
|
29
|
+
const onLock = async () => {
|
30
|
+
await documentStore.edit(id, { Status: "Readonly" });
|
31
|
+
props.onChangeReadonly(true);
|
32
|
+
};
|
33
|
+
const onUnlock = async () => {
|
34
|
+
await documentStore.edit(id, { Status: "Normal" });
|
35
|
+
props.onChangeReadonly(false);
|
36
|
+
};
|
37
|
+
const onChangeMember = async (ids) => {
|
38
|
+
await meetingStore.edit(meeting.id, { MemberIds: ids });
|
39
|
+
};
|
40
|
+
const onSave = async (v, name, params) => {
|
41
|
+
if (v.trim() === name)
|
42
|
+
return;
|
43
|
+
await meetingStore.edit(meeting.id, params);
|
44
|
+
};
|
45
|
+
const onOk = async (dates) => {
|
46
|
+
await meetingStore.edit(meeting.id, {
|
47
|
+
StartTime: new Date(new Date(dates[0])),
|
48
|
+
EndTime: new Date(new Date(dates[1]))
|
49
|
+
});
|
50
|
+
};
|
51
|
+
const onChangeDate = (value, dateString) => {
|
52
|
+
meeting.startTime = value[0];
|
53
|
+
meeting.endTime = value[1];
|
54
|
+
};
|
55
|
+
const onEditDate = () => {
|
56
|
+
setOpen(true);
|
57
|
+
setEditable(true);
|
58
|
+
// state.open = true;
|
59
|
+
// state.editable = true;
|
60
|
+
};
|
61
|
+
const onOpenChange = (open) => {
|
62
|
+
setEditable(open);
|
63
|
+
// state.editable = true;
|
64
|
+
// if (!open) state.editable = false;
|
65
|
+
};
|
66
|
+
return useObserver(() => (React.createElement("div", { className: "meeting-item-detail" },
|
67
|
+
React.createElement(Skeleton, { loading: !meeting.loaded, active: true },
|
68
|
+
React.createElement("div", { className: "meeting-item-content" },
|
69
|
+
React.createElement(InlineEdit, { editable: !readonly, defaultValue: meeting.name, content: v => React.createElement("div", { className: "meeting-item-name" }, v.store.value), onSave: value => onSave(value, meeting.name, { Name: value }) }),
|
70
|
+
editable && !readonly ? (React.createElement("div", { style: { padding: "5px 0" } },
|
71
|
+
React.createElement(DatePicker.RangePicker, { autoFocus: true, showTime: { format: "HH:mm" }, format: "YYYY-MM-DD HH:mm", value: [moment(meeting.startTime), moment(meeting.endTime)], open: open, onChange: onChangeDate, onOpenChange: onOpenChange, onOk: onOk }))) : (React.createElement("div", null,
|
72
|
+
React.createElement("span", { className: "meeting-clock", onClick: onEditDate },
|
73
|
+
React.createElement(FAIcon, { icon: faClock }),
|
74
|
+
meeting.startTime
|
75
|
+
? moment(meeting.startTime).format("hh:mm A") +
|
76
|
+
" to " +
|
77
|
+
moment(meeting.endTime).format("hh:mm A")
|
78
|
+
: "Add Meeting Time"),
|
79
|
+
React.createElement("span", { className: "duration" },
|
80
|
+
React.createElement(FAIcon, { icon: faStopwatch }),
|
81
|
+
moment(meeting.startTime).from(moment(meeting.endTime), true)))),
|
82
|
+
React.createElement(Row, { type: "flex", align: "middle" },
|
83
|
+
React.createElement("div", { className: "meeting-clock" },
|
84
|
+
React.createElement(InlineEdit, { editable: !readonly, defaultValue: meeting.venue || "", content: v => (React.createElement(React.Fragment, null,
|
85
|
+
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
86
|
+
v.store.value || "Venue")), onSave: value => onSave(value, meeting.venue || "", { Venue: value }) })),
|
87
|
+
React.createElement(FAIcon, { icon: faUserFriends, flip: "horizontal", color: "#666", size: "sm" }),
|
88
|
+
React.createElement(AvatarList, { list: meeting.members || [], editable: !readonly, onChange: onChangeMember }))),
|
89
|
+
React.createElement(ToolBar, { id: id, move: false, url: !!onExpand ? "" : `/meetings/${id}`, expand: !!onExpand, onDelete: onDelete, lock: meeting.status === "Draft" || meeting.status === "Normal", unlock: meeting.status === "Readonly",
|
90
|
+
// onMove={onMove}
|
91
|
+
reload: true, onLock: onLock, onUnlock: onUnlock, onPaste: () => store.onPaste(() => agendaStore.move(store.moveIds, id)), onReLoad: onReLoad, onExpand: onExpand })))));
|
92
|
+
};
|
93
|
+
export default MeetingHeader;
|
94
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAU,UAAU,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,uDAAuD,CAAC;AAClF,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C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20px;
|
7
|
+
.meeting-item-content {
|
8
|
+
flex: 1;
|
9
|
+
.meeting-item-name {
|
10
|
+
font-weight: 600;
|
11
|
+
font-size: 16px;
|
12
|
+
margin-bottom: 5px;
|
13
|
+
// line-height: 28px;
|
14
|
+
color: #000;
|
15
|
+
}
|
16
|
+
.meeting-clock {
|
17
|
+
display: inline-block;
|
18
|
+
min-width: 180px;
|
19
|
+
margin-right: 10px;
|
20
|
+
}
|
21
|
+
.svg-inline--fa {
|
22
|
+
margin-right: 5px;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
@@ -1,68 +1,19 @@
|
|
1
1
|
import classnames from "classnames";
|
2
2
|
import React, { useState } from "react";
|
3
|
-
import { faClock, faMapMarkerAlt, faStopwatch
|
3
|
+
import { faClock, faMapMarkerAlt, faStopwatch } from "@fortawesome/pro-light-svg-icons";
|
4
4
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
5
|
-
import {
|
5
|
+
import { Tooltip } from "@voplus/antd";
|
6
6
|
import { InlineEdit } from "@voplus/morpho-ui";
|
7
7
|
import { useObserver } from "mobx-react-lite";
|
8
8
|
import moment from "moment";
|
9
9
|
import AvatarList from "../../../../components/AvatarList";
|
10
|
-
import { useMeeting
|
10
|
+
import { useMeeting } from "../../../../data/meeting";
|
11
11
|
import "./index.less";
|
12
12
|
import { State } from "./state";
|
13
13
|
const MeetingItem = (props) => {
|
14
|
-
const meetingStore = useMeetingStore();
|
15
14
|
const [state] = useState(new State());
|
16
15
|
state.meeting = useMeeting(props.id, { reload: false });
|
17
|
-
|
18
|
-
const onChangeMember = async (ids) => {
|
19
|
-
await meetingStore.edit(state.meeting.id, { MemberIds: ids });
|
20
|
-
};
|
21
|
-
const onSave = async (v, name, params) => {
|
22
|
-
if (v.trim() === name)
|
23
|
-
return;
|
24
|
-
await meetingStore.edit(state.meeting.id, params);
|
25
|
-
};
|
26
|
-
const onOk = async (dates) => {
|
27
|
-
await meetingStore.edit(state.meeting.id, {
|
28
|
-
StartTime: new Date(new Date(dates[0])),
|
29
|
-
EndTime: new Date(new Date(dates[1]))
|
30
|
-
});
|
31
|
-
};
|
32
|
-
const onChangeDate = (value, dateString) => {
|
33
|
-
state.meeting.startTime = value[0];
|
34
|
-
state.meeting.endTime = value[1];
|
35
|
-
};
|
36
|
-
const onEditDate = () => {
|
37
|
-
state.open = true;
|
38
|
-
state.editable = true;
|
39
|
-
};
|
40
|
-
const onOpenChange = (open) => {
|
41
|
-
state.editable = true;
|
42
|
-
if (!open)
|
43
|
-
state.editable = false;
|
44
|
-
};
|
45
|
-
return useObserver(() => (React.createElement(React.Fragment, null, props.isDetail ? (React.createElement("div", { className: "meeting-item-detail" },
|
46
|
-
React.createElement(InlineEdit, { editable: !readonly, 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 }) }),
|
47
|
-
state.editable && !readonly ? (React.createElement("div", { style: { padding: "5px 0" } },
|
48
|
-
React.createElement(DatePicker.RangePicker, { autoFocus: true, showTime: { format: "HH:mm" }, format: "YYYY-MM-DD HH:mm", value: [moment(state.meeting.startTime), moment(state.meeting.endTime)], open: state.open, onChange: onChangeDate, onOpenChange: onOpenChange, onOk: onOk }))) : (React.createElement("div", null,
|
49
|
-
React.createElement("span", { className: "meeting-clock", onClick: onEditDate },
|
50
|
-
React.createElement(FAIcon, { icon: faClock }),
|
51
|
-
state.meeting.startTime
|
52
|
-
? moment(state.meeting.startTime).format("hh:mm A") +
|
53
|
-
" to " +
|
54
|
-
moment(state.meeting.endTime).format("hh:mm A")
|
55
|
-
: "Add Meeting Time"),
|
56
|
-
React.createElement("span", { className: "duration" },
|
57
|
-
React.createElement(FAIcon, { icon: faStopwatch }),
|
58
|
-
moment(state.meeting.startTime).from(moment(state.meeting.endTime), true)))),
|
59
|
-
React.createElement(Row, { type: "flex", align: "middle" },
|
60
|
-
React.createElement("div", { className: "meeting-clock" },
|
61
|
-
React.createElement(InlineEdit, { editable: !readonly, defaultValue: state.meeting.venue || "", content: v => (React.createElement(React.Fragment, null,
|
62
|
-
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
63
|
-
v.store.value || "Venue")), onSave: value => onSave(value, state.meeting.venue || "", { Venue: value }) })),
|
64
|
-
React.createElement(FAIcon, { icon: faUserFriends, flip: "horizontal", color: "#666", size: "sm" }),
|
65
|
-
React.createElement(AvatarList, { list: state.meeting.members || [], editable: !readonly, onChange: onChangeMember })))) : (React.createElement(Row, { type: "flex", align: "middle", className: classnames("meeting-item-list", props.className) },
|
16
|
+
return useObserver(() => (React.createElement("div", { className: classnames("meeting-item-list") },
|
66
17
|
React.createElement("div", { className: "meeting-item-date" },
|
67
18
|
React.createElement("div", null, moment(state.meeting.startTime).format("DD")),
|
68
19
|
React.createElement("div", { className: "month" }, moment(state.meeting.startTime).format("ddd"))),
|
@@ -83,7 +34,7 @@ const MeetingItem = (props) => {
|
|
83
34
|
state.meeting.venue && (React.createElement("div", null,
|
84
35
|
React.createElement(FAIcon, { icon: faMapMarkerAlt }),
|
85
36
|
state.meeting.venue))),
|
86
|
-
React.createElement(AvatarList, { list: state.meeting.members || [], editable: false
|
37
|
+
React.createElement(AvatarList, { list: state.meeting.members || [], editable: false })))));
|
87
38
|
};
|
88
39
|
export default MeetingItem;
|
89
40
|
//# 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,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,KAAK,EAAE,
|
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,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,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-1,9 +1,14 @@
|
|
1
1
|
@import "~@voplus/antd/es/style/themes/default.less";
|
2
2
|
@import "../../../../styles/common.less";
|
3
3
|
:global {
|
4
|
-
.meeting-item-list
|
5
|
-
|
4
|
+
.meeting-item-list {
|
5
|
+
display: flex;
|
6
|
+
flex: 1;
|
7
|
+
position: relative;
|
8
|
+
padding: 5px 10px 5px 0;
|
9
|
+
border-bottom: 1px solid @border-color-base;
|
6
10
|
font-size: 13px;
|
11
|
+
cursor: pointer;
|
7
12
|
.meeting-item-name {
|
8
13
|
font-size: 15px;
|
9
14
|
line-height: 26px;
|
@@ -17,12 +22,6 @@
|
|
17
22
|
.svg-inline--fa {
|
18
23
|
margin-right: 5px;
|
19
24
|
}
|
20
|
-
}
|
21
|
-
.meeting-item-list {
|
22
|
-
position: relative;
|
23
|
-
padding: 5px 10px 5px 0;
|
24
|
-
border-bottom: 1px solid @border-color-base;
|
25
|
-
cursor: pointer;
|
26
25
|
.meeting-item-date {
|
27
26
|
position: relative;
|
28
27
|
width: 70px;
|
@@ -32,7 +31,6 @@
|
|
32
31
|
text-align: center;
|
33
32
|
.month {
|
34
33
|
color: #777;
|
35
|
-
font-size: 13px;
|
36
34
|
}
|
37
35
|
}
|
38
36
|
.meeting-item-date:before {
|
@@ -57,76 +55,4 @@
|
|
57
55
|
height: 100%;
|
58
56
|
border-left: 2px solid #faad14;
|
59
57
|
}
|
60
|
-
.meeting-item-detail {
|
61
|
-
flex: 1;
|
62
|
-
.meeting-item-name {
|
63
|
-
font-weight: 600;
|
64
|
-
font-size: 16px;
|
65
|
-
}
|
66
|
-
}
|
67
|
-
|
68
|
-
.meeting-item {
|
69
|
-
min-width: 200px;
|
70
|
-
line-height: 22px;
|
71
|
-
font-size: 13px;
|
72
|
-
color: #666;
|
73
|
-
text-align: left;
|
74
|
-
.horizontal-item {
|
75
|
-
position: relative;
|
76
|
-
padding: 5px 0;
|
77
|
-
// line-height: 22px;
|
78
|
-
border-bottom: 1px solid @border-color-base;
|
79
|
-
.horizontal-aside {
|
80
|
-
flex: 1;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
.horizontal-item:before {
|
84
|
-
content: "";
|
85
|
-
position: absolute;
|
86
|
-
left: 0;
|
87
|
-
height: 100%;
|
88
|
-
border-left: 2px solid #faad14;
|
89
|
-
}
|
90
|
-
.vertical-item {
|
91
|
-
h5 {
|
92
|
-
padding-bottom: 5px;
|
93
|
-
}
|
94
|
-
}
|
95
|
-
.meeting-date {
|
96
|
-
position: relative;
|
97
|
-
width: 70px;
|
98
|
-
color: #000;
|
99
|
-
font-size: 16px;
|
100
|
-
text-align: center;
|
101
|
-
.month {
|
102
|
-
color: #777;
|
103
|
-
font-size: 13px;
|
104
|
-
}
|
105
|
-
}
|
106
|
-
.meeting-date:before {
|
107
|
-
content: "";
|
108
|
-
position: absolute;
|
109
|
-
top: 0;
|
110
|
-
right: 0;
|
111
|
-
height: 100%;
|
112
|
-
border-right: 1px solid @border-color-base;
|
113
|
-
}
|
114
|
-
h5 {
|
115
|
-
font-size: 14px;
|
116
|
-
color: #000;
|
117
|
-
font-weight: 500;
|
118
|
-
}
|
119
|
-
.svg-inline--fa {
|
120
|
-
margin-right: 5px;
|
121
|
-
}
|
122
|
-
.text {
|
123
|
-
display: inline-block;
|
124
|
-
min-width: 160px;
|
125
|
-
margin-right: 20px;
|
126
|
-
}
|
127
|
-
.description {
|
128
|
-
line-height: 18px;
|
129
|
-
margin: 15px 0;
|
130
|
-
}
|
131
|
-
}
|
132
58
|
}
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import QuickViewDialog from "@voplus/morpho-document/es/components/QuickViewDialog";
|
2
|
+
import { useObserver } from "mobx-react-lite";
|
3
|
+
import React from "react";
|
4
|
+
import MeetingDescription from "../MeetingDescription";
|
5
|
+
import MeetingHeader from "../MeetingHeader";
|
6
|
+
const MeetingQuickViewDialog = (props) => {
|
7
|
+
return useObserver(() => (React.createElement(QuickViewDialog, { id: props.id, visible: props.visible, onClose: props.onCancel, header: React.createElement(MeetingHeader, { id: props.id, reload: true }) },
|
8
|
+
React.createElement(MeetingDescription, { id: props.id }))));
|
9
|
+
};
|
10
|
+
export default MeetingQuickViewDialog;
|
11
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,eAAe,MAAM,uDAAuD,CAAC;AACpF,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,kBAAkB,MAAM,uBAAuB,CAAC;AACvD,OAAO,aAAa,MAAM,kBAAkB,CAAC;AAE7C,MAAM,sBAAsB,GAAG,CAAC,KAA6D,EAAE,EAAE;IAChG,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,eAAe,IACf,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,OAAO,EAAE,KAAK,CAAC,OAAO,EACtB,OAAO,EAAE,KAAK,CAAC,QAAQ,EACvB,MAAM,EAAE,oBAAC,aAAa,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,MAAM,EAAE,IAAI,GAAI;QAErD,oBAAC,kBAAkB,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,GAAI,CACnB,CAClB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
File without changes
|
@@ -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,IAA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CAAC,CAAC;IAClC,CAAC,CAAC,CAAC;IACH,MAAM,MAAM,GAAG,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,46 +1,40 @@
|
|
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" },
|
@@ -50,23 +44,17 @@ const MeetingTabView = () => {
|
|
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,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAE/D,OAAO,EA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AC,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;
|