@voplus/morpho-workspace 1.2.5 → 1.2.6
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/data/notification/NotificaitonStore.d.ts +26 -0
- package/es/data/notification/NotificaitonStore.js +72 -0
- package/es/data/notification/NotificaitonStore.js.map +1 -0
- package/es/data/notification/hooks.d.ts +5 -0
- package/es/data/notification/hooks.js +15 -0
- package/es/data/notification/hooks.js.map +1 -0
- package/es/data/notification/index.d.ts +4 -0
- package/es/data/notification/index.js +5 -0
- package/es/data/notification/index.js.map +1 -0
- package/es/data/notification/interfaces.d.ts +13 -0
- package/es/data/notification/interfaces.js +2 -0
- package/es/data/notification/interfaces.js.map +1 -0
- package/es/data/notification/types.d.ts +13 -0
- package/es/data/notification/types.js +2 -0
- package/es/data/notification/types.js.map +1 -0
- package/es/modules/board/components/Board/index.js +24 -22
- package/es/modules/board/components/Board/index.js.map +1 -1
- package/es/modules/board/components/Board/index.less +0 -25
- package/es/modules/board/components/Board/state.d.ts +0 -2
- package/es/modules/board/components/Board/state.js +0 -10
- package/es/modules/board/components/Board/state.js.map +1 -1
- package/es/modules/notification/NotificationRoutes.d.ts +17 -0
- package/es/modules/notification/NotificationRoutes.js +29 -0
- package/es/modules/notification/NotificationRoutes.js.map +1 -0
- package/es/modules/notification/components/MentionNotificaitonCard/index.d.ts +9 -0
- package/es/modules/notification/components/MentionNotificaitonCard/index.js +27 -0
- package/es/modules/notification/components/MentionNotificaitonCard/index.js.map +1 -0
- package/es/modules/notification/components/MentionNotificaitonCard/index.less +16 -0
- package/es/modules/notification/components/NotificationList/index.d.ts +7 -0
- package/es/modules/notification/components/NotificationList/index.js +26 -0
- package/es/modules/notification/components/NotificationList/index.js.map +1 -0
- package/es/modules/notification/components/NotificationList/index.less +6 -0
- package/es/modules/notification/pages/NotificationListView/index.d.ts +6 -0
- package/es/modules/notification/pages/NotificationListView/index.js +17 -0
- package/es/modules/notification/pages/NotificationListView/index.js.map +1 -0
- package/es/pages/Space/pages/MySpace/index.js +26 -3
- package/es/pages/Space/pages/MySpace/index.js.map +1 -1
- package/es/pages/Space/pages/MySpace/state.d.ts +20 -0
- package/es/pages/Space/pages/MySpace/state.js +109 -1
- package/es/pages/Space/pages/MySpace/state.js.map +1 -1
- package/package.json +1 -1
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ApiEndPoint } from "@voplus/api";
|
2
|
+
import { CountedMap, Store } from "@voplus/morpho-data";
|
3
|
+
import { INotificaiton, LoadNotificaitonOptions, NotificaitonEditOptions } from ".";
|
4
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
5
|
+
/** Notificaiton store supply backend functions. */
|
6
|
+
export declare class NotificaitonStore extends Store {
|
7
|
+
readonly endpoint: ApiEndPoint;
|
8
|
+
/** Name of the store */
|
9
|
+
readonly name: string;
|
10
|
+
constructor(endpoint: ApiEndPoint);
|
11
|
+
/** All currently used notificaiton. */
|
12
|
+
readonly items: CountedMap<string, INotificaiton>;
|
13
|
+
/** Load a notificaiton from server.
|
14
|
+
* @param {string} id - id of the notificaiton.
|
15
|
+
* @param {LoadNotificaitonOptions} options - Optional load options.
|
16
|
+
*/
|
17
|
+
load(id: string, options: LoadNotificaitonOptions): Promise<INotificaiton>;
|
18
|
+
/** Load a list of documents from server.
|
19
|
+
* @param {LoadDocumentListOptions}
|
20
|
+
*/
|
21
|
+
loadList(options?: LoadDocumentListOptions): Promise<INotificaiton[]>;
|
22
|
+
/** Edit an existing item on server. */
|
23
|
+
edit(id: string, options: NotificaitonEditOptions): Promise<any>;
|
24
|
+
}
|
25
|
+
/** React hook to retrieve NotificaitonStore */
|
26
|
+
export declare const useNotificaitonStore: () => NotificaitonStore;
|
@@ -0,0 +1,72 @@
|
|
1
|
+
import { RequestBuilder } from "@voplus/api";
|
2
|
+
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
3
|
+
import { observable } from "mobx";
|
4
|
+
const StoreName = "NotificaitonStore";
|
5
|
+
/** Notificaiton store supply backend functions. */
|
6
|
+
export class NotificaitonStore extends Store {
|
7
|
+
constructor(endpoint) {
|
8
|
+
super();
|
9
|
+
Object.defineProperty(this, "endpoint", {
|
10
|
+
enumerable: true,
|
11
|
+
configurable: true,
|
12
|
+
writable: true,
|
13
|
+
value: endpoint
|
14
|
+
});
|
15
|
+
/** Name of the store */
|
16
|
+
Object.defineProperty(this, "name", {
|
17
|
+
enumerable: true,
|
18
|
+
configurable: true,
|
19
|
+
writable: true,
|
20
|
+
value: StoreName
|
21
|
+
});
|
22
|
+
/** All currently used notificaiton. */
|
23
|
+
Object.defineProperty(this, "items", {
|
24
|
+
enumerable: true,
|
25
|
+
configurable: true,
|
26
|
+
writable: true,
|
27
|
+
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
28
|
+
});
|
29
|
+
}
|
30
|
+
/** Load a notificaiton from server.
|
31
|
+
* @param {string} id - id of the notificaiton.
|
32
|
+
* @param {LoadNotificaitonOptions} options - Optional load options.
|
33
|
+
*/
|
34
|
+
async load(id, options) {
|
35
|
+
let query = "";
|
36
|
+
if (options.includes)
|
37
|
+
query = query.concat(`includes=${options.includes}`);
|
38
|
+
if (query)
|
39
|
+
query = "?".concat(query);
|
40
|
+
const r = await this.endpoint.get(`/api/myspace/notifications/${id}${query}`);
|
41
|
+
return await r.json();
|
42
|
+
}
|
43
|
+
/** Load a list of documents from server.
|
44
|
+
* @param {LoadDocumentListOptions}
|
45
|
+
*/
|
46
|
+
async loadList(options) {
|
47
|
+
let query = "";
|
48
|
+
if (options === null || options === void 0 ? void 0 : options.Includes) {
|
49
|
+
query = query.concat(`includes=${options.Includes}`);
|
50
|
+
}
|
51
|
+
if (query)
|
52
|
+
query = "?".concat(query);
|
53
|
+
const r = await this.endpoint.post(`/api/myspace/notifications${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
|
54
|
+
return (await r.json());
|
55
|
+
}
|
56
|
+
/** Edit an existing item on server. */
|
57
|
+
async edit(id, options) {
|
58
|
+
return this.action(async () => {
|
59
|
+
const r = await this.endpoint.post(`/api/myspace/notifications/${id}`, new RequestBuilder().json(options.data));
|
60
|
+
return await r.json();
|
61
|
+
}, options);
|
62
|
+
}
|
63
|
+
}
|
64
|
+
/** React hook to retrieve NotificaitonStore */
|
65
|
+
export const useNotificaitonStore = () => {
|
66
|
+
const context = useApplicationContext();
|
67
|
+
if (!context.getService(StoreName)) {
|
68
|
+
context.registerService(new NotificaitonStore(context.api.currentEndPoint));
|
69
|
+
}
|
70
|
+
return context.getService(StoreName);
|
71
|
+
};
|
72
|
+
//# sourceMappingURL=NotificaitonStore.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotificaitonStore.js","sourceRoot":"","sources":["../../../src/data/notification/NotificaitonStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAKlC,MAAM,SAAS,GAAG,mBAAmB,CAAC;AAEtC,mDAAmD;AACnD,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAIxC,YAAmC,QAAqB;QACpD,KAAK,EAAE,CAAC;;;;;mBADuB;;QAHnC,wBAAwB;QACxB;;;;mBAA+B,SAAS;WAAC;QAMzC,uCAAuC;QACvC;;;;mBAA2D,IAAI,UAAU,CACrE,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAoB,CAAA,EAC9D,UAAU,CAAC,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CACrC;WAAC;IANF,CAAC;IAQD;;;MAGE;IACK,KAAK,CAAC,IAAI,CAAC,EAAU,EAAE,OAAgC;QAC1D,IAAI,KAAK,GAAG,E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C,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAC1C,CAAC;YAEF,OAAO,MAAM,CAAC,CAAC,IAAI,EAAE,CAAC;QAC1B,CAAC,EAAE,OAAO,CAAC,CAAC;IAChB,CAAC;CACJ;AAED,+CAA+C;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACrC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE;QAChC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;KAC/E;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC/D,CAAC,CAAC"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
2
|
+
import { INotificaiton, LoadNotificaitonOptions } from ".";
|
3
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
4
|
+
export declare const useNotificaiton: (id: string, options?: LoadNotificaitonOptions | undefined) => INotificaiton;
|
5
|
+
export declare const useNotificaitonListEffect: (list: ListDataContextState<INotificaiton> | null, effect: (list: any[]) => void, options?: LoadDocumentListOptions | undefined) => void;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { useDocumentListLoaderEffect } from "@voplus/morpho-document-core";
|
2
|
+
import { useNotificaitonStore } from ".";
|
3
|
+
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
4
|
+
export const useNotificaiton = (id, options) => {
|
5
|
+
options = options ? options : {};
|
6
|
+
const store = useNotificaitonStore();
|
7
|
+
return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
|
8
|
+
};
|
9
|
+
export const useNotificaitonListEffect = (list, effect, options) => {
|
10
|
+
const deps = options ? options : {};
|
11
|
+
const notificaiton = useNotificaitonStore();
|
12
|
+
// Call useDocumentListEffect and ensure won't load twice for same loading options.
|
13
|
+
return useDocumentListLoaderEffect(list, effect, () => notificaiton.loadList(options), [deps]);
|
14
|
+
};
|
15
|
+
//# sourceMappingURL=hooks.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/notification/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAEpG,OAAO,EAA0C,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAEjF,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAU,EAAE,OAAiC,EAAE,EAAE;IAChF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IAC9D,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,OAAO,qBAAqB,CAAC,EAAE,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,OAAQ,CAAC,EAAE,OAAO,CAAC,CAAC;AACxF,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,yBAAyB,GAAG,CACxC,IAAgD,EAChD,MAA6B,EAC7B,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IAEjE,MAAM,YAAY,GAAG,oBAAoB,EAAE,CAAC;IAE5C,mFAAmF;IACnF,OAAO,2BAA2B,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAChG,CAAC,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/data/notification/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,qBAAqB,CAAC;AACpC,cAAc,SAAS,CAAC"}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { ILoadable } from "@voplus/morpho-data";
|
2
|
+
export interface INotificaiton extends ILoadable {
|
3
|
+
id: string;
|
4
|
+
type: string;
|
5
|
+
status: "Read" | "Later" | "Dismissed";
|
6
|
+
dismissDate?: Date;
|
7
|
+
}
|
8
|
+
export interface IMentionedNotification extends INotificaiton {
|
9
|
+
content: {
|
10
|
+
content: string;
|
11
|
+
documentId: string;
|
12
|
+
};
|
13
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/notification/interfaces.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
2
|
+
import { INotificaiton } from ".";
|
3
|
+
/** Custom load contact options type */
|
4
|
+
export declare type LoadNotificaitonOptions = {
|
5
|
+
/** Comma separated include options e.g. path */
|
6
|
+
includes?: string;
|
7
|
+
} & LoadOptions<INotificaiton>;
|
8
|
+
export declare type NotificaitonEditDataOptions = {
|
9
|
+
status?: "new" | "read" | "later" | "dismissed";
|
10
|
+
};
|
11
|
+
export declare type NotificaitonEditOptions = {
|
12
|
+
data: NotificaitonEditDataOptions;
|
13
|
+
} & StoreActionOptions;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/data/notification/types.ts"],"names":[],"mappings":""}
|
@@ -1,23 +1,26 @@
|
|
1
1
|
import { BoardListContextState, BoardtListContext, useBoardColumnListEffect, useBoardColumnStore, } from "../../../../data/board";
|
2
2
|
import { CreateDateFilter, DocumentStatusFilter, FlagFilter, } from "@voplus/morpho-document/es/controls/filters";
|
3
|
+
import SortViewDropdown from "@voplus/morpho-ui/es/components/layout/ListView/controls/SortViewDropdown";
|
4
|
+
import { FilterOptionsContext, ListDataContext, useCreateListDataState, } from "@voplus/morpho-ui/es/data";
|
3
5
|
import { DragDropContext, Droppable } from "react-beautiful-dnd";
|
4
6
|
import { Input, Spin } from "@voplus/antd";
|
5
|
-
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
6
7
|
import React, { useEffect, useState } from "react";
|
7
8
|
import { faCheck, faTimes } from "@fortawesome/pro-light-svg-icons";
|
9
|
+
import FilterView from "@voplus/morpho-ui/es/controls/FilterView";
|
10
|
+
import QuickSearch from "@voplus/morpho-ui/es/components/layout/ListView/controls/QuickSearch";
|
8
11
|
import BoardColumn from "../BoardColumn";
|
9
12
|
import Card from "@voplus/morpho-ui/es/controls/Card";
|
10
13
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
11
|
-
import ListHeader from "@voplus/morpho-ui/es/components/layout/ListView/headers/ListHeader";
|
12
14
|
import { Observer } from "mobx-react-lite";
|
13
15
|
import Panable from "@voplus/morpho-ui/es/controls/Panable";
|
14
|
-
import SearchHeader from "@voplus/morpho-ui/es/components/layout/ListView/components/SearchHeader";
|
15
16
|
import { State } from "./state";
|
16
17
|
import { observe } from "@voplus/morpho-ui";
|
17
18
|
import { runInAction } from "mobx";
|
18
19
|
import styles from "./index.less";
|
19
20
|
import { useDocumentStore } from "@voplus/morpho-document-core";
|
21
|
+
import { useFrame } from "@voplus/morpho-document/es/components/ViewFrame/ViewFrameContext";
|
20
22
|
const Board = (props) => {
|
23
|
+
const frame = useFrame();
|
21
24
|
const boards = useBoardColumnStore();
|
22
25
|
const documentStore = useDocumentStore();
|
23
26
|
const [state] = useState(new State(boards, documentStore));
|
@@ -36,18 +39,9 @@ const Board = (props) => {
|
|
36
39
|
Includes: "tags",
|
37
40
|
Filters: [{ c: "ParentNodeId", o: "=", l: "And", v1: props.parentId }],
|
38
41
|
});
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
clearTimeout(state.timeout);
|
43
|
-
}
|
44
|
-
runInAction(() => {
|
45
|
-
state.timeout = setTimeout(() => {
|
46
|
-
state.timeout = null;
|
47
|
-
lists.name = value;
|
48
|
-
}, 1500);
|
49
|
-
});
|
50
|
-
};
|
42
|
+
useEffect(() => {
|
43
|
+
setupExtra();
|
44
|
+
}, [props.parentId, frame === null || frame === void 0 ? void 0 : frame.view]);
|
51
45
|
const board = observe(() => (React.createElement(Droppable, { droppableId: props.parentId, type: "COLUMN", direction: "horizontal" }, (provided) => (React.createElement(Panable, { scroll: true },
|
52
46
|
React.createElement(Observer, null, () => {
|
53
47
|
var _a;
|
@@ -64,13 +58,6 @@ const Board = (props) => {
|
|
64
58
|
return observe(() => (React.createElement(BoardtListContext.Provider, { value: lists },
|
65
59
|
React.createElement(ListDataContext.Provider, { value: list },
|
66
60
|
React.createElement("div", { className: styles["board-context"] },
|
67
|
-
React.createElement(ListHeader, { header: React.createElement(SearchHeader, { onChange: onSearch }), filterViewProps: {
|
68
|
-
columns: [
|
69
|
-
React.createElement(CreateDateFilter, { key: "createDateFilter" }),
|
70
|
-
React.createElement(FlagFilter, { key: "flagFilter" }),
|
71
|
-
React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),
|
72
|
-
],
|
73
|
-
}, addAble: false }),
|
74
61
|
React.createElement("div", { className: "board-list" },
|
75
62
|
React.createElement(DragDropContext, { onDragEnd: (result) => state.onDragEnd(result) }, board),
|
76
63
|
React.createElement("div", { className: "add-board-controls" }, state.addBoardColumnAble && (React.createElement(Spin, { spinning: state.addLoading },
|
@@ -80,6 +67,21 @@ const Board = (props) => {
|
|
80
67
|
React.createElement(FAIcon, { icon: faTimes, onClick: () => runInAction(() => (state.addBoardColumnAble = false)) }))))),
|
81
68
|
React.createElement("div", { className: "add-board" },
|
82
69
|
React.createElement("div", { onClick: () => runInAction(() => (state.addBoardColumnAble = true)) }, "+ ADD"))))))));
|
70
|
+
/** BoardColumn filters name */
|
71
|
+
function onSearch(value) {
|
72
|
+
list.triggerName(value);
|
73
|
+
}
|
74
|
+
;
|
75
|
+
function setupExtra() {
|
76
|
+
if (!frame)
|
77
|
+
return;
|
78
|
+
frame.PreExtra = observe(() => (React.createElement(QuickSearch, { title: "Search", onChange: onSearch })));
|
79
|
+
frame.Extra = observe(() => (React.createElement(FilterOptionsContext.Provider, { value: list.filters },
|
80
|
+
React.createElement(SortViewDropdown, { onSort: (sort) => list.triggerSort(sort), className: "margin-left-10" }),
|
81
|
+
React.createElement(FilterView, { columns: [React.createElement(CreateDateFilter, { key: "createDateFilter" }),
|
82
|
+
React.createElement(FlagFilter, { key: "flagFilter" }),
|
83
|
+
React.createElement(DocumentStatusFilter, { key: "documentStatusFilter" }),], className: "margin-left-10" }))));
|
84
|
+
}
|
83
85
|
};
|
84
86
|
export default Board;
|
85
87
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,qBAAqB,EACrB,iBAAiB,EACjB,wBAAwB,EACxB,mBAAmB,GACnB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,gBAAgB,EAChB,oBAAoB,EACpB,UAAU,GACV,MAAM,6CAA6C,CAAC;AAErD,OAAO,gBAAgB,MAAM,2EAA2E,CAAC;AACzG,OAAO,EACN,oBAAoB,EACpB,eAAe,EACf,sBAAsB,GACtB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM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AS,EAAC,gBAAgB,GACzB;YACF,oBAAC,UAAU,IACV,OAAO,EAAE,CAAC,oBAAC,gBAAgB,IAAC,GAAG,EAAC,kBAAkB,GAAG;oBACrD,oBAAC,UAAU,IAAC,GAAG,EAAC,YAAY,GAAG;oBAC/B,oBAAC,oBAAoB,IAAC,GAAG,EAAC,sBAAsB,GAAG,EAAE,EACrD,SAAS,EAAC,gBAAgB,GACzB,CAC6B,CAChC,CAAC,CAAC;IACJ,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
@@ -3,31 +3,6 @@
|
|
3
3
|
display: flex;
|
4
4
|
flex-direction: column;
|
5
5
|
:global {
|
6
|
-
.list-view-header {
|
7
|
-
display: flex;
|
8
|
-
justify-content: space-between;
|
9
|
-
align-items: center;
|
10
|
-
padding: 10px 20px;
|
11
|
-
border-bottom: 1px solid #f2f2f2;
|
12
|
-
background: #ffffff;
|
13
|
-
.view-title {
|
14
|
-
color: #000;
|
15
|
-
font-size: 16px;
|
16
|
-
font-weight: 600;
|
17
|
-
}
|
18
|
-
.plus-icon {
|
19
|
-
display: inline-block;
|
20
|
-
padding: 4px;
|
21
|
-
margin-left: 10px;
|
22
|
-
font-size: 13px;
|
23
|
-
line-height: 1px;
|
24
|
-
background: #1abc9c;
|
25
|
-
cursor: pointer;
|
26
|
-
}
|
27
|
-
.margin-left-10 {
|
28
|
-
margin-left: 10px;
|
29
|
-
}
|
30
|
-
}
|
31
6
|
.board-list {
|
32
7
|
height: 100%;
|
33
8
|
display: flex;
|
@@ -40,13 +40,6 @@ export class State {
|
|
40
40
|
writable: true,
|
41
41
|
value: []
|
42
42
|
});
|
43
|
-
/** search filter 1.5秒 */
|
44
|
-
Object.defineProperty(this, "timeout", {
|
45
|
-
enumerable: true,
|
46
|
-
configurable: true,
|
47
|
-
writable: true,
|
48
|
-
value: null
|
49
|
-
});
|
50
43
|
/** add BoardColumn name */
|
51
44
|
Object.defineProperty(this, "name", {
|
52
45
|
enumerable: true,
|
@@ -260,9 +253,6 @@ __decorate([
|
|
260
253
|
__decorate([
|
261
254
|
observable
|
262
255
|
], State.prototype, "ids", void 0);
|
263
|
-
__decorate([
|
264
|
-
observable
|
265
|
-
], State.prototype, "timeout", void 0);
|
266
256
|
__decorate([
|
267
257
|
observable
|
268
258
|
], State.prototype, "name", void 0);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAwB,EAAU,SAAwB;;;;;mBAA1D;;;;;;mBAAkC;;QAD7D;;;;;WAA6B;QAIjB;;;;mBAAsC,EAAE;WAAC;QACzC;;;;;WAAuC;QACnD,gBAAgB;QACJ;;;;mBAA0B,EAAE;WAAC;QACzC,
|
1
|
+
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/Board/state.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAGpE,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAWvC,MAAM,OAAO,KAAK;IAEjB,YAA2B,MAAwB,EAAU,SAAwB;;;;;mBAA1D;;;;;;mBAAkC;;QAD7D;;;;;WAA6B;QAIjB;;;;mBAAsC,EAAE;WAAC;QACzC;;;;;WAAuC;QACnD,gBAAgB;QACJ;;;;mBAA0B,EAAE;WAAC;QACzC,2BAA2B;QACf;;;;mBAAc,EAAE;WAAC;QACjB;;;;mBAAgB,KAAK;WAAC;QAClC,mCAAmC;QACvB;;;;mBAAoB,KAAK;WAAC;QACtC,sBAAsB;QACV;;;;mBAA4B,KAAK;WAA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,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC;SAC3C;IACF,CAAC;IAED;;;OAGG;IAEH,IAAW,OAAO;QACjB,IAAI,OAAO,GAAG,EAAE,CAAC;QACjB,IAAI,IAAI,CAAC,UAAU,EAAE;YACpB,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC,CAAC;SAC1E;QACD,OAAO,GAAG,CAAC,GAAG,OAAO,EAAE,GAAG,IAAI,CAAC,UAAW,CAAC,CAAC;QAC5C,OAAO,OAAO,CAAC;IAChB,CAAC;CACD;AArJY;IAAX,UAAU;2CAA0C;AACzC;IAAX,UAAU;8CAAwC;AAEvC;IAAX,UAAU;kCAA8B;AAE7B;IAAX,UAAU;mCAAkB;AACjB;IAAX,UAAU;qCAAuB;AAEtB;IAAX,UAAU;yCAA2B;AAE1B;IAAX,UAAU;iDAAmC;AAElC;IAAX,UAAU;qCAAoB;AAEnB;IAAX,UAAU;0CAAyB;AAExB;IAAX,UAAU;wCAAuF;AAEtF;IAAX,UAAU;yCAAwB;AACvB;IAAX,UAAU;yCAAyC;AAExC;IAAX,UAAU;0CAA4B;AAGvC;IADC,MAAM;mDAOL;AAGF;IADC,MAAM;mDAKL;AAGF;IADC,MAAM;6DAQL;AAIF;IADC,MAAM;qCAUL;AAIF;IADC,MAAM;sCA6DN;AAGO;IAAP,MAAM;kCAON;AAOD;IADC,QAAQ;oCAQR"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
3
|
+
declare const Routes: {
|
4
|
+
NotificationList: {
|
5
|
+
route: string;
|
6
|
+
tabPattern: RegExp;
|
7
|
+
getUrl: () => string;
|
8
|
+
component: ({ id }: {
|
9
|
+
id: string;
|
10
|
+
}) => JSX.Element;
|
11
|
+
};
|
12
|
+
Notification: {
|
13
|
+
getUrl: typeof DocumentRoute;
|
14
|
+
};
|
15
|
+
addRoutes: () => void;
|
16
|
+
};
|
17
|
+
export default Routes;
|
@@ -0,0 +1,29 @@
|
|
1
|
+
import { Route, Switch } from "react-router";
|
2
|
+
import { BaseRoutes } from "@voplus/morpho-data";
|
3
|
+
import { DocumentRoute } from "@voplus/morpho-document/es/routes";
|
4
|
+
import React from "react";
|
5
|
+
import NotificationList from "./pages/NotificationListView";
|
6
|
+
const NotificationRoutes = () => {
|
7
|
+
return (React.createElement(Switch, null,
|
8
|
+
React.createElement(Route, { path: Routes.NotificationList.route, exact: true, component: Routes.NotificationList.component })));
|
9
|
+
};
|
10
|
+
const Routes = {
|
11
|
+
NotificationList: {
|
12
|
+
route: "/notifications",
|
13
|
+
tabPattern: RegExp("/notifications"),
|
14
|
+
getUrl: () => `/notifications`,
|
15
|
+
component: NotificationList,
|
16
|
+
},
|
17
|
+
Notification: {
|
18
|
+
getUrl: DocumentRoute,
|
19
|
+
},
|
20
|
+
addRoutes: () => {
|
21
|
+
BaseRoutes.routes.push({
|
22
|
+
name: "notifications-list",
|
23
|
+
tabBasePattern: Routes.NotificationList.tabPattern,
|
24
|
+
component: React.createElement(NotificationRoutes, null),
|
25
|
+
});
|
26
|
+
},
|
27
|
+
};
|
28
|
+
export default Routes;
|
29
|
+
//# sourceMappingURL=NotificationRoutes.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"NotificationRoutes.js","sourceRoot":"","sources":["../../../src/modules/notification/NotificationRoutes.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,gBAAgB,MAAM,8BAA8B,CAAC;AAE5D,MAAM,kBAAkB,GAAG,GAAG,EAAE;IAC/B,OAAO,CACN,oBAAC,MAAM;QACN,oBAAC,KAAK,IAAC,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC,SAAS,GAAI,CACjG,CACT,CAAC;AACH,CAAC,CAAC;AAEF,MAAM,MAAM,GAAG;IACd,gBAAgB,EAAE;QACjB,KAAK,EAAE,gBAAgB;QACvB,UAAU,EAAE,MAAM,CAAC,gBAAgB,CAAC;QACpC,MAAM,EAAE,GAAG,EAAE,CAAC,gBAAgB;QAC9B,SAAS,EAAE,gBAAgB;KAC3B;IACD,YAAY,EAAE;QACb,MAAM,EAAE,aAAa;KACrB;IAED,SAAS,EAAE,GAAG,EAAE;QACf,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC;YACtB,IAAI,EAAE,oBAAoB;YAC1B,cAAc,EAAE,MAAM,CAAC,gBAAgB,CAAC,UAAU;YAClD,SAAS,EAAE,oBAAC,kBAAkB,OAAG;SACjC,CAAC,CAAC;IACJ,CAAC;CACD,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { IMentionedNotification } from "../../../../data/notification";
|
3
|
+
declare const MentionNotificaitonCard: (props: {
|
4
|
+
id: string;
|
5
|
+
notificaiton: IMentionedNotification;
|
6
|
+
className?: string;
|
7
|
+
onClick?: () => void;
|
8
|
+
}) => JSX.Element;
|
9
|
+
export default MentionNotificaitonCard;
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { Button } from "@voplus/antd";
|
4
|
+
import Card from "@voplus/morpho-ui/es/controls/Card";
|
5
|
+
import ProseMirrorViewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
|
6
|
+
import styles from "./index.less";
|
7
|
+
import classnames from "classnames";
|
8
|
+
import { Scrollbars } from "react-custom-scrollbars";
|
9
|
+
import { useNotificaitonStore } from "../../../../data/notification";
|
10
|
+
const MentionNotificaitonCard = (props) => {
|
11
|
+
const { id, notificaiton } = props;
|
12
|
+
// const notificaiton = useNotificaiton(props.id) as IMentionedNotification;
|
13
|
+
const store = useNotificaitonStore();
|
14
|
+
return observe(() => React.createElement(Card, { className: classnames(styles["notificaiton-card"], props.className), bordered: true, shadow: true },
|
15
|
+
React.createElement("div", { onClick: props.onClick },
|
16
|
+
React.createElement("h3", null, "Notificaiton"),
|
17
|
+
React.createElement(Scrollbars, { autoHide: true, autoHeight: true, autoHeightMax: "70px" },
|
18
|
+
React.createElement(ProseMirrorViewer, { html: notificaiton.content.content })),
|
19
|
+
React.createElement("div", { className: "notificaiton-btn" },
|
20
|
+
notificaiton.status !== "Dismissed" && React.createElement(Button, { onClick: () => onEditStatus("dismiss") }, "Dismiss"),
|
21
|
+
notificaiton.status !== "Later" && React.createElement(Button, { onClick: () => onEditStatus("later") }, "Later")))));
|
22
|
+
function onEditStatus(status) {
|
23
|
+
store.edit(id, { data: { status: status }, error: "message" });
|
24
|
+
}
|
25
|
+
};
|
26
|
+
export default MentionNotificaitonCard;
|
27
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/MentionNotificaitonCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,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px 20px 10px 20px;
|
3
|
+
&:global(.active) {
|
4
|
+
border: 1px solid navy;
|
5
|
+
box-shadow: 2px 2px 5px #ddddf7;
|
6
|
+
}
|
7
|
+
:global{
|
8
|
+
.notificaiton-btn{
|
9
|
+
text-align: right;
|
10
|
+
margin-top: 10px;
|
11
|
+
.ant-btn{
|
12
|
+
margin-left: 15px;
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
|
2
|
+
import React, { useEffect, useState } from "react";
|
3
|
+
import MentionNotificaitonCard from "../../../../modules/notification/components/MentionNotificaitonCard";
|
4
|
+
import { useNotificaitonListEffect } from "../../../../data/notification";
|
5
|
+
import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
|
6
|
+
import { observe, useRenderOnChange } from "@voplus/morpho-ui";
|
7
|
+
import DocumentPropertiesView from "@voplus/morpho-document/es/components/DocumentPropertiesView";
|
8
|
+
import "./index.less";
|
9
|
+
const NotificaitonList = (props) => {
|
10
|
+
const [active, setActive] = useState(null);
|
11
|
+
// const list = useCreateListDataState<INotificaiton>({}, []);
|
12
|
+
const list = useCreateListDataState({ filterDefaults: { filters: [], }, }, []);
|
13
|
+
useEffect(() => {
|
14
|
+
if (props.filters)
|
15
|
+
list.clear();
|
16
|
+
}, [props.filters]);
|
17
|
+
list.filters.options.Filters = props.filters || [];
|
18
|
+
/** 如果 list.filters.options变更了就重渲染,使下一行的useNotificaitonListEffect 可以接收新参数*/
|
19
|
+
useRenderOnChange(() => list.filters.options);
|
20
|
+
/** 把ListDataState传给useNotificaitonListEffect,使之可以自動更新loading, hasmore. */
|
21
|
+
useNotificaitonListEffect(list, (result) => list.union(result), list.filters.options);
|
22
|
+
return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
|
23
|
+
React.createElement(ListView, { headerProps: { viewTitle: "My Notificaitons", addAble: false, sortable: false }, className: "my-space-notificaitons", renderItem: ({ item }) => (React.createElement(MentionNotificaitonCard, { id: item.id, key: item.id, notificaiton: item, className: active === item.id ? "active" : "", onClick: () => setActive(item.id) })), propertiesView: (id, item) => React.createElement(DocumentPropertiesView, { id: item.content.documentId }) }))));
|
24
|
+
};
|
25
|
+
export default NotificaitonList;
|
26
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationList/index.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,uBAAuB,MAAM,qEAAqE,CAAC;AAE1G,OAAO,EAAiB,yBAAyB,EAAE,MAAM,+BAA+B,CAAC;AACzF,OAAO,QAAQ,MAAM,2DAA2D,CAAC;AACjF,OAAO,EAAE,OAAO,EAAE,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AAC/D,OAAO,sBAAsB,MAAM,8DAA8D,CAAC;AAClG,OAAO,cAAc,CAAC;AAEtB,MAAM,gBAAgB,GAAG,CAAC,KAAmC,EAAE,EAAE;IAC7D,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAgB,IAAI,CAAC,CAAC;IAE1D,8DAA8D;IAC9D,MAAM,IAAI,GAAG,sBAAsB,CAC/B,EAAE,cAAc,EAAE,EAAE,OAAO,EAAE,EAAE,GAAG,GAAG,EAAE,EAAE,CAC5C,CAAC;IAEF,SAAS,CAAC,GAAG,EAAE;QACX,IAAI,KAAK,CAAC,OAAO;YAAE,IAAI,CAAC,KAAK,EAAE,CAAC;IACpC,CAAC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC;IAEpB,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,IAAI,EAAE,CAAC;IAEnD,2EAA2E;IAC3E,iBAAiB,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAE9C,0EAA0E;IAC1E,yBAAyB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtF,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACjB,oBAAC,eAAe,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QACjC,oBAAC,QAAQ,IACL,WAAW,EAAE,EAAE,SAAS,EAAE,kBAAkB,EAAE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,EAC/E,SAAS,EAAC,wBAAwB,EAClC,UAAU,EAAE,CAAC,EAAE,IAAI,EAAO,EAAE,EAAE,CAAC,CAC3B,oBAAC,uBAAuB,IACpB,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,YAAY,EAAE,IAAI,EAClB,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,EAC7C,OAAO,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,EAAE,CAAC,GACnC,CACL,EACD,cAAc,EAAE,CAAC,EAAE,EAAE,IAAS,EAAE,EAAE,CAAC,oBAAC,sBAAsB,IAAC,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,UAAU,GAAI,GAC5F,CACqB,CAC9B,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import { observe, useAutorunEffect } from "@voplus/morpho-ui";
|
3
|
+
import NotificationList from "../../components/NotificationList";
|
4
|
+
import { useDocument } from "@voplus/morpho-document-core";
|
5
|
+
import { useTabItem } from "@voplus/morpho-data";
|
6
|
+
/** The Notification Page component with router parameters support. */
|
7
|
+
const NotificationListView = ({ id }) => {
|
8
|
+
const tab = useTabItem();
|
9
|
+
const document = useDocument(id);
|
10
|
+
useAutorunEffect(() => {
|
11
|
+
var _a;
|
12
|
+
tab.title = (_a = document === null || document === void 0 ? void 0 : document.name) !== null && _a !== void 0 ? _a : "Notification";
|
13
|
+
});
|
14
|
+
return observe(() => React.createElement(NotificationList, null));
|
15
|
+
};
|
16
|
+
export default NotificationListView;
|
17
|
+
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/pages/NotificationListView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,gBAAgB,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,sEAAsE;AACtE,MAAM,oBAAoB,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IAEvD,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,MAAM,QAAQ,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAEjC,gBAAgB,CAAC,GAAG,EAAE;;QACrB,GAAG,CAAC,KAAK,GAAG,MAAA,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,IAAI,mCAAI,cAAc,CAAC;IAC9C,CAAC,CAAC,CAAC;IAEH,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,oBAAC,gBAAgB,OAAG,CAAC,CAAC;AAC5C,CAAC,CAAC;AACF,eAAe,oBAAoB,CAAC"}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import "./index.less";
|
2
2
|
import { Menu, Skeleton } from "@voplus/antd";
|
3
3
|
import React, { useEffect, useState } from "react";
|
4
|
-
import { faBallotCheck, faBooks, faProjectDiagram, faStickyNote, faTasks, } from "@fortawesome/pro-light-svg-icons";
|
4
|
+
import { faBallotCheck, faBooks, faProjectDiagram, faStickyNote, faTasks, faBell, } from "@fortawesome/pro-light-svg-icons";
|
5
5
|
import { useApplicationContext, useTabItem } from "@voplus/morpho-data";
|
6
6
|
import Documents from "../../components/Documents";
|
7
7
|
import { FontAwesomeIcon as FAIcon } from "@fortawesome/react-fontawesome";
|
@@ -16,6 +16,8 @@ import Works from "../../components/Works";
|
|
16
16
|
import { observe } from "@voplus/morpho-ui";
|
17
17
|
import { runInAction } from "mobx";
|
18
18
|
import { useUnit } from "@voplus/morpho-org";
|
19
|
+
import Notifications from "../../../../modules/notification/components/NotificationList";
|
20
|
+
import { useNotificaitonListEffect } from "../../../../data/notification";
|
19
21
|
const MySpace = () => {
|
20
22
|
const { user } = useApplicationContext();
|
21
23
|
const unit = useUnit(user.info.id, { reload: true });
|
@@ -24,6 +26,10 @@ const MySpace = () => {
|
|
24
26
|
useEffect(() => {
|
25
27
|
runInAction(() => (tab.title = "My Space"));
|
26
28
|
}, []);
|
29
|
+
useNotificaitonListEffect(null, (result, total) => runInAction(() => state.nAllTotal = total || 0), state.nAllOptions);
|
30
|
+
useNotificaitonListEffect(null, (result, total) => runInAction(() => state.nReadTotal = total || 0), state.nReadOptions);
|
31
|
+
useNotificaitonListEffect(null, (result, total) => runInAction(() => state.nLaterTotal = total || 0), state.nLaterOptions);
|
32
|
+
useNotificaitonListEffect(null, (result, total) => runInAction(() => state.nDismissedTotal = total || 0), state.nDismissedOptions);
|
27
33
|
return observe(() => (React.createElement(MainContent, { className: "my-space-view" },
|
28
34
|
React.createElement(MainContent.Nav, { collapsible: true },
|
29
35
|
React.createElement(Scrollbars, { autoHide: true },
|
@@ -40,8 +46,25 @@ const MySpace = () => {
|
|
40
46
|
React.createElement(Menu.Item, { key: "WorkToday" }, "Today(2)"),
|
41
47
|
React.createElement(Menu.Item, { key: "WorkWeek" }, "This Week(4)"),
|
42
48
|
React.createElement(Menu.Item, { key: "WorkMonth" }, "This Month(5)"),
|
43
|
-
React.createElement(Menu.Item, { key: "WorkUnscheduled" }, "Unscheduled(6)"))
|
44
|
-
|
49
|
+
React.createElement(Menu.Item, { key: "WorkUnscheduled" }, "Unscheduled(6)")),
|
50
|
+
React.createElement(SubMenu, { key: "Notifications", icon: React.createElement(FAIcon, { icon: faBell }), title: "My Notifications" },
|
51
|
+
React.createElement(Menu.Item, { key: "NotificationsAll" },
|
52
|
+
"All(",
|
53
|
+
state.nAllTotal,
|
54
|
+
")"),
|
55
|
+
React.createElement(Menu.Item, { key: "NotificationsRead" },
|
56
|
+
"Read(",
|
57
|
+
state.nReadTotal,
|
58
|
+
")"),
|
59
|
+
React.createElement(Menu.Item, { key: "NotificationsLater" },
|
60
|
+
"Later(",
|
61
|
+
state.nLaterTotal,
|
62
|
+
")"),
|
63
|
+
React.createElement(Menu.Item, { key: "NotificationsDismissed" },
|
64
|
+
"Dismissed(",
|
65
|
+
state.nDismissedTotal,
|
66
|
+
")"))))),
|
67
|
+
!unit.loading ? (state.menuKey === "Notes" ? (React.createElement(Notes, { id: unit.containerId || "598054f2-0bc1-4fd4-a0ed-ac0d0078b038" })) : state.menuKey === "Projects" ? (React.createElement(Projects, { id: unit.containerId || "598054f2-0bc1-4fd4-a0ed-ac0d0078b038" })) : state.menuKey.includes("Work") ? (React.createElement(Works, { id: unit.containerId || "598054f2-0bc1-4fd4-a0ed-ac0d0078b038" })) : state.menuKey.includes("Task") ? (React.createElement(Tasks, { filters: state.filters })) : state.menuKey.includes("Notifications") ? (React.createElement(Notifications, { filters: state.notificaitonFilters })) : (React.createElement(Documents, { id: unit.containerId || "598054f2-0bc1-4fd4-a0ed-ac0d0078b038" }))) : (React.createElement(Skeleton, { active: true })))));
|
45
68
|
};
|
46
69
|
export default MySpace;
|
47
70
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,OAAO,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EACN,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,OAAO,EACP,MAAM,GACN,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACxE,OAAO,SAAS,MAAM,4BAA4B,CAAC;AACnD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,WAAW,MAAM,oDAAoD,CAAC;AAE7E,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,QAAQ,MAAM,2BAA2B,CAAC;AACjD,OAAO,UAAU,MAAM,yBAAyB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,OAAO,MAAM,8BAA8B,CAAC;AACnD,OAAO,KAAK,MAAM,wBAAwB,CAAC;AAC3C,OAAO,KAAK,MAAM,wBA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AAW,IAAI,sCAAsC,GAAI,CACzE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,UAAU,CAAC,CAAC,CAAC,CAClC,oBAAC,QAAQ,IAAC,EAAE,EAAE,IAAI,CAAC,WAAW,IAAI,sCAAsC,GAAI,CAC5E,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACpC,oBAAC,KAAK,IAAC,EAAE,EAAE,IAAI,CAAC,WAAW,IAAI,sCAAsC,GAAI,CACzE,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CACpC,oBAAC,KAAK,IAAC,OAAO,EAAE,KAAK,CAAC,OAAO,GAAI,CACjC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAC7C,oBAAC,aAAa,IAAC,OAAO,EAAE,KAAK,CAAC,mBAAmB,GAAI,CACrD,CAAC,CAAC,CAAC,CACH,oBAAC,SAAS,IAAC,EAAE,EAAE,IAAI,CAAC,WAAW,IAAI,sCAAsC,GAAI,CAC7E,CACD,CAAC,CAAC,CAAC,CACH,oBAAC,QAAQ,IAAC,MAAM,SAAG,CACnB,CAGY,CACd,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,OAAO,CAAC"}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { Moment } from "moment";
|
2
|
+
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
2
3
|
import { FilterOption } from "@voplus/morpho-data";
|
3
4
|
import { MenuInfo } from "rc-menu/es/interface";
|
4
5
|
import { RangeValue } from "rc-picker/es/interface";
|
@@ -6,7 +7,26 @@ export declare class State {
|
|
6
7
|
menuKey: string;
|
7
8
|
/** dueDate of task */
|
8
9
|
dueDate: RangeValue<Moment>;
|
10
|
+
/** status of notifications */
|
11
|
+
status: string;
|
12
|
+
/** status All Notifications list Total */
|
13
|
+
nAllTotal: number;
|
14
|
+
/** Read Notifications list Total */
|
15
|
+
nReadTotal: number;
|
16
|
+
/** Later Notifications list Total */
|
17
|
+
nLaterTotal: number;
|
18
|
+
/** Dismissed Notifications list Total */
|
19
|
+
nDismissedTotal: number;
|
9
20
|
constructor();
|
10
21
|
get filters(): FilterOption[];
|
22
|
+
get notificaitonFilters(): FilterOption[];
|
11
23
|
onClick({ key }: MenuInfo): void;
|
24
|
+
/** Notifications list Options */
|
25
|
+
get nAllOptions(): LoadDocumentListOptions;
|
26
|
+
/** Notifications list Read Options */
|
27
|
+
get nReadOptions(): LoadDocumentListOptions;
|
28
|
+
/** Notifications list Later Options */
|
29
|
+
get nLaterOptions(): LoadDocumentListOptions;
|
30
|
+
/** Notifications list Dismissed Options */
|
31
|
+
get nDismissedOptions(): LoadDocumentListOptions;
|
12
32
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { __decorate } from "tslib";
|
2
|
-
import { action, makeObservable, observable } from "mobx";
|
2
|
+
import { action, makeObservable, observable, computed } from "mobx";
|
3
3
|
import moment from "moment";
|
4
4
|
export class State {
|
5
5
|
constructor() {
|
@@ -16,6 +16,41 @@ export class State {
|
|
16
16
|
writable: true,
|
17
17
|
value: void 0
|
18
18
|
});
|
19
|
+
/** status of notifications */
|
20
|
+
Object.defineProperty(this, "status", {
|
21
|
+
enumerable: true,
|
22
|
+
configurable: true,
|
23
|
+
writable: true,
|
24
|
+
value: void 0
|
25
|
+
});
|
26
|
+
/** status All Notifications list Total */
|
27
|
+
Object.defineProperty(this, "nAllTotal", {
|
28
|
+
enumerable: true,
|
29
|
+
configurable: true,
|
30
|
+
writable: true,
|
31
|
+
value: 0
|
32
|
+
});
|
33
|
+
/** Read Notifications list Total */
|
34
|
+
Object.defineProperty(this, "nReadTotal", {
|
35
|
+
enumerable: true,
|
36
|
+
configurable: true,
|
37
|
+
writable: true,
|
38
|
+
value: 0
|
39
|
+
});
|
40
|
+
/** Later Notifications list Total */
|
41
|
+
Object.defineProperty(this, "nLaterTotal", {
|
42
|
+
enumerable: true,
|
43
|
+
configurable: true,
|
44
|
+
writable: true,
|
45
|
+
value: 0
|
46
|
+
});
|
47
|
+
/** Dismissed Notifications list Total */
|
48
|
+
Object.defineProperty(this, "nDismissedTotal", {
|
49
|
+
enumerable: true,
|
50
|
+
configurable: true,
|
51
|
+
writable: true,
|
52
|
+
value: 0
|
53
|
+
});
|
19
54
|
makeObservable(this);
|
20
55
|
}
|
21
56
|
get filters() {
|
@@ -34,6 +69,13 @@ export class State {
|
|
34
69
|
},
|
35
70
|
];
|
36
71
|
}
|
72
|
+
get notificaitonFilters() {
|
73
|
+
if (!this.status)
|
74
|
+
return [];
|
75
|
+
return [
|
76
|
+
{ c: "Status", o: "=", l: "And", v1: this.status, },
|
77
|
+
];
|
78
|
+
}
|
37
79
|
onClick({ key }) {
|
38
80
|
this.menuKey = key.toString();
|
39
81
|
if (key.toString().includes("Today"))
|
@@ -47,6 +89,45 @@ export class State {
|
|
47
89
|
moment().add(1, "months").startOf("month"),
|
48
90
|
moment().add(1, "months").endOf("month"),
|
49
91
|
];
|
92
|
+
if (key.toString().includes("All"))
|
93
|
+
this.status = "";
|
94
|
+
if (key.toString().includes("Read"))
|
95
|
+
this.status = "Read";
|
96
|
+
if (key.toString().includes("Later"))
|
97
|
+
this.status = "Later";
|
98
|
+
if (key.toString().includes("Dismissed"))
|
99
|
+
this.status = "Dismissed";
|
100
|
+
}
|
101
|
+
/** Notifications list Options */
|
102
|
+
get nAllOptions() {
|
103
|
+
return { Total: true, List: false, };
|
104
|
+
}
|
105
|
+
/** Notifications list Read Options */
|
106
|
+
get nReadOptions() {
|
107
|
+
return {
|
108
|
+
Total: true, List: false,
|
109
|
+
Filters: [
|
110
|
+
{ c: "Status", o: "=", l: "And", v1: "Read" },
|
111
|
+
],
|
112
|
+
};
|
113
|
+
}
|
114
|
+
/** Notifications list Later Options */
|
115
|
+
get nLaterOptions() {
|
116
|
+
return {
|
117
|
+
Total: true, List: false,
|
118
|
+
Filters: [
|
119
|
+
{ c: "Status", o: "=", l: "And", v1: "Later" },
|
120
|
+
],
|
121
|
+
};
|
122
|
+
}
|
123
|
+
/** Notifications list Dismissed Options */
|
124
|
+
get nDismissedOptions() {
|
125
|
+
return {
|
126
|
+
Total: true, List: false,
|
127
|
+
Filters: [
|
128
|
+
{ c: "Status", o: "=", l: "And", v1: "Dismissed" },
|
129
|
+
],
|
130
|
+
};
|
50
131
|
}
|
51
132
|
}
|
52
133
|
__decorate([
|
@@ -55,7 +136,34 @@ __decorate([
|
|
55
136
|
__decorate([
|
56
137
|
observable
|
57
138
|
], State.prototype, "dueDate", void 0);
|
139
|
+
__decorate([
|
140
|
+
observable
|
141
|
+
], State.prototype, "status", void 0);
|
142
|
+
__decorate([
|
143
|
+
observable
|
144
|
+
], State.prototype, "nAllTotal", void 0);
|
145
|
+
__decorate([
|
146
|
+
observable
|
147
|
+
], State.prototype, "nReadTotal", void 0);
|
148
|
+
__decorate([
|
149
|
+
observable
|
150
|
+
], State.prototype, "nLaterTotal", void 0);
|
151
|
+
__decorate([
|
152
|
+
observable
|
153
|
+
], State.prototype, "nDismissedTotal", void 0);
|
58
154
|
__decorate([
|
59
155
|
action
|
60
156
|
], State.prototype, "onClick", null);
|
157
|
+
__decorate([
|
158
|
+
computed
|
159
|
+
], State.prototype, "nAllOptions", null);
|
160
|
+
__decorate([
|
161
|
+
computed
|
162
|
+
], State.prototype, "nReadOptions", null);
|
163
|
+
__decorate([
|
164
|
+
computed
|
165
|
+
], State.prototype, "nLaterOptions", null);
|
166
|
+
__decorate([
|
167
|
+
computed
|
168
|
+
], State.prototype, "nDismissedOptions", null);
|
61
169
|
//# sourceMappingURL=state.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"state.js","sourceRoot":"","sources":["../../../../../src/pages/Space/pages/MySpace/state.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,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