@voplus/morpho-workspace 6.1.34 → 6.1.36
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/modules/notification/components/NotificationList/index.d.ts +1 -15
- package/es/modules/notification/components/NotificationList/index.js +26 -39
- package/es/modules/notification/components/NotificationList/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList/index.less +28 -0
- package/es/modules/notification/components/NotificationListHeader/index.js +6 -3
- package/es/modules/notification/components/NotificationListHeader/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.d.ts +1 -4
- package/es/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.js +3 -28
- package/es/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage2/index.js +2 -52
- package/es/modules/notification/pages/NotificationListPage2/index.js.map +1 -1
- package/es/modules/notification/pages/NotificationListPage2/index.less +0 -27
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.d.ts +1 -0
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.js +33 -16
- package/es/modules/work/work-schedule/pages/WorkScheduleListPage/state.js.map +1 -1
- package/package.json +1 -1
- package/es/modules/notification/pages/NotificationListPage2/state.d.ts +0 -14
- package/es/modules/notification/pages/NotificationListPage2/state.js +0 -99
- package/es/modules/notification/pages/NotificationListPage2/state.js.map +0 -1
@@ -1,6 +1,5 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { INotification } from "../../../../data/notification";
|
3
|
-
import { FilterOption } from "@voplus/morpho-data";
|
4
3
|
import "./index.less";
|
5
4
|
export type NotificationListProps = {
|
6
5
|
/** status of notifications shown on the list. */
|
@@ -10,19 +9,6 @@ export type NotificationListProps = {
|
|
10
9
|
/** Call back when an item has been clicked on the list. */
|
11
10
|
onClickItem?: (ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void;
|
12
11
|
onClickStatus?: (status: string) => void;
|
13
|
-
/** 头部的显示方式 */
|
14
|
-
headerType?: "dashboard" | "tool";
|
15
|
-
/** 是否允在 listView 内部打开 aside */
|
16
|
-
asideable?: boolean;
|
17
|
-
filterOptions?: FilterOption[];
|
18
|
-
/** Call back when received total number of Notification. */
|
19
|
-
onTotal?: (total: number) => void;
|
20
|
-
};
|
21
|
-
declare const NotificationList: {
|
22
|
-
(props: NotificationListProps): React.JSX.Element;
|
23
|
-
defaultProps: {
|
24
|
-
headerType: string;
|
25
|
-
asideable: boolean;
|
26
|
-
};
|
27
12
|
};
|
13
|
+
declare const NotificationList: (props: NotificationListProps) => React.JSX.Element;
|
28
14
|
export default NotificationList;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import React, { useEffect, useState, useMemo } from "react";
|
2
2
|
import { useNotificationListEffect, useNotificationStore, } from "../../../../data/notification";
|
3
3
|
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
4
|
-
import { observe, useRenderOnChange
|
4
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
5
5
|
import { message, Alert } from "antd";
|
6
6
|
import { useApplicationContext } from "@voplus/morpho-data";
|
7
7
|
import { runInAction } from "mobx";
|
@@ -11,31 +11,24 @@ import DocumentNotificationCard from "../DocumentNotificationCard";
|
|
11
11
|
import AsideContent from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
12
12
|
import Viewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
13
13
|
import NodePropertiesView from "@voplus/morpho-document-core/es/components/NodePropertiesView";
|
14
|
-
import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeaderTool";
|
15
|
-
import { useViewLayoutContext } from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout/ViewLayoutContext";
|
16
14
|
import { NotificationListContext, NotificationListState } from "./state";
|
17
15
|
import { useUnit } from "@voplus/morpho-org/es/data";
|
18
16
|
import S from "string";
|
19
17
|
import "./index.less";
|
20
18
|
const NotificationList = (props) => {
|
21
|
-
const { headerType, filterOptions } = props;
|
22
19
|
const store = useNotificationStore();
|
23
20
|
const { user } = useApplicationContext();
|
24
|
-
const layoutContext = useViewLayoutContext();
|
25
21
|
const context = useMemo(() => new NotificationListState(), []);
|
26
|
-
const [asideContext] = useState(
|
22
|
+
const [asideContext] = useState(AsideContent.createContext());
|
27
23
|
const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
|
28
24
|
props.status,
|
29
|
-
filterOptions,
|
30
25
|
]);
|
31
26
|
const unit = useUnit(user.info.unit.id, { includes: "notes" });
|
32
27
|
/** 如果 list.filters.options变更了就重渲染,使下一行的useNotificationListEffect 可以接收新参数*/
|
33
28
|
useRenderOnChange(() => list.filters.options);
|
34
29
|
/** 把ListDataState传给useNotificationListEffect,使之可以自動更新loading, hasmore. */
|
35
30
|
useNotificationListEffect(list, (result, total) => {
|
36
|
-
var _a;
|
37
31
|
list.union(result);
|
38
|
-
(_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total !== null && total !== void 0 ? total : 0);
|
39
32
|
}, {
|
40
33
|
Total: true,
|
41
34
|
...list.filters.options,
|
@@ -50,45 +43,43 @@ const NotificationList = (props) => {
|
|
50
43
|
list.insert(res, 0);
|
51
44
|
if (res.status === "Unread")
|
52
45
|
editStatus(res.id, "Read");
|
53
|
-
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NodePropertiesView, { node: res.node }), { span:
|
46
|
+
asideContext === null || asideContext === void 0 ? void 0 : asideContext.openAside(React.createElement(NodePropertiesView, { node: res.node }), { span: 12 });
|
54
47
|
})
|
55
48
|
.catch((e) => { });
|
56
49
|
});
|
57
50
|
}
|
58
51
|
}, [props.active]);
|
59
|
-
|
52
|
+
return observe(() => {
|
60
53
|
var _a;
|
61
54
|
return (React.createElement(ListDataContext.Provider, { value: list },
|
62
|
-
React.createElement(
|
63
|
-
React.createElement(
|
64
|
-
React.createElement("div", { className: "my-space-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
(
|
75
|
-
|
76
|
-
|
55
|
+
React.createElement(AsideContent, { context: asideContext },
|
56
|
+
React.createElement(NotificationListContext.Provider, { value: context },
|
57
|
+
React.createElement("div", { className: "my-space-notifications" },
|
58
|
+
React.createElement("div", { className: "my-space-alert-content" }, (_a = unit.notes) === null || _a === void 0 ? void 0 : _a.map((n, i) => (React.createElement(Alert, { key: i, showIcon: true, closable: true, type: (n.type.substring(0, 1).toLowerCase() + n.type.substring(1)), className: "dashboard-alert normal-alert notifications-alert", message: React.createElement(React.Fragment, null,
|
59
|
+
React.createElement("div", { className: "title-group" }, n.group),
|
60
|
+
React.createElement(Viewer, { html: n.note })) })))),
|
61
|
+
React.createElement(NotificationListHeader, { status: props.status, onClickStatus: props.onClickStatus }),
|
62
|
+
React.createElement(ListView, { headerProps: { visible: false }, className: "notifications-list", asideable: false, renderItem: ({ item }) => (React.createElement(DocumentNotificationCard, { className: "doc-notification-card", id: item.id, active: props.active === item.id, onClick: (ev) => {
|
63
|
+
var _a, _b;
|
64
|
+
const path = ev.nativeEvent.composedPath();
|
65
|
+
const visible = path.some((item) => item.className === "notification-card-content");
|
66
|
+
/** fix: notification card里的任何对话框(比如:pdf/file viewer quick view) 任何button 都按不了,一按就close */
|
67
|
+
if (visible && ((_a = item === null || item === void 0 ? void 0 : item.node) === null || _a === void 0 ? void 0 : _a.id)) {
|
68
|
+
(_b = props.onClickItem) === null || _b === void 0 ? void 0 : _b.call(props, ev, item);
|
69
|
+
}
|
70
|
+
}, onChangeStatus: (status) => editStatus(item.id, status) })) }))))));
|
77
71
|
});
|
78
|
-
return observe(() => props.asideable ? React.createElement(AsideContent, { context: asideContext }, content) : content);
|
79
72
|
function filters() {
|
80
|
-
|
81
|
-
|
82
|
-
|
73
|
+
if (props.status == "all")
|
74
|
+
return [];
|
75
|
+
return [
|
76
|
+
{
|
83
77
|
c: "Status",
|
84
78
|
o: "=",
|
85
79
|
l: "And",
|
86
80
|
v1: S(props.status).capitalize().toString(),
|
87
|
-
}
|
88
|
-
|
89
|
-
if (filterOptions)
|
90
|
-
filter = filterOptions;
|
91
|
-
return filter;
|
81
|
+
},
|
82
|
+
];
|
92
83
|
}
|
93
84
|
function editStatus(id, status) {
|
94
85
|
runInAction(async () => {
|
@@ -102,9 +93,5 @@ const NotificationList = (props) => {
|
|
102
93
|
});
|
103
94
|
}
|
104
95
|
};
|
105
|
-
NotificationList.defaultProps = {
|
106
|
-
headerType: "dashboard",
|
107
|
-
asideable: true,
|
108
|
-
};
|
109
96
|
export default NotificationList;
|
110
97
|
//# sourceMappingURL=index.js.map
|
@@ -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,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIN,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,
|
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,OAAO,EAAE,MAAM,OAAO,CAAC;AAC5D,OAAO,EAIN,yBAAyB,EACzB,oBAAoB,GACpB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,MAAM,CAAC;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C;YACrE,OAAO,CAAC,uBAAuB,CAAC,GAAG,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YAClD,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"}
|
@@ -72,6 +72,34 @@
|
|
72
72
|
margin: 0 24px;
|
73
73
|
width: calc(100% - 48px);
|
74
74
|
}
|
75
|
+
|
76
|
+
.notifications-header.mobile {
|
77
|
+
.header-tool-space {
|
78
|
+
display: block;
|
79
|
+
}
|
80
|
+
.list-view-header-tool {
|
81
|
+
padding: 12px;
|
82
|
+
.stort-header-tool,
|
83
|
+
.filter-view-menu-icon {
|
84
|
+
display: none;
|
85
|
+
}
|
86
|
+
}
|
87
|
+
.notifications-status {
|
88
|
+
display: flex;
|
89
|
+
justify-content: space-between;
|
90
|
+
.ant-btn {
|
91
|
+
font-size: 12px;
|
92
|
+
font-weight: 600;
|
93
|
+
line-height: 25px;
|
94
|
+
height: 25px;
|
95
|
+
padding: 0 6px;
|
96
|
+
margin: 0 0 8px 0;
|
97
|
+
&:last-child {
|
98
|
+
margin-right: 0;
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
}
|
75
103
|
}
|
76
104
|
|
77
105
|
.notification-card-exit {
|
@@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
|
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
3
|
import { Button, Divider } from "antd";
|
4
4
|
import { runInAction } from "mobx";
|
5
|
+
import { useLayout } from "@voplus/morpho-data";
|
5
6
|
import { FlagFilter } from "@voplus/morpho-document/es/controls/filters";
|
6
7
|
import { useNotificationListEffect } from "../../../../data/notification";
|
7
8
|
import { useApplicationContext } from "@voplus/morpho-data";
|
@@ -12,6 +13,8 @@ import ListHeaderTool from "@voplus/morpho-ui/es/components/layout/ListView/head
|
|
12
13
|
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
13
14
|
import classnames from "classnames";
|
14
15
|
const NotificationListHeader = (props) => {
|
16
|
+
const layout = useLayout();
|
17
|
+
const mobile = layout.ui.mobile;
|
15
18
|
const context = useApplicationContext();
|
16
19
|
const nContext = useNotificationListContext();
|
17
20
|
const [statusActive, setStatusActive] = useState("all");
|
@@ -50,8 +53,8 @@ const NotificationListHeader = (props) => {
|
|
50
53
|
total: undefined,
|
51
54
|
},
|
52
55
|
];
|
53
|
-
return (React.createElement("div", { className: "notifications-header" },
|
54
|
-
React.createElement(PageHeadDashboard, { headerType: "page", avatarIcon: React.createElement(FAIcon, { icon: faBell }), title: "Your Notifications Center", description: "Stay updated: your latest alerts and notifications" }),
|
56
|
+
return (React.createElement("div", { className: classnames("notifications-header", { mobile: mobile }) },
|
57
|
+
!mobile && (React.createElement(PageHeadDashboard, { headerType: "page", avatarIcon: React.createElement(FAIcon, { icon: faBell }), title: "Your Notifications Center", description: "Stay updated: your latest alerts and notifications" })),
|
55
58
|
React.createElement(ListHeaderTool, { addAble: false, filterViewProps: context.host.isTest
|
56
59
|
? {
|
57
60
|
columns: [React.createElement(FlagFilter, { key: "Flag" })],
|
@@ -63,7 +66,7 @@ const NotificationListHeader = (props) => {
|
|
63
66
|
item.label,
|
64
67
|
" ",
|
65
68
|
(item === null || item === void 0 ? void 0 : item.total) ? ` (${item.total})` : ""))),
|
66
|
-
context.host.isTest && React.createElement(Divider, { type: "vertical" }))) })));
|
69
|
+
context.host.isTest && !mobile && React.createElement(Divider, { type: "vertical" }))) })));
|
67
70
|
});
|
68
71
|
function onClickStatus(item) {
|
69
72
|
var _a;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/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AChB,KAAK,EAAE,WAAW;gBAClB,KAAK,EAAE,SAAS;aAChB;SACD,CAAC;QAEF,OAAO,CACN,6BAAK,SAAS,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationListHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,6CAA6C,CAAC;AACzE,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AAC1E,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,kCAAkC,CAAC;AAC1D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,cAAc,MAAM,wEAAwE,CAAC;AACpG,OAAO,iBAAiB,MAAM,kEAAkE,CAAC;AACjG,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,MAAM,sBAAsB,GAAG,CAAC,KAK/B,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC;IAChC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,MAAM,QAAQ,GAAG,0BAA0B,EAAE,CAAC;IAC9C,MAAM,CAAC,YAAY,EAAE,eAAe,CAAC,GAAG,QAAQ,CAAC,KAAK,C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EAAE,EAAE,CAAC,CACzB,oBAAC,MAAM,IACN,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,SAAS,EAAE,UAAU,CAAC,IAAI,EAAE;4BAC3B,MAAM,EAAE,YAAY,KAAK,IAAI,CAAC,GAAG;yBACjC,CAAC,EACF,OAAO,EAAE,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;wBAErC,IAAI,CAAC,KAAK;;wBAAG,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAC,CAAC,CAAC,KAAK,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,CAAC,EAAE,CAC3C,CACT,CAAC;oBAED,OAAO,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,IAAI,oBAAC,OAAO,IAAC,IAAI,EAAC,UAAU,GAAG,CACzD,CACN,GACA,CACG,CACN,CAAC;IACH,CAAC,CAAC,CAAC;IAEH,SAAS,aAAa,CAAC,IAAY;;QAClC,eAAe,CAAC,IAAI,CAAC,CAAC;QACtB,MAAA,KAAK,CAAC,aAAa,sDAAG,IAAI,CAAC,CAAC;IAC7B,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,sBAAsB,CAAC"}
|
@@ -1,7 +1,4 @@
|
|
1
1
|
import React from "react";
|
2
2
|
import { NotificationListProps } from "../../components/NotificationList";
|
3
|
-
|
4
|
-
declare const NotificationMobileListPage: (props: NotificationListProps & {
|
5
|
-
state: State;
|
6
|
-
}) => React.JSX.Element;
|
3
|
+
declare const NotificationMobileListPage: (props: NotificationListProps) => React.JSX.Element;
|
7
4
|
export default NotificationMobileListPage;
|
@@ -1,35 +1,10 @@
|
|
1
|
-
import React
|
1
|
+
import React from "react";
|
2
2
|
import { observe } from "@voplus/morpho-ui";
|
3
3
|
import NotificationList from "../../components/NotificationList";
|
4
4
|
import MobileDefaultViewLayout from "@voplus/morpho-ui/es/components/layout/MobileDefaultViewLayout";
|
5
|
-
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
6
|
-
import { useQuickFilterContext } from "@voplus/morpho-ui/es/data/QuickFilterContext";
|
7
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
8
|
-
import NotificationPanel from "../../components/NotificationPanel";
|
9
5
|
const NotificationMobileListPage = (props) => {
|
10
|
-
|
11
|
-
|
12
|
-
const [activeKey, setActiveKey] = useState("NotificationList");
|
13
|
-
return observe(() => (React.createElement(MobileDefaultViewLayout, { className: "notification-list-page_mobile", title: "Your Notifications Center", properties: React.createElement(NotificationPanel, { overviewProps: {
|
14
|
-
status: state.notificationStatus,
|
15
|
-
onOverviewItemClick: () => state.onOverviewItemClick(context.actives),
|
16
|
-
}, notificationFilterProps: {
|
17
|
-
onFilter(options) {
|
18
|
-
state.onFilterOptions(options);
|
19
|
-
},
|
20
|
-
} }) },
|
21
|
-
React.createElement(DocumentTabs, { id: "", active: "NotificationList", tabItems: [
|
22
|
-
{
|
23
|
-
key: "NotificationList",
|
24
|
-
label: "Notification List",
|
25
|
-
children: (React.createElement(NotificationList, { ...props, asideable: false, headerType: "tool", filterOptions: state.filerOptions, onTotal: (total) => context.onChangeTotal(total) })),
|
26
|
-
},
|
27
|
-
{
|
28
|
-
key: "Activities",
|
29
|
-
label: "Activities",
|
30
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: "", bar: false })) : null)),
|
31
|
-
},
|
32
|
-
], onChange: (key) => setActiveKey(key) }))));
|
6
|
+
return observe(() => (React.createElement(MobileDefaultViewLayout, { className: "notification-list-page_mobile", title: "Your Notifications Center" },
|
7
|
+
React.createElement(NotificationList, { ...props }))));
|
33
8
|
};
|
34
9
|
export default NotificationMobileListPage;
|
35
10
|
//# sourceMappingURL=NotificationMobileListPage.js.map
|
package/es/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NotificationMobileListPage.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"NotificationMobileListPage.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListPage2/NotificationMobileListPage.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAA2C,MAAM,mCAAmC,CAAC;AAC5F,OAAO,uBAAuB,MAAM,gEAAgE,CAAC;AAErG,MAAM,0BAA0B,GAAG,CAAC,KAA4B,EAAE,EAAE;IACnE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,uBAAuB,IACvB,SAAS,EAAC,+BAA+B,EACzC,KAAK,EAAC,2BAA2B;QAEjC,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CACN,CAC1B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,0BAA0B,CAAC"}
|
@@ -1,61 +1,11 @@
|
|
1
|
-
import React
|
2
|
-
import { faBell } from "@fortawesome/pro-solid-svg-icons";
|
3
|
-
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
4
|
-
import PageHeadDashboard from "@voplus/morpho-ui/es/components/layout/headers/PageHeadDashboard";
|
5
|
-
import DefaultViewLayout from "@voplus/morpho-ui/es/components/layout/DefaultViewLayout";
|
1
|
+
import React from "react";
|
6
2
|
import { observe } from "@voplus/morpho-ui";
|
7
3
|
import NotificationList from "../../components/NotificationList";
|
8
|
-
import DocumentTabs from "@voplus/morpho-document/es/components/DocumentTabs";
|
9
|
-
import ActivityLog from "@voplus/morpho-org/es/components/ActivityLog2/ActivityLog2";
|
10
|
-
import FilterLabel from "@voplus/morpho-ui/es/controls/FilterLabel";
|
11
|
-
import NotificationPanel from "../../components/NotificationPanel";
|
12
|
-
import { QuickFilterContext, QuickFilterContextState, } from "@voplus/morpho-ui/es/data/QuickFilterContext";
|
13
|
-
import { useNotificationStore } from "../../../../data/notification";
|
14
4
|
import { useLayout } from "@voplus/morpho-data";
|
15
5
|
import NotificationMobileListPage from "./NotificationMobileListPage";
|
16
|
-
import S from "string";
|
17
|
-
import { State } from "./state";
|
18
|
-
import styles from "./index.less";
|
19
6
|
const NotificationListPage = (props) => {
|
20
7
|
const layout = useLayout();
|
21
|
-
|
22
|
-
const [state] = useState(new State(props.status));
|
23
|
-
const [activeKey, setActiveKey] = useState("NotificationList");
|
24
|
-
const context = useMemo(() => new QuickFilterContextState({
|
25
|
-
store: store,
|
26
|
-
listFilterOptions: state.listFilterOptions,
|
27
|
-
}), []);
|
28
|
-
useEffect(() => {
|
29
|
-
if (props.status)
|
30
|
-
context.actives = [S(props.status).capitalize().toString()];
|
31
|
-
context.loadCounts();
|
32
|
-
}, []);
|
33
|
-
return observe(() => {
|
34
|
-
var _a, _b;
|
35
|
-
return (React.createElement(QuickFilterContext.Provider, { value: context }, layout.ui.mobile ? (React.createElement(NotificationMobileListPage, { ...props, state: state })) : (React.createElement(DefaultViewLayout, { className: styles["notification-list-page_2"], header: React.createElement(PageHeadDashboard, { avatarIcon: React.createElement(FAIcon, { icon: faBell }), title: "Your Notifications Center", upAble: true, description: "Stay updated: your latest alerts and notifications." }), propertiesWidth: "295px", properties: React.createElement(NotificationPanel, { overviewProps: {
|
36
|
-
status: state.notificationStatus,
|
37
|
-
onOverviewItemClick: () => state.onOverviewItemClick(context.actives),
|
38
|
-
}, notificationFilterProps: {
|
39
|
-
onFilter(options) {
|
40
|
-
state.onFilterOptions(options);
|
41
|
-
},
|
42
|
-
} }) },
|
43
|
-
React.createElement(DocumentTabs, { id: "", active: "NotificationList", tabItems: [
|
44
|
-
{
|
45
|
-
key: "NotificationList",
|
46
|
-
label: "Notification List",
|
47
|
-
children: (React.createElement(NotificationList, { ...props, asideable: false, headerType: "tool", filterOptions: state.filerOptions, onTotal: (total) => context.onChangeTotal(total) })),
|
48
|
-
},
|
49
|
-
{
|
50
|
-
key: "Activities",
|
51
|
-
label: "Activities",
|
52
|
-
children: (React.createElement(React.Fragment, null, activeKey === "Activities" ? (React.createElement(ActivityLog, { id: "", bar: false })) : null)),
|
53
|
-
},
|
54
|
-
], onChange: (key) => setActiveKey(key), tabBarExtraContent: activeKey === "NotificationList" ? (React.createElement("div", { className: "list-tabBar-filter" }, ((_a = context.actives) === null || _a === void 0 ? void 0 : _a.includes("All")) ? ("Showed: Total All Notifications") : ((_b = context.actives) === null || _b === void 0 ? void 0 : _b.length) ? (React.createElement(FilterLabel, { status: context.actives, maxCount: 2, onFilter: (s) => {
|
55
|
-
context.onFilterLabel(s);
|
56
|
-
state.onOverviewItemClick(context.actives);
|
57
|
-
} })) : undefined)) : undefined })))));
|
58
|
-
});
|
8
|
+
return observe(() => layout.ui.mobile ? React.createElement(NotificationMobileListPage, { ...props }) : React.createElement(NotificationList, { ...props }));
|
59
9
|
};
|
60
10
|
export default NotificationListPage;
|
61
11
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListPage2/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListPage2/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,gBAA2C,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,0BAA0B,MAAM,8BAA8B,CAAC;AAEtE,MAAM,oBAAoB,GAAG,CAAC,KAA4B,EAAE,EAAE;IAC7D,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAE3B,OAAO,OAAO,CAAC,GAAG,EAAE,CACnB,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,oBAAC,0BAA0B,OAAK,KAAK,GAAI,CAAC,CAAC,CAAC,oBAAC,gBAAgB,OAAK,KAAK,GAAI,CAC9F,CAAC;AACH,CAAC,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
@@ -1,30 +1,3 @@
|
|
1
|
-
.notification-list-page_2 {
|
2
|
-
:global {
|
3
|
-
.default-view-context {
|
4
|
-
.ant-tabs-nav {
|
5
|
-
margin-bottom: 0;
|
6
|
-
}
|
7
|
-
.page-head-dashboard {
|
8
|
-
.page-head-general.page {
|
9
|
-
border: none;
|
10
|
-
}
|
11
|
-
.page-head-content {
|
12
|
-
display: none;
|
13
|
-
}
|
14
|
-
.list-view-header-tool {
|
15
|
-
flex: 1;
|
16
|
-
.search-header-tool .ant-input-outlined {
|
17
|
-
width: 100%;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
}
|
21
|
-
.all-new-notification-body {
|
22
|
-
margin-top: 0;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
1
|
:global {
|
29
2
|
.notification-list-page_mobile {
|
30
3
|
.my-space-notifications .list-view-header-tool {
|
@@ -8,6 +8,7 @@ export declare class State {
|
|
8
8
|
defaultFilter: FilterOption[];
|
9
9
|
workCreatedFilter: FilterOption;
|
10
10
|
unscheduledFilter: FilterOption[];
|
11
|
+
private readonly workEqualNull;
|
11
12
|
private overdueFilter;
|
12
13
|
constructor(contactId?: string | undefined);
|
13
14
|
onFilterOptions(options?: FilterOption[]): void;
|
@@ -40,27 +40,35 @@ export class State {
|
|
40
40
|
writable: true,
|
41
41
|
value: void 0
|
42
42
|
});
|
43
|
+
Object.defineProperty(this, "workEqualNull", {
|
44
|
+
enumerable: true,
|
45
|
+
configurable: true,
|
46
|
+
writable: true,
|
47
|
+
value: {
|
48
|
+
c: "Work",
|
49
|
+
o: "=",
|
50
|
+
v1: "null",
|
51
|
+
l: "And",
|
52
|
+
}
|
53
|
+
});
|
43
54
|
Object.defineProperty(this, "overdueFilter", {
|
44
55
|
enumerable: true,
|
45
56
|
configurable: true,
|
46
57
|
writable: true,
|
47
|
-
value:
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
},
|
54
|
-
{ c: "Work", o: "=", v1: "null", l: "And" },
|
55
|
-
]
|
58
|
+
value: {
|
59
|
+
c: "ScheduleDate",
|
60
|
+
o: "<=",
|
61
|
+
l: "And",
|
62
|
+
v1: dayjs().format("YYYY-MM-DD"),
|
63
|
+
}
|
56
64
|
});
|
57
65
|
makeObservable(this);
|
58
66
|
if (this.contactId)
|
59
67
|
this.defaultFilter = [{ c: "Contact", o: "=", l: "And", v1: this.contactId }];
|
60
68
|
this.workCreatedFilter = { c: "Work", o: "!=", v1: "null", l: "And" };
|
61
69
|
this.unscheduledFilter = [
|
70
|
+
this.workEqualNull,
|
62
71
|
{ c: "ScheduleDate", o: "is null", l: "And", v1: "" },
|
63
|
-
{ c: "Work", o: "=", v1: "null", l: "And" },
|
64
72
|
];
|
65
73
|
const week = this.getDateF("week");
|
66
74
|
const month = this.getDateF("month");
|
@@ -74,9 +82,15 @@ export class State {
|
|
74
82
|
name: "Unscheduled",
|
75
83
|
filters: { Filters: this.defaultFilter.concat(this.unscheduledFilter) },
|
76
84
|
},
|
77
|
-
{
|
78
|
-
|
79
|
-
|
85
|
+
{
|
86
|
+
name: "Overdue",
|
87
|
+
filters: { Filters: [...this.defaultFilter, this.overdueFilter, this.workEqualNull] },
|
88
|
+
},
|
89
|
+
{ name: "ThisWeek", filters: { Filters: [...this.defaultFilter, week, this.workEqualNull] } },
|
90
|
+
{
|
91
|
+
name: "ThisMonth",
|
92
|
+
filters: { Filters: [...this.defaultFilter, month, this.workEqualNull] },
|
93
|
+
},
|
80
94
|
];
|
81
95
|
this.onFilterOptions();
|
82
96
|
}
|
@@ -96,15 +110,15 @@ export class State {
|
|
96
110
|
let f = [];
|
97
111
|
if (s === null || s === void 0 ? void 0 : s.includes("Overdue")) {
|
98
112
|
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "Overdue");
|
99
|
-
f.push(
|
113
|
+
f.push(this.overdueFilter, this.workEqualNull);
|
100
114
|
}
|
101
115
|
if (s === null || s === void 0 ? void 0 : s.includes("ThisWeek")) {
|
102
116
|
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "ThisWeek");
|
103
|
-
f.push(this.getDateF("week"));
|
117
|
+
f.push(this.getDateF("week"), this.workEqualNull);
|
104
118
|
}
|
105
119
|
if (s === null || s === void 0 ? void 0 : s.includes("ThisMonth")) {
|
106
120
|
status = status === null || status === void 0 ? void 0 : status.filter((s) => s !== "ThisMonth");
|
107
|
-
f.push(this.getDateF("month"));
|
121
|
+
f.push(this.getDateF("month"), this.workEqualNull);
|
108
122
|
}
|
109
123
|
if (s === null || s === void 0 ? void 0 : s.includes("WorkCreated")) {
|
110
124
|
f.push(this.workCreatedFilter);
|
@@ -136,6 +150,9 @@ __decorate([
|
|
136
150
|
__decorate([
|
137
151
|
observable
|
138
152
|
], State.prototype, "unscheduledFilter", void 0);
|
153
|
+
__decorate([
|
154
|
+
observable
|
155
|
+
], State.prototype, "workEqualNull", void 0);
|
139
156
|
__decorate([
|
140
157
|
observable
|
141
158
|
], State.prototype, "overdueFilter", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAGhE,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,MAAM,OAAO,KAAK;
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../../src/modules/work/work-schedule/pages/WorkScheduleListPage/state.ts"],"names":[],"mappings":";AAAA,OAAO,EA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
package/package.json
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { FilterOption } from "@voplus/morpho-data";
|
2
|
-
import { ListFilterOptions } from "@voplus/morpho-ui/es/data/QuickFilterContext";
|
3
|
-
import { NotificationStatus } from "../../../../data/notification";
|
4
|
-
export declare class State {
|
5
|
-
private status?;
|
6
|
-
/** 默认值 */
|
7
|
-
notificationStatus: NotificationStatus[];
|
8
|
-
filerOptions?: FilterOption[];
|
9
|
-
defaultFilter: FilterOption[];
|
10
|
-
listFilterOptions?: ListFilterOptions[];
|
11
|
-
constructor(status?: string | undefined);
|
12
|
-
onFilterOptions(options?: FilterOption[]): void;
|
13
|
-
onOverviewItemClick(s?: string[]): void;
|
14
|
-
}
|
@@ -1,99 +0,0 @@
|
|
1
|
-
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable, toJS } from "mobx";
|
3
|
-
import S from "string";
|
4
|
-
export class State {
|
5
|
-
constructor(status) {
|
6
|
-
Object.defineProperty(this, "status", {
|
7
|
-
enumerable: true,
|
8
|
-
configurable: true,
|
9
|
-
writable: true,
|
10
|
-
value: status
|
11
|
-
});
|
12
|
-
/** 默认值 */
|
13
|
-
Object.defineProperty(this, "notificationStatus", {
|
14
|
-
enumerable: true,
|
15
|
-
configurable: true,
|
16
|
-
writable: true,
|
17
|
-
value: [
|
18
|
-
"Read",
|
19
|
-
"Unread",
|
20
|
-
"Later",
|
21
|
-
"Dismissed",
|
22
|
-
]
|
23
|
-
});
|
24
|
-
Object.defineProperty(this, "filerOptions", {
|
25
|
-
enumerable: true,
|
26
|
-
configurable: true,
|
27
|
-
writable: true,
|
28
|
-
value: void 0
|
29
|
-
});
|
30
|
-
Object.defineProperty(this, "defaultFilter", {
|
31
|
-
enumerable: true,
|
32
|
-
configurable: true,
|
33
|
-
writable: true,
|
34
|
-
value: []
|
35
|
-
});
|
36
|
-
Object.defineProperty(this, "listFilterOptions", {
|
37
|
-
enumerable: true,
|
38
|
-
configurable: true,
|
39
|
-
writable: true,
|
40
|
-
value: void 0
|
41
|
-
});
|
42
|
-
makeObservable(this);
|
43
|
-
let statusFilter = [];
|
44
|
-
this.notificationStatus.map((s) => {
|
45
|
-
statusFilter.push({
|
46
|
-
name: s,
|
47
|
-
filters: {
|
48
|
-
Filters: [...this.defaultFilter, { c: "Status", o: "=", v1: s, l: "And" }],
|
49
|
-
},
|
50
|
-
});
|
51
|
-
});
|
52
|
-
this.listFilterOptions = [
|
53
|
-
{ name: "All", filters: { Filters: this.defaultFilter } },
|
54
|
-
...statusFilter,
|
55
|
-
];
|
56
|
-
if (this.status)
|
57
|
-
this.onFilterOptions([{ c: "Status", o: "=", l: "And", v1: S(this.status).capitalize().toString() }]);
|
58
|
-
else
|
59
|
-
this.onFilterOptions();
|
60
|
-
}
|
61
|
-
onFilterOptions(options) {
|
62
|
-
var _a;
|
63
|
-
this.filerOptions = options !== null && options !== void 0 ? options : [];
|
64
|
-
if (this.defaultFilter) {
|
65
|
-
(_a = this.filerOptions) === null || _a === void 0 ? void 0 : _a.push(...this.defaultFilter);
|
66
|
-
}
|
67
|
-
}
|
68
|
-
onOverviewItemClick(s) {
|
69
|
-
if (s === null || s === void 0 ? void 0 : s.includes("All")) {
|
70
|
-
this.onFilterOptions();
|
71
|
-
}
|
72
|
-
else {
|
73
|
-
let status = toJS(s);
|
74
|
-
let f = [];
|
75
|
-
if (status === null || status === void 0 ? void 0 : status.length)
|
76
|
-
f.push({ c: "Status", o: "contains", l: "And", v1: JSON.stringify(status) });
|
77
|
-
this.onFilterOptions(f);
|
78
|
-
}
|
79
|
-
}
|
80
|
-
}
|
81
|
-
__decorate([
|
82
|
-
observable
|
83
|
-
], State.prototype, "notificationStatus", void 0);
|
84
|
-
__decorate([
|
85
|
-
observable
|
86
|
-
], State.prototype, "filerOptions", void 0);
|
87
|
-
__decorate([
|
88
|
-
observable
|
89
|
-
], State.prototype, "defaultFilter", void 0);
|
90
|
-
__decorate([
|
91
|
-
observable
|
92
|
-
], State.prototype, "listFilterOptions", void 0);
|
93
|
-
__decorate([
|
94
|
-
action
|
95
|
-
], State.prototype, "onFilterOptions", null);
|
96
|
-
__decorate([
|
97
|
-
action
|
98
|
-
], State.prototype, "onOverviewItemClick", null);
|
99
|
-
//# sourceMappingURL=state.js.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListPage2/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAEhE,OAAO,CAAC,MAAM,QAAQ,CAAC;AAIvB,MAAM,OAAO,KAAK;IAYjB,YAA2B,MAAe;QAAvB;;;;mBAAQ,MAAM;WAAS;QAX1C,UAAU;QACS;;;;mBAA2C;gBAC7D,MAAM;gBACN,QAAQ;gBACR,OAAO;gBACP,WAAW;aACX;WAAC;QACiB;;;;;WAA8B;QAC9B;;;;mBAAgC,EAAE;WAAC;QACnC;;;;;WAAwC;QAG1D,cAAc,CAAC,IAAI,CAAC,CAAC;QAErB,IAAI,YAAY,GAAwB,EAAE,CAAC;QAC3C,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;YACjC,YAAY,CAAC,IAAI,CAAC;gBACjB,IAAI,EAAE,CAAC;gBACP,OAAO,EAAE;oBACR,OAAO,EAAE,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;iBAC1E;aACD,CAAC,CAAC;QACJ,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,iBAAiB,GAAG;YACxB,EAAE,IAAI,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,OAAO,EAAE,IAAI,CAAC,aAAa,EAAE,EAAE;YACzD,GAAG,YAAY;SACf,CAAC;QAEF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