@voplus/morpho-workspace 6.0.60 → 6.0.61
Sign up to get free protection for your applications and to get access to all the features.
- package/es/modules/calendar/pages/CalendarMonth/index.js +4 -6
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList/index.js +2 -4
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/pin/components/MyPinned/index.js +2 -2
- package/es/modules/pin/components/MyPinned/index.js.map +1 -1
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.js +2 -2
- package/es/modules/work/work-type/pages/WorkTypePage/Dashboard.js.map +1 -1
- package/es/modules/workspace/components/WorkspaceTabs/index.js +16 -13
- package/es/modules/workspace/components/WorkspaceTabs/index.js.map +1 -1
- package/package.json +1 -1
@@ -4,6 +4,7 @@ import { useMetaStore, useOnDeleteDocument } from "@voplus/morpho-document-core"
|
|
4
4
|
import { useOnDeleteWorkSchedule } from "../../../../data/work-schedule/work-schedule-events";
|
5
5
|
import { FilterOptionsContext, FilterOptionsContextState } from "@voplus/morpho-ui/es/data";
|
6
6
|
import { useCalendarListEffect, useCalendarStore } from "../../../../data/calendar";
|
7
|
+
import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
|
7
8
|
import { faAngleLeft, faAngleRight } from "@fortawesome/pro-light-svg-icons";
|
8
9
|
import { useDeepMemo, useTabItem } from "@voplus/morpho-data";
|
9
10
|
import { faCalendar } from "@fortawesome/free-solid-svg-icons";
|
@@ -72,13 +73,10 @@ const CalendarMonth = () => {
|
|
72
73
|
}, filterState.options);
|
73
74
|
/** 在呈现事件时触发。用于修改其DOM的钩子。 */
|
74
75
|
const eventContent = (info) => {
|
75
|
-
const type = info.event.extendedProps.source.type;
|
76
|
-
const id = info.event.extendedProps.source.id;
|
77
76
|
return (React.createElement(CalendarEventContent, { source: info.event.extendedProps.source, onClick: () => {
|
78
|
-
asideContext.openAside(
|
79
|
-
|
80
|
-
|
81
|
-
}), { span: 10 });
|
77
|
+
asideContext.openAside(React.createElement(NodePropertiesView, { node: info.event.extendedProps.source }), {
|
78
|
+
span: 10,
|
79
|
+
});
|
82
80
|
} }));
|
83
81
|
};
|
84
82
|
return observe(() => (React.createElement(AsideContent, { context: asideContext },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EACN,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,aAAa,IAAI,UAAU,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,oBAAoB,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E,EAAE,EAAE,IAAI,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAC;QACjE,CAAC;aAAM,CAAC;YACP,IAAI,CAAC,MAAM,EAAE,CAAC;QACf,CAAC;IACF,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
@@ -9,7 +9,7 @@ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2"
|
|
9
9
|
import DocumentNotificationCard from "../DocumentNotificationCard";
|
10
10
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
11
11
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
12
|
-
import
|
12
|
+
import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
|
13
13
|
import S from "string";
|
14
14
|
import "./index.less";
|
15
15
|
const NotificationList = (props) => {
|
@@ -51,9 +51,7 @@ const NotificationList = (props) => {
|
|
51
51
|
list.insert(res, 0);
|
52
52
|
if (res.status === "Unread")
|
53
53
|
editStatus(res.id, "Read");
|
54
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(
|
55
|
-
span: 12,
|
56
|
-
});
|
54
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NodePropertiesView, { node: res.node }), { span: 12 });
|
57
55
|
})
|
58
56
|
.catch((e) => { });
|
59
57
|
});
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,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AI,CAAC,CAAC;YACvC,IAAI,KAAK,CAAC,MAAM,KAAK,QAAQ,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM;gBAAE,OAAO;YAChE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC;QACtC,CAAC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -7,7 +7,7 @@ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/da
|
|
7
7
|
import { useOnPinDocument, useOnUnPinDocument, useOnFlagChange, } from "@voplus/morpho-document-core/es/data/DocumentStore/hooks/pin-events";
|
8
8
|
import { faExclamationCircle, faStar } from "@fortawesome/free-solid-svg-icons";
|
9
9
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
10
|
-
import
|
10
|
+
import DocumentPropertiesView from "@voplus/morpho-document-core/es/components/DocumentPropertiesView";
|
11
11
|
import PinnedCardList from "../PinnedCardList";
|
12
12
|
import { Skeleton } from "antd";
|
13
13
|
import PageHeader from "@voplus/morpho-ui/es/components/PageHeader";
|
@@ -49,7 +49,7 @@ const MyPinned = (props) => {
|
|
49
49
|
React.createElement(PinnedCardList, { title: "Others", list: state.othersList, onItemClick: onItemClick })))))))));
|
50
50
|
function onItemClick(id) {
|
51
51
|
var _a;
|
52
|
-
asideContext.openAside(React.createElement(
|
52
|
+
asideContext.openAside(React.createElement(DocumentPropertiesView, { id: id }), { span: 12 });
|
53
53
|
(_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, id);
|
54
54
|
}
|
55
55
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/pin/components/MyPinned/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxC,OAAO,EAAE,UAAU,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,CACoB,CACb,CACf,CAAC,CAAC;IAEH,SAAS,WAAW,CAAC,EAAU;;QAC9B,YAAY,CAAC,SAAS,CAAC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,EAAE,GAAI,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CAAC;QACzE,MAAA,KAAK,CAAC,WAAW,sDAAG,EAAE,CAAC,CAAC;IACzB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { Col, Row } from "antd";
|
2
1
|
import React from "react";
|
2
|
+
import { Col, Row } from "antd";
|
3
|
+
import { observe } from "@voplus/morpho-ui";
|
3
4
|
import RelatedDocument from "@voplus/morpho-document/es/controls/RelatedDocument";
|
4
5
|
import WorkListCard from "../../../components/WorkListCard";
|
5
6
|
import WorkTypeStatsCard from "../../components/WorkTypeStats/WorkTypeStatsCard";
|
6
|
-
import { observe } from "@voplus/morpho-ui";
|
7
7
|
import styles from "./index.less";
|
8
8
|
const Dashboard = (props) => {
|
9
9
|
const { id } = props;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/pages/WorkTypePage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,
|
1
|
+
{"version":3,"file":"Dashboard.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-type/pages/WorkTypePage/Dashboard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,eAAe,MAAM,qDAAqD,CAAC;AAClF,OAAO,YAAY,MAAM,kCAAkC,CAAC;AAC5D,OAAO,iBAAiB,MAAM,kDAAkD,CAAC;AACjF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,SAAS,GAAG,CAAC,KAAqB,EAAE,EAAE;IAC3C,MAAM,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAErB,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,6BAA6B,CAAC;QACpD,oBAAC,eAAe;YACf,oBAAC,GAAG,IAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC;gBACnB,oBAAC,GAAG,IAAC,IAAI,EAAE,EAAE;oBACZ,oBAAC,iBAAiB,IAAC,EAAE,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI;oBACzD,oBAAC,YAAY,IAAC,OAAO,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAI,CACpD,CACD,CACW,CACb,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
@@ -1,28 +1,31 @@
|
|
1
|
-
import React, { useEffect, useState } from "react";
|
1
|
+
import React, { useEffect, useMemo, useState } from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { Tabs } from "antd";
|
4
|
+
import { SendFormContext, SendFormContextData, } from "@voplus/morpho-document-core/es/data/context/SendFormContext";
|
2
5
|
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog/ActivityLog2";
|
3
6
|
import DocumentList from "@voplus/morpho-document/es/components/DocumentList";
|
4
7
|
import SubWorkList from "../../../work/components/SubWorkList";
|
5
|
-
import { Tabs } from "antd";
|
6
8
|
import WorkTypeList from "../../../work/work-type/components/WorkTypeList";
|
7
|
-
import { observe } from "@voplus/morpho-ui";
|
8
9
|
import styles from "./index.less";
|
9
10
|
const WorkspaceTabs = (props) => {
|
10
11
|
const { id } = props;
|
11
12
|
/**Tabs 当前激活 tab 面板的 key */
|
12
13
|
const [activeKey, setActiveKey] = useState("Works");
|
14
|
+
const openType = useMemo(() => new SendFormContextData("Dialog"), []);
|
13
15
|
useEffect(() => {
|
14
16
|
setActiveKey("Works");
|
15
17
|
}, [props.id]);
|
16
|
-
return observe(() => (React.createElement(
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
18
|
+
return observe(() => (React.createElement(SendFormContext.Provider, { value: openType },
|
19
|
+
React.createElement(Tabs, { activeKey: activeKey, className: styles["workspace-tabs"], onChange: onChange, items: [
|
20
|
+
{ key: "Works", label: "Works", children: React.createElement(SubWorkList, { workspaceId: id }) },
|
21
|
+
{ key: "WorkTypes", label: "Work Types", children: React.createElement(WorkTypeList, { workspaceId: id }) },
|
22
|
+
{ key: "Activities", label: "Activities", children: React.createElement(ActivityLog, { id: id, title: " " }) },
|
23
|
+
{
|
24
|
+
key: "Documents",
|
25
|
+
label: "Documents",
|
26
|
+
children: (React.createElement(DocumentList, { id: id, multiple: true, viewTitle: " ", total: false, exclude: ["Meeting", "MeetingsFolder"] })),
|
27
|
+
},
|
28
|
+
] }))));
|
26
29
|
/**切换面板的回调*/
|
27
30
|
function onChange(activeKey) {
|
28
31
|
setActiveKey(activeKey);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/workspace/components/WorkspaceTabs/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE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