@voplus/morpho-workspace 1.1.0-dev038 → 1.1.0-dev040
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +9 -0
- package/es/controls/MoreOperateDropdown/index.d.ts +1 -1
- package/es/controls/NewCardButton/index.d.ts +6 -0
- package/es/controls/NewCardButton/index.js +9 -0
- package/es/controls/NewCardButton/index.js.map +1 -0
- package/es/controls/NewCardButton/index.less +22 -0
- package/es/modules/board/components/BoardPropertiesView/index.d.ts +7 -0
- package/es/modules/board/components/BoardPropertiesView/index.js +35 -0
- package/es/modules/board/components/BoardPropertiesView/index.js.map +1 -0
- package/es/modules/board/components/BoardPropertiesView/index.less +12 -0
- package/es/modules/board/pages/BoardViewList/index.js +13 -4
- package/es/modules/board/pages/BoardViewList/index.js.map +1 -1
- package/es/modules/board/pages/BoardViewList/state.d.ts +0 -1
- package/es/modules/board/pages/BoardViewList/state.js +0 -6
- package/es/modules/board/pages/BoardViewList/state.js.map +1 -1
- package/es/modules/calendar/components/ActionCard/index.d.ts +7 -0
- package/es/modules/calendar/components/ActionCard/index.js +12 -0
- package/es/modules/calendar/components/ActionCard/index.js.map +1 -0
- package/es/modules/calendar/components/CalendarEventContent/index.d.ts +7 -0
- package/es/modules/calendar/components/CalendarEventContent/index.js +10 -0
- package/es/modules/calendar/components/CalendarEventContent/index.js.map +1 -0
- package/es/modules/calendar/pages/CalendarMonth/index.js +39 -29
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/calendar/pages/CalendarMonth/index.less +25 -0
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js +36 -52
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.js.map +1 -1
- package/es/modules/meeting/components/AgendaList/AgendaItem/index.less +34 -70
- package/es/modules/meeting/components/MeetingHeader/index.d.ts +0 -1
- package/es/modules/meeting/components/MeetingHeader/index.js +35 -52
- package/es/modules/meeting/components/MeetingHeader/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingHeader/index.less +5 -22
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js +1 -1
- package/es/modules/meeting/components/MeetingQuickViewDialog/index.js.map +1 -1
- package/es/pages/Project/ProjectDefaultView/index.js +1 -1
- package/es/pages/Project/ProjectDefaultView/index.js.map +1 -1
- package/es/pages/Space/components/Notes/ColorSelect/index.d.ts +10 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.js +29 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.js.map +1 -0
- package/es/pages/Space/components/Notes/ColorSelect/index.less +17 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.d.ts +10 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js +40 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.js.map +1 -0
- package/es/pages/Space/components/Notes/NewNoteDialog/index.less +63 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.js +33 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.js.map +1 -0
- package/es/pages/Space/components/Notes/TextNoteCard/index.less +56 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.d.ts +5 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.js +19 -0
- package/es/pages/Space/components/Notes/TextNoteCard/state.js.map +1 -0
- package/es/pages/Space/components/Notes/index.d.ts +3 -2
- package/es/pages/Space/components/Notes/index.js +31 -6
- package/es/pages/Space/components/Notes/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/index.js +2 -2
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Work/components/ActionPlan/Item.js +6 -3
- package/es/pages/Work/components/ActionPlan/Item.js.map +1 -1
- package/es/pages/Work/components/ActionPlan/index.js +4 -3
- package/es/pages/Work/components/ActionPlan/index.js.map +1 -1
- package/es/pages/Work/components/ActionPlan/index.less +2 -1
- package/es/pages/Work/components/ActionPlan/state.d.ts +1 -1
- package/es/pages/Work/components/ScheduleActionForm/index.d.ts +1 -1
- package/es/pages/Work/components/ScheduleActionForm/index.js +1 -1
- package/es/pages/Work/components/ScheduleActionForm/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.d.ts +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/index.js.map +1 -1
- package/es/pages/Work/components/WorkSummaryCards/WorkActionsCard/state.d.ts +1 -1
- package/es/pages/Work/components/WorkSummaryCards/index.less +13 -10
- package/es/pages/Work/components/WorkTrail/index.less +20 -18
- package/es/pages/Work/data/WorkContext.d.ts +1 -1
- package/es/pages/Work/data/hook.d.ts +1 -6
- package/es/pages/Work/data/hook.js +1 -35
- package/es/pages/Work/data/hook.js.map +1 -1
- package/es/pages/Work/data/index.d.ts +0 -2
- package/es/pages/Work/data/index.js +0 -2
- package/es/pages/Work/data/index.js.map +1 -1
- package/es/pages/Work/data/interfaces.d.ts +0 -16
- package/package.json +6 -4
- package/es/modules/calendar/components/TaskCard/index.d.ts +0 -6
- package/es/modules/calendar/components/TaskCard/index.js +0 -16
- package/es/modules/calendar/components/TaskCard/index.js.map +0 -1
- package/es/modules/calendar/components/TaskCard/index.less +0 -17
- package/es/modules/calendar/components/TaskCard/state.d.ts +0 -16
- package/es/modules/calendar/components/TaskCard/state.js +0 -58
- package/es/modules/calendar/components/TaskCard/state.js.map +0 -1
- package/es/modules/calendar/pages/CalendarWeek/index.d.ts +0 -0
- package/es/modules/calendar/pages/CalendarWeek/index.js +0 -1
- package/es/modules/calendar/pages/CalendarWeek/index.js.map +0 -1
- package/es/pages/Space/components/Notes/index.less +0 -0
- package/es/pages/Space/components/TextNoteCard/index.js +0 -22
- package/es/pages/Space/components/TextNoteCard/index.js.map +0 -1
- package/es/pages/Space/components/TextNoteCard/index.less +0 -29
- package/es/pages/Work/data/ActionStore.d.ts +0 -65
- package/es/pages/Work/data/ActionStore.js +0 -90
- package/es/pages/Work/data/ActionStore.js.map +0 -1
- package/es/pages/Work/data/useActionListEffect.d.ts +0 -7
- package/es/pages/Work/data/useActionListEffect.js +0 -15
- package/es/pages/Work/data/useActionListEffect.js.map +0 -1
- /package/es/pages/Space/components/{TextNoteCard → Notes/TextNoteCard}/index.d.ts +0 -0
package/changelog.md
CHANGED
@@ -1,3 +1,12 @@
|
|
1
|
+
【Improvement】Board Default View 新增 Tool 打開 Board 的 PropertiesView
|
2
|
+
把 Action 相關代码移去 morpho-collaboration-actions
|
3
|
+
|
4
|
+
# 21 Aug 2020
|
5
|
+
|
6
|
+
【Improvement】Work Summary, Trial Heading 下方要和其它地方保持一致性有橫線
|
7
|
+
【Improvement】Project Nav 使用 haha 新加的收起功能
|
8
|
+
improvement:Meeting Agenda Item UI 改進
|
9
|
+
|
1
10
|
## 13 Jul 2020
|
2
11
|
|
3
12
|
[Fix]Meeting Agenda 下拉目录 Item 不能按
|
@@ -10,7 +10,7 @@ declare const MoreOperateDropdown: {
|
|
10
10
|
access?: boolean | undefined;
|
11
11
|
url?: string | undefined;
|
12
12
|
shape?: boolean | undefined;
|
13
|
-
size?:
|
13
|
+
size?: "small" | "middle" | "large" | undefined;
|
14
14
|
onEdit?: ((params?: any) => void) | undefined;
|
15
15
|
onDelete?: ((params?: any) => void) | undefined;
|
16
16
|
onMove?: (() => void) | undefined;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { PlusOutlined } from "@ant-design/icons";
|
3
|
+
import React from "react";
|
4
|
+
const NewCardButton = (props) => {
|
5
|
+
return (React.createElement("span", { className: "new-card-button", onClick: props.onClick },
|
6
|
+
React.createElement(PlusOutlined, null)));
|
7
|
+
};
|
8
|
+
export default NewCardButton;
|
9
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/controls/NewCardButton/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,aAAa,GAAG,CAAC,KAA+B,EAAE,EAAE;IACzD,OAAO,CACN,8BAAM,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO;QACvD,oBAAC,YAAY,OAAG,CACV,CACP,CAAC;AACH,CAAC,CAAC;AACF,eAAe,aAAa,CAAC"}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
@import "~@voplus/antd/es/style/themes/default.less";
|
2
|
+
:global {
|
3
|
+
.new-card-button {
|
4
|
+
display: block;
|
5
|
+
width: 36px;
|
6
|
+
height: 24px;
|
7
|
+
line-height: 24px;
|
8
|
+
margin-left: -1rem;
|
9
|
+
text-align: center;
|
10
|
+
font-size: 17px;
|
11
|
+
color: #fff;
|
12
|
+
cursor: pointer;
|
13
|
+
border-radius: 2px;
|
14
|
+
background-color: @primary-color;
|
15
|
+
transition: box-shadow 0.4s, background-color 0.3s;
|
16
|
+
&:hover {
|
17
|
+
background-color: #40a9ff;
|
18
|
+
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px 0 rgba(0, 0, 0, 0.08),
|
19
|
+
0 9px 28px 8px rgba(0, 0, 0, 0.05);
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { Archive, Reload } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
3
|
+
import React, { useState } from "react";
|
4
|
+
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
5
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
6
|
+
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
7
|
+
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
8
|
+
import { Skeleton } from "@voplus/antd";
|
9
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
10
|
+
import { useBoard } from "../../../../data/board";
|
11
|
+
import { useObserver } from "mobx-react-lite";
|
12
|
+
const BoardPropertiesView = (props) => {
|
13
|
+
const id = props.id;
|
14
|
+
const board = useBoard(id, { reload: false });
|
15
|
+
const [loaded, setLoaded] = useState(true);
|
16
|
+
return useObserver(() => (React.createElement("div", { className: "module-detail-view" }, loaded && (React.createElement(React.Fragment, null,
|
17
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement("div", { className: "tools-bar" },
|
18
|
+
React.createElement(ToolBar, { id: id },
|
19
|
+
React.createElement(Reload, { action: onReload }),
|
20
|
+
React.createElement(Archive, null))), descriptionVisible: false }),
|
21
|
+
React.createElement(DocumentTabs, { id: id, docTab: false, details: React.createElement("div", { className: "board-properties-view" },
|
22
|
+
board.loading ? (React.createElement("div", { className: "board-description" },
|
23
|
+
React.createElement(Skeleton, { active: true }),
|
24
|
+
" ")) : (React.createElement(DescriptionEditor, { id: id, description: board.description, readonly: board.readonly })),
|
25
|
+
React.createElement(DocumentList, { id: id, multiple: true, exclude: ["BoardColumn"] })) }))))));
|
26
|
+
/** reload data */
|
27
|
+
function onReload() {
|
28
|
+
setLoaded(false);
|
29
|
+
setTimeout(() => {
|
30
|
+
setLoaded(true);
|
31
|
+
}, 100);
|
32
|
+
}
|
33
|
+
};
|
34
|
+
export default BoardPropertiesView;
|
35
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/BoardPropertiesView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AACtF,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,iBAAiB,M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CAAC,CAChB,6BAAK,SAAS,EAAC,mBAAmB;oBACjC,oBAAC,QAAQ,IAAC,MAAM,SAAG;oBAAC,GAAG,CAClB,CACN,CAAC,CAAC,CAAC,CACH,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,KAAK,CAAC,WAAW,EAC9B,QAAQ,EAAE,KAAK,CAAC,QAAQ,GACvB,CACF;gBACD,oBAAC,YAAY,IAAC,EAAE,EAAE,EAAE,EAAE,QAAQ,QAAC,OAAO,EAAE,CAAC,aAAa,CAAC,GAAI,CACtD,GAEN,CACc,CACjB,CACI,CACN,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AACF,eAAe,mBAAmB,CAAC"}
|
@@ -1,8 +1,11 @@
|
|
1
|
+
import { Archive, Sidebar } from "@voplus/morpho-document/es/controls/ToolBar/buttons";
|
1
2
|
import React, { useState } from "react";
|
2
3
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
3
4
|
import Board from "../../components/Board";
|
5
|
+
import BoardPropertiesView from "../../components/BoardPropertiesView";
|
4
6
|
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
5
7
|
import { State } from "./state";
|
8
|
+
import ToolBar from "@voplus/morpho-document/es/controls/ToolBar/ToolBar2";
|
6
9
|
import styles from "./index.less";
|
7
10
|
import { useBoard } from "../../../../data/board";
|
8
11
|
import { useObserver } from "mobx-react-lite";
|
@@ -12,19 +15,25 @@ const BoardViewList = () => {
|
|
12
15
|
const [asideContext] = useState(AsideContent.createContext());
|
13
16
|
const match = useRouteMatch();
|
14
17
|
const [state] = useState(new State());
|
15
|
-
|
16
|
-
state.board = useBoard(
|
18
|
+
const id = match.params.id;
|
19
|
+
state.board = useBoard(id, { reload: false });
|
17
20
|
/** set tab title */
|
18
21
|
const tab = useTabItem();
|
19
22
|
useObserver(() => {
|
20
23
|
var _a;
|
21
24
|
tab.title = (_a = state.board.name) !== null && _a !== void 0 ? _a : "Decument";
|
22
25
|
});
|
26
|
+
const AsideElement = React.createElement(BoardPropertiesView, { id: id });
|
23
27
|
return useObserver(() => (React.createElement("div", { className: styles["vo-layout"] },
|
24
28
|
React.createElement(AsideContent, { context: asideContext },
|
25
29
|
React.createElement("div", { className: "vo-layout-main" },
|
26
|
-
React.createElement(DocumentHeader, { id:
|
27
|
-
|
30
|
+
React.createElement(DocumentHeader, { id: id, size: "h3", quickVisible: false, quickDataBarAlign: "left", clickNameEffect: "edit", autoSaveName: true, tools: React.createElement("div", { className: "tools-bar" },
|
31
|
+
React.createElement(ToolBar, { id: id },
|
32
|
+
React.createElement(Sidebar, { action: () => asideContext.asideContent
|
33
|
+
? asideContext.closeAside()
|
34
|
+
: asideContext.openAside(AsideElement, { span: 12 }) }),
|
35
|
+
React.createElement(Archive, null))), descriptionVisible: false }),
|
36
|
+
React.createElement(Board, { parentId: id }))))));
|
28
37
|
};
|
29
38
|
export default BoardViewList;
|
30
39
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAExC,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE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K,IAAC,QAAQ,EAAE,EAAE,GAAI,CAClB,CACQ,CACV,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -1,13 +1,7 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
2
|
import { observable } from "mobx";
|
3
3
|
export class State {
|
4
|
-
constructor() {
|
5
|
-
this.id = "";
|
6
|
-
}
|
7
4
|
}
|
8
|
-
__decorate([
|
9
|
-
observable
|
10
|
-
], State.prototype, "id", void 0);
|
11
5
|
__decorate([
|
12
6
|
observable
|
13
7
|
], State.prototype, "board", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/pages/BoardViewList/state.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,MAAM,OAAO,KAAK;CAEjB;AADY;IAAX,UAAU;oCAAsB"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { useAction } from "@voplus/morpho-collaboration-action/es/data";
|
3
|
+
import { useObserver } from "mobx-react-lite";
|
4
|
+
const ActionCard = (props) => {
|
5
|
+
const action = useAction(props.id, { reload: false });
|
6
|
+
return useObserver(() => (React.createElement("div", { className: "calendar-action-card", onClick: props.onClick },
|
7
|
+
action.type,
|
8
|
+
" ",
|
9
|
+
action.note)));
|
10
|
+
};
|
11
|
+
export default ActionCard;
|
12
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/components/ActionCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAExC,OAAO,EAAE,SAAS,EAAE,MAAM,6CAA6C,CAAC;AACxE,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,UAAU,GAAG,CAAC,KAAuD,EAAE,EAAE;IAC9E,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC;IAEtD,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,6BAAK,SAAS,EAAC,sBAAsB,EAAC,OAAO,EAAE,KAAK,CAAC,OAAO;QAC1D,MAAM,CAAC,IAAI;;QAAG,MAAM,CAAC,IAAI,CACrB,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import ActionCard from "../../components/ActionCard";
|
2
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
3
|
+
import React from "react";
|
4
|
+
import { useObserver } from "mobx-react-lite";
|
5
|
+
const CalendarEventContent = (props) => {
|
6
|
+
const { id, type, onClick } = props;
|
7
|
+
return useObserver(() => (React.createElement(React.Fragment, null, type === "Action" ? (React.createElement(ActionCard, { id: id, onClick: onClick })) : (React.createElement(DocumentHeader, { id: id, tagsVisible: false, preVisible: false, quickDataBarVisible: false, className: "calendar-document-card", onClickName: onClick, toolsVisible: false })))));
|
8
|
+
};
|
9
|
+
export default CalendarEventContent;
|
10
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/components/CalendarEventContent/index.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,oBAAoB,GAAG,CAAC,KAAyD,EAAE,EAAE;IAC1F,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAEpC,OAAO,WAAW,CAAC,GAAG,EAAE,CAAC,CACxB,oBAAC,KAAK,CAAC,QAAQ,QACb,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,CACpB,oBAAC,UAAU,IAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,OAAO,GAAI,CACxC,CAAC,CAAC,CAAC,CACH,oBAAC,cAAc,IACd,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,KAAK,EAClB,UAAU,EAAE,KAAK,EACjB,mBAAmB,EAAE,KAAK,EAC1B,SAAS,EAAC,wBAAwB,EAClC,WAAW,EAAE,OAAO,EACpB,YAAY,EAAE,KAAK,GAClB,CACF,CACe,CACjB,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -2,24 +2,26 @@ import { Button, DatePicker, Select } from "@voplus/antd";
|
|
2
2
|
import React, { useCallback, useRef, useState } from "react";
|
3
3
|
import { faAngleLeft, faAngleRight } from "@fortawesome/pro-light-svg-icons";
|
4
4
|
import { useCalendarListEffect, useCalendarStore } from "../../../../data/calendar";
|
5
|
+
import ActionPropertiesView from "@voplus/morpho-collaboration-action/es/components/FollowupAction/PropertiesView";
|
6
|
+
import { AsideContent } from "@voplus/morpho-ui";
|
7
|
+
import CalendarEventContent from "../../components/CalendarEventContent";
|
5
8
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
6
9
|
import FullCalendar from "@fullcalendar/react";
|
7
10
|
import { State } from "./state";
|
8
|
-
import
|
11
|
+
import TaskPropertiesView from "../../../tasks/components/TaskPropertiesView";
|
9
12
|
import dayGridPlugin from "@fullcalendar/daygrid";
|
10
13
|
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
|
11
14
|
import interactionPlugin from "@fullcalendar/interaction";
|
12
15
|
import moment from "moment";
|
13
16
|
import styles from "./index.less";
|
14
17
|
import timeGridPlugin from "@fullcalendar/timegrid";
|
15
|
-
import { useApplicationContext } from "@voplus/morpho-data";
|
16
18
|
import { useObserver } from "mobx-react-lite";
|
17
19
|
import { useTabItem } from "@voplus/morpho-data";
|
18
20
|
const CalendarMonth = () => {
|
19
21
|
var _a;
|
20
22
|
const tab = useTabItem();
|
21
23
|
tab.title = "Calendar";
|
22
|
-
const
|
24
|
+
const [asideContext] = useState(AsideContent.createContext());
|
23
25
|
const calendar = useCalendarStore();
|
24
26
|
const Option = Select.Option;
|
25
27
|
const { MonthPicker, WeekPicker } = DatePicker;
|
@@ -45,33 +47,41 @@ const CalendarMonth = () => {
|
|
45
47
|
/** 在呈现事件时触发。用于修改其DOM的钩子。 */
|
46
48
|
const eventContent = (info) => {
|
47
49
|
const type = info.event.extendedProps.source.type;
|
48
|
-
|
50
|
+
const id = info.event.extendedProps.source.id;
|
51
|
+
return (React.createElement(CalendarEventContent, { id: id, type: type, onClick: () => {
|
52
|
+
asideContext.openAside(React.createElement(AsideElement, { id: id, type: type }), { span: 10 });
|
53
|
+
} }));
|
49
54
|
};
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
React.createElement(
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
55
|
+
const AsideElement = (props) => {
|
56
|
+
const { id, type } = props;
|
57
|
+
return (React.createElement("div", { className: "page-default-view_aside" }, type === "Action" ? React.createElement(ActionPropertiesView, { id: id }) : React.createElement(TaskPropertiesView, { id: id })));
|
58
|
+
};
|
59
|
+
return useObserver(() => (React.createElement(AsideContent, { context: asideContext },
|
60
|
+
React.createElement("div", { className: styles["calendar-view"], ref: boxRef },
|
61
|
+
React.createElement("div", { className: "calendar-header" },
|
62
|
+
React.createElement("div", { className: "calendar-left" },
|
63
|
+
React.createElement("span", { className: "calendar-fa-icon" },
|
64
|
+
React.createElement(FAIcon, { icon: faCalendar })),
|
65
|
+
React.createElement(Select, { defaultValue: "month", style: { width: 105 }, onChange: handleChange },
|
66
|
+
React.createElement(Option, { value: "month" }, "Month"),
|
67
|
+
React.createElement(Option, { value: "week" }, "Week"),
|
68
|
+
React.createElement(Option, { value: "day" }, "Day"))),
|
69
|
+
React.createElement("div", { className: "calendar-center" },
|
70
|
+
React.createElement(Button, { className: "calendar-today", onClick: () => calendarApi.today() }, "Today"),
|
71
|
+
React.createElement(Button, { className: "calendar-prev", onClick: () => calendarApi.prev() },
|
72
|
+
React.createElement(FAIcon, { icon: faAngleLeft })),
|
73
|
+
React.createElement("div", { className: "calendar-title" },
|
74
|
+
state.type === "month" && (React.createElement(MonthPicker, { className: "calendar-ant-picker", defaultValue: moment(currentTime), dropdownClassName: styles["calendar-dropdown"], placeholder: "Select Month", onChange: onChange })),
|
75
|
+
state.type === "week" && (React.createElement(WeekPicker, { className: "calendar-ant-picker", defaultValue: moment(currentTime), dropdownClassName: styles["calendar-dropdown"], placeholder: "Select Week", onChange: onChange })),
|
76
|
+
state.type === "day" && (React.createElement(DatePicker, { showToday: false, className: "calendar-ant-picker", defaultValue: moment(currentTime), dropdownClassName: styles["calendar-dropdown"], placeholder: "Select Date", onChange: onChange })),
|
77
|
+
state.title),
|
78
|
+
React.createElement(Button, { className: "calendar-next", onClick: () => calendarApi.next() },
|
79
|
+
React.createElement(FAIcon, { icon: faAngleRight })))),
|
80
|
+
React.createElement(FullCalendar, { ref: calendarRef, plugins: [interactionPlugin, dayGridPlugin, timeGridPlugin], editable: true,
|
81
|
+
/** 限制一天中显示的事件数。其余的将显示在弹出窗口中。*/
|
82
|
+
dayMaxEventRows: 3, headerToolbar: false, height: 650,
|
83
|
+
//events={(dataInfo)=>getDate(dataInfo)}//这个要放在eventSources前,不然eventSources数据会被覆盖
|
84
|
+
eventSources: [state.listOptions], eventDrop: eventDrop, eventContent: eventContent, datesSet: datesRender })))));
|
75
85
|
/** 切换month,week,day视图 */
|
76
86
|
function handleChange(value) {
|
77
87
|
state.type = value;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,WAAW,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC7D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAEpF,OAAO,oBAAoB,MAAM,iFAAiF,CAAC;AACnH,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,oBAAoB,MAAM,uCAAuC,CAAC;AACzE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,YAAY,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,kBAAkB,MAAM,8CAA8C,CAAC;AAC9E,OAAO,aAAa,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,iBAAiB,MAAM,2BAA2B,CAAC;AAC1D,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,MAAM,MAAM,cA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AC,CAAC;QAC7D,IAAI,KAAK,KAAK,KAAK;YAAE,WAAW,CAAC,UAAU,CAAC,aAAa,CAAC,CAAC;IAC5D,CAAC;IAED,gBAAgB;IAChB,SAAS,QAAQ,CAAC,IAAS;QAC1B,cAAc,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;QACzC,WAAW,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED,kBAAkB;IAClB,SAAS,WAAW,CAAC,IAAS;QAC7B,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC;IAC/B,CAAC;IAED,8BAA8B;IAC9B,SAAS,SAAS,CAAC,IAAS;QAC3B,MAAM,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC;QAC7C,IAAI,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,gBAAgB,EAAE;YAC9C,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;SACpC;aAAM;YACN,IAAI,CAAC,MAAM,EAAE,CAAC;SACd;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -154,6 +154,19 @@
|
|
154
154
|
.fc-nonbusiness {
|
155
155
|
background: #f0f0f0;
|
156
156
|
}
|
157
|
+
/** 自动换行 */
|
158
|
+
.fc-daygrid-event {
|
159
|
+
white-space: normal;
|
160
|
+
}
|
161
|
+
.fc-daygrid-body-unbalanced {
|
162
|
+
width: 100% !important;
|
163
|
+
}
|
164
|
+
table.fc-scrollgrid-sync-table {
|
165
|
+
width: 100% !important;
|
166
|
+
}
|
167
|
+
table.fc-col-header {
|
168
|
+
width: 100% !important;
|
169
|
+
}
|
157
170
|
}
|
158
171
|
}
|
159
172
|
|
@@ -187,3 +200,15 @@
|
|
187
200
|
}
|
188
201
|
}
|
189
202
|
}
|
203
|
+
|
204
|
+
:global {
|
205
|
+
.calendar-document-card {
|
206
|
+
padding: 0;
|
207
|
+
background: transparent;
|
208
|
+
}
|
209
|
+
.calendar-action-card {
|
210
|
+
color: #000;
|
211
|
+
font-size: 15px;
|
212
|
+
font-weight: 500;
|
213
|
+
}
|
214
|
+
}
|
@@ -1,12 +1,12 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { State } from "./state";
|
3
|
-
import { Button, Checkbox, Input } from "@voplus/antd";
|
4
3
|
import React, { useEffect, useState } from "react";
|
5
|
-
import { faAngleRight, faBars
|
6
|
-
import { faClipboard, faTasksAlt } from "@fortawesome/pro-duotone-svg-icons";
|
4
|
+
import { faAngleRight, faBars } from "@fortawesome/pro-light-svg-icons";
|
5
|
+
import { faClipboard, faCommentAltLines, faTasksAlt } from "@fortawesome/pro-duotone-svg-icons";
|
7
6
|
import { useAgenda, useAgendaStore } from "../../../../../data/meeting";
|
7
|
+
import { Checkbox } from "@voplus/antd";
|
8
8
|
import DescriptionEditor from "@voplus/morpho-document/es/controls/DescriptionEditor";
|
9
|
-
import
|
9
|
+
import DocumentHeader from "@voplus/morpho-document/es/components/DocumentHeader";
|
10
10
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
11
11
|
import TaskList from "./components/TaskList";
|
12
12
|
import TextEditor from "@voplus/morpho-text/es/components/TextEditor2";
|
@@ -32,11 +32,6 @@ const AgendaItem = (props) => {
|
|
32
32
|
state.loading = false;
|
33
33
|
state.editable = false;
|
34
34
|
};
|
35
|
-
const onEdit = () => {
|
36
|
-
state.name = state.agenda.name;
|
37
|
-
state.description = state.agenda.description || "";
|
38
|
-
state.editable = !state.editable;
|
39
|
-
};
|
40
35
|
useEffect(() => {
|
41
36
|
if (multiple && state.editable)
|
42
37
|
state.editable = false;
|
@@ -44,49 +39,38 @@ const AgendaItem = (props) => {
|
|
44
39
|
useEffect(() => {
|
45
40
|
state.foldable = !!props.preview;
|
46
41
|
}, [preview]);
|
47
|
-
return useObserver(() => (React.createElement(
|
48
|
-
React.createElement("div", { className: "agenda-item"
|
49
|
-
multiple
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
React.createElement(
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
readonly: state.textOnly,
|
80
|
-
onClick: () => (state.textOnly = state.readonly),
|
81
|
-
onBlur: () => (state.textOnly = true),
|
82
|
-
showNoContent: true,
|
83
|
-
className: classnames({ "agenda-minutes": !state.textOnly })
|
84
|
-
} }),
|
85
|
-
React.createElement("div", { className: "agenda-task-list-view" },
|
86
|
-
React.createElement("div", { className: "section-title" },
|
87
|
-
React.createElement(FAIcon, { icon: faTasksAlt, color: "#666" }),
|
88
|
-
" Action Tasks"),
|
89
|
-
React.createElement(TaskList, { id: id, name: state.agenda.name, editable: !state.readonly })))))))));
|
42
|
+
return useObserver(() => (React.createElement("div", { className: "agenda-item-view" },
|
43
|
+
React.createElement("div", { className: "agenda-item-header" },
|
44
|
+
multiple ? (React.createElement(Checkbox, { value: id, className: "select-checkbox" })) : (React.createElement(React.Fragment, null,
|
45
|
+
!multiple &&
|
46
|
+
!state.readonly &&
|
47
|
+
connectDragSource &&
|
48
|
+
connectDragSource(React.createElement("span", { className: classnames("sort-icon-move", { show: state.editable }) },
|
49
|
+
React.createElement(FAIcon, { icon: faBars, color: "#222" }))),
|
50
|
+
React.createElement("span", { className: classnames("agenda-item-index", { show: multiple || state.readonly }) }, `${(index || 0) + 1}.`))),
|
51
|
+
React.createElement(DocumentHeader, { id: id, clickNameEffect: "edit", autoSaveName: true, flagVisible: false, statusVisible: false, preVisible: false, tagsVisible: false, tools: React.createElement(ToolBar, { id: id }), quickDataBarVisible: false }),
|
52
|
+
React.createElement("span", { onClick: onClick, className: classnames("collapse-arrow", { "collapse-active": !state.foldable }) },
|
53
|
+
React.createElement(FAIcon, { icon: faAngleRight }))),
|
54
|
+
state.foldable && (React.createElement("div", { className: classnames("agenda-item-box", { "collapse-inactive": state.foldable }) },
|
55
|
+
React.createElement("div", { className: "section-title" },
|
56
|
+
React.createElement(FAIcon, { icon: faCommentAltLines, color: "#666" }),
|
57
|
+
"Agenda Description"),
|
58
|
+
React.createElement(DescriptionEditor, { id: id, description: state.agenda.description, readonly: state.readonly }),
|
59
|
+
React.createElement("div", { className: "section-title" },
|
60
|
+
React.createElement(FAIcon, { icon: faClipboard, color: "#666" }),
|
61
|
+
"Agenda Minutes"),
|
62
|
+
React.createElement(TextEditor, { id: id, proseMirrorProps: {
|
63
|
+
readonly: state.textOnly,
|
64
|
+
onClick: () => (state.textOnly = state.readonly),
|
65
|
+
onBlur: () => (state.textOnly = true),
|
66
|
+
showNoContent: true,
|
67
|
+
className: classnames({ "agenda-minutes": !state.textOnly })
|
68
|
+
} }),
|
69
|
+
React.createElement("div", { className: "agenda-task-list-view" },
|
70
|
+
React.createElement("div", { className: "section-title" },
|
71
|
+
React.createElement(FAIcon, { icon: faTasksAlt, color: "#666" }),
|
72
|
+
" Action Tasks"),
|
73
|
+
React.createElement(TaskList, { id: id, name: state.agenda.name, editable: !state.readonly })))))));
|
90
74
|
};
|
91
75
|
export default AgendaItem;
|
92
76
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/meeting/components/AgendaList/AgendaItem/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAmB,KAAK,EAAE,MAA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