@voplus/morpho-workspace 1.2.5 → 1.3.0

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.
Files changed (49) hide show
  1. package/es/data/notification/NotificationStore.d.ts +26 -0
  2. package/es/data/notification/NotificationStore.js +75 -0
  3. package/es/data/notification/NotificationStore.js.map +1 -0
  4. package/es/data/notification/hooks.d.ts +5 -0
  5. package/es/data/notification/hooks.js +15 -0
  6. package/es/data/notification/hooks.js.map +1 -0
  7. package/es/data/notification/index.d.ts +4 -0
  8. package/es/data/notification/index.js +5 -0
  9. package/es/data/notification/index.js.map +1 -0
  10. package/es/data/notification/interfaces.d.ts +15 -0
  11. package/es/data/notification/interfaces.js +2 -0
  12. package/es/data/notification/interfaces.js.map +1 -0
  13. package/es/data/notification/types.d.ts +13 -0
  14. package/es/data/notification/types.js +2 -0
  15. package/es/data/notification/types.js.map +1 -0
  16. package/es/modules/board/components/Board/index.js +24 -22
  17. package/es/modules/board/components/Board/index.js.map +1 -1
  18. package/es/modules/board/components/Board/index.less +0 -25
  19. package/es/modules/board/components/Board/state.d.ts +0 -2
  20. package/es/modules/board/components/Board/state.js +0 -10
  21. package/es/modules/board/components/Board/state.js.map +1 -1
  22. package/es/modules/board/components/SubDocumentList/index.js +2 -1
  23. package/es/modules/board/components/SubDocumentList/index.js.map +1 -1
  24. package/es/modules/notification/components/MentionNotificationCard/index.d.ts +10 -0
  25. package/es/modules/notification/components/MentionNotificationCard/index.js +31 -0
  26. package/es/modules/notification/components/MentionNotificationCard/index.js.map +1 -0
  27. package/es/modules/notification/components/MentionNotificationCard/index.less +23 -0
  28. package/es/modules/notification/components/NotificationList/index.d.ts +16 -0
  29. package/es/modules/notification/components/NotificationList/index.js +69 -0
  30. package/es/modules/notification/components/NotificationList/index.js.map +1 -0
  31. package/es/modules/notification/components/NotificationList/index.less +16 -0
  32. package/es/pages/Routes.js +1 -1
  33. package/es/pages/Routes.js.map +1 -1
  34. package/es/pages/Space/components/Documents/index.js +18 -33
  35. package/es/pages/Space/components/Documents/index.js.map +1 -1
  36. package/es/pages/Space/components/Documents/index.less +1 -5
  37. package/es/pages/Space/components/Notifications/index.d.ts +6 -0
  38. package/es/pages/Space/components/Notifications/index.js +37 -0
  39. package/es/pages/Space/components/Notifications/index.js.map +1 -0
  40. package/es/pages/Space/pages/MySpace/index.js +43 -17
  41. package/es/pages/Space/pages/MySpace/index.js.map +1 -1
  42. package/es/pages/Space/pages/MySpace/index.less +20 -34
  43. package/es/pages/Space/pages/MySpace/state.d.ts +24 -5
  44. package/es/pages/Space/pages/MySpace/state.js +89 -17
  45. package/es/pages/Space/pages/MySpace/state.js.map +1 -1
  46. package/package.json +1 -1
  47. package/es/MySpace.d.ts +0 -7
  48. package/es/MySpace.js +0 -14
  49. package/es/MySpace.js.map +0 -1
@@ -0,0 +1,26 @@
1
+ import { ApiEndPoint } from "@voplus/api";
2
+ import { CountedMap, Store } from "@voplus/morpho-data";
3
+ import { INotification, LoadNotificationOptions, NotificationEditOptions } from ".";
4
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
5
+ /** Notificaiton store supply backend functions. */
6
+ export declare class NotificationStore 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, INotification>;
13
+ /** Load a notificaiton from server.
14
+ * @param {string} id - id of the notificaiton.
15
+ * @param {LoadNotificationOptions} options - Optional load options.
16
+ */
17
+ load(id: string, options?: LoadNotificationOptions): Promise<INotification>;
18
+ /** Load a list of documents from server.
19
+ * @param {LoadDocumentListOptions}
20
+ */
21
+ loadList(options?: LoadDocumentListOptions): Promise<INotification[]>;
22
+ /** Edit an existing item on server. */
23
+ edit(id: string, options: NotificationEditOptions): Promise<any>;
24
+ }
25
+ /** React hook to retrieve NotificaitonStore */
26
+ export declare const useNotificationStore: () => NotificationStore;
@@ -0,0 +1,75 @@
1
+ import { RequestBuilder } from "@voplus/api";
2
+ import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
3
+ import { observable } from "mobx";
4
+ const StoreName = "NotificationStore";
5
+ /** Notificaiton store supply backend functions. */
6
+ export class NotificationStore 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 {LoadNotificationOptions} options - Optional load options.
33
+ */
34
+ async load(id, options) {
35
+ options = options !== null && options !== void 0 ? options : {};
36
+ let query = "";
37
+ if (options.includes)
38
+ query = query.concat(`includes=${options.includes}`);
39
+ if (query)
40
+ query = "?".concat(query);
41
+ const r = await this.endpoint.get(`/api/myspace/notifications/${id}${query}`);
42
+ return await r.json();
43
+ }
44
+ /** Load a list of documents from server.
45
+ * @param {LoadDocumentListOptions}
46
+ */
47
+ async loadList(options) {
48
+ let query = "";
49
+ if (options === null || options === void 0 ? void 0 : options.Includes) {
50
+ query = query.concat(`includes=${options.Includes}`);
51
+ }
52
+ if (query)
53
+ query = "?".concat(query);
54
+ const r = await this.endpoint.post(`/api/myspace/notifications${query}`, new RequestBuilder().json(options ? options : { Filters: [] }));
55
+ return (await r.json());
56
+ }
57
+ /** Edit an existing item on server. */
58
+ async edit(id, options) {
59
+ return this.action(async () => {
60
+ const r = await this.endpoint.post(`/api/myspace/notifications/${id}`, new RequestBuilder().json(options.data));
61
+ const t = (await r.json());
62
+ this.items.overwrite(t.id, t);
63
+ return t;
64
+ }, options);
65
+ }
66
+ }
67
+ /** React hook to retrieve NotificaitonStore */
68
+ export const useNotificationStore = () => {
69
+ const context = useApplicationContext();
70
+ if (!context.getService(StoreName)) {
71
+ context.registerService(new NotificationStore(context.api.currentEndPoint));
72
+ }
73
+ return context.getService(StoreName);
74
+ };
75
+ //# sourceMappingURL=NotificationStore.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NotificationStore.js","sourceRoot":"","sources":["../../../src/data/notification/NotificationStore.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAI/E,OAAO,EAAE,UAAU,EAAE,MAAM,MAAM,CAAC;AAElC,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,OAAiC;QAC3D,OAAO,GAAG,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,CAAC;QACxB,IAAI,KAAK,GAAG,EAAE,CAAC;QACf,IAAI,OAAO,CAAC,QAAQ;YAAE,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,YAAY,OAAO,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AAC,IAAI,EAAE,CAAkB,CAAC;YAErD,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;YACrB,OAAO,CAAC,CAAC;QACb,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 { INotification, LoadNotificationOptions } from ".";
2
+ import { ListDataContextState } from "@voplus/morpho-ui/es/data";
3
+ import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
4
+ export declare const useNotification: (id: string, options?: LoadNotificationOptions | undefined) => INotification;
5
+ export declare const useNotificationListEffect: (list: ListDataContextState<INotification> | null, effect: (list: INotification[], total?: number | undefined) => void, options?: LoadDocumentListOptions | undefined) => void;
@@ -0,0 +1,15 @@
1
+ import { useNotificationStore } from ".";
2
+ import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
3
+ import { useLoadCountedMapItem } from "@voplus/morpho-data";
4
+ export const useNotification = (id, options) => {
5
+ options = options ? options : {};
6
+ const store = useNotificationStore();
7
+ return useLoadCountedMapItem(id, store.items, () => store.load(id, options), options);
8
+ };
9
+ export const useNotificationListEffect = (list, effect, options) => {
10
+ const deps = options ? options : {};
11
+ const store = useNotificationStore();
12
+ // Call useListLoaderEffect and ensure won't load twice for same loading options.
13
+ return useListLoaderEffect(list, store.items, effect, () => store.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,EAA0C,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAIjF,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,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,MAAsD,EACtD,OAAiC,EAChC,EAAE;IACH,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAE,EAA8B,CAAC;IAEjE,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IAErC,iFAAiF;IACjF,OAAO,mBAAmB,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;AAC9F,CAAC,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./interfaces";
2
+ export * from "./types";
3
+ export * from "./NotificationStore";
4
+ export * from "./hooks";
@@ -0,0 +1,5 @@
1
+ export * from "./interfaces";
2
+ export * from "./types";
3
+ export * from "./NotificationStore";
4
+ export * from "./hooks";
5
+ //# sourceMappingURL=index.js.map
@@ -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,15 @@
1
+ import { ILoadable } from "@voplus/morpho-data";
2
+ export declare type NotificationStatus = "Unread" | "Read" | "Later" | "Dismissed";
3
+ export interface INotification extends ILoadable {
4
+ id: string;
5
+ type: string;
6
+ status: NotificationStatus;
7
+ dismissDate?: Date;
8
+ createDate: Date;
9
+ }
10
+ export interface IMentionedNotification extends INotification {
11
+ content: {
12
+ content: string;
13
+ documentId: string;
14
+ };
15
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/data/notification/interfaces.ts"],"names":[],"mappings":""}
@@ -0,0 +1,13 @@
1
+ import { INotification, NotificationStatus } from ".";
2
+ import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
3
+ /** Custom load contact options type */
4
+ export declare type LoadNotificationOptions = {
5
+ /** Comma separated include options e.g. path */
6
+ includes?: string;
7
+ } & LoadOptions<INotification>;
8
+ export declare type NotificationEditDataOptions = {
9
+ status?: NotificationStatus;
10
+ };
11
+ export declare type NotificationEditOptions = {
12
+ data: NotificationEditDataOptions;
13
+ } & StoreActionOptions;
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=types.js.map
@@ -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
- /** BoardColumn filters name */
40
- const onSearch = (value) => {
41
- if (state.timeout) {
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;AACrD,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACpF,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,WAAW,MAAM,gBAAgB,CAAC;AACzC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,UAAU,MAAM,oEAAoE,CAAC;AAC5F,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,OAAO,MAAM,uCAAuC,CAAC;AAC5D,OAAO,YAAY,MAAM,yEAAyE,CAAC;AACnG,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,OA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C,KAAK,CAAC,CAAC,GAChE;4BACF,oBAAC,MAAM,IAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,GAAI;4BACxD,oBAAC,MAAM,IACN,IAAI,EAAE,OAAO,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,CAAC,GACnE,CACI,CACD,CACP,CACI;oBACN,6BAAK,SAAS,EAAC,WAAW;wBACzB,6BAAK,OAAO,EAAE,GAAG,EAAE,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,CAAC,KAAK,CAAC,kBAAkB,GAAG,IAAI,CAAC,CAAC,YAAa,CAChF,CACD,CACD,CACoB,CACC,CAC7B,CAAC,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,KAAK,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,qBAAqB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,UAAU,MAAM,0CAA0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,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;
@@ -17,8 +17,6 @@ export declare class State {
17
17
  oldboardcolumns: IBoardColumn[];
18
18
  /** board ids */
19
19
  ids: IBoardIds[];
20
- /** search filter 1.5秒 */
21
- timeout: any;
22
20
  /** add BoardColumn name */
23
21
  name: string;
24
22
  reload: boolean;
@@ -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,UA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AuF;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"}
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;WAAC;QAC9C,eAAe;QACH;;;;;WAAmB;QAC/B,gBAAgB;QACJ;;;;;WAAwB;QACpC,wCAAwC;QAC5B;;;;mBAAmB,CAAC,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC;WAAC;QAClG,+BAA+B;QACnB;;;;mBAAoB,EAAE;WAAC;QACvB;;;;mBAAqC,EAAE;WAAC;QACpD,2EAA2E;QAC/D;;;;mBAAqB,KAAK;WAAC;QAGvC;;;;mBAA8B,CAAC,CAAgB,EAAE,CAAY,EAAE,EAAE;gBAChE,IAAI,CAAC,CAAC,QAAQ,KAAK,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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"}
@@ -66,7 +66,8 @@ const SubDocumentList = (props) => {
66
66
  if (!result) {
67
67
  docList.reset();
68
68
  runInAction(() => {
69
- docList.loading = true;
69
+ // should use useOnRenderChange
70
+ docList["_loading"] = true;
70
71
  state.filters = filters;
71
72
  });
72
73
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAAE,SAAS,EAA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E,CAAC,CAAC;SACjC;IACF,CAAC;IAED,kCAAkC;IAClC,SAAS,OAAO;QACf,MAAM,GAAG,GAAa,EAAE,CAAC;QACzB,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;QACxC,OAAO,EAAE,SAAS,EAAE,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC;IAC7C,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,QAAQ,CAAC,eAAe,CAAC,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/board/components/SubDocumentList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGN,qBAAqB,EACrB,gBAAgB,EAChB,mBAAmB,EACnB,gBAAgB,GAChB,MAAM,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,KAAK,EAAwB,MAAM,SAAS,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEvF,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,kBAAkB,MAAM,kDAAkD,CAAC;AAClF,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,oBAAoB,EAAE,MAA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,QAAQ,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { NotificationStatus } from "../../../../data/notification";
2
+ import React from "react";
3
+ declare const MentionNotificationCard: (props: {
4
+ id: string;
5
+ active?: boolean | undefined;
6
+ className?: string | undefined;
7
+ onClick?: React.MouseEventHandler<HTMLDivElement> | undefined;
8
+ onChangeStatus?: ((state: NotificationStatus) => void) | undefined;
9
+ }) => JSX.Element;
10
+ export default MentionNotificationCard;
@@ -0,0 +1,31 @@
1
+ import { Button, Space } from "@voplus/antd";
2
+ import { useNotification, } from "../../../../data/notification";
3
+ import Card from "@voplus/morpho-ui/es/controls/Card";
4
+ import ProseMirrorViewer from "@voplus/morpho-text/es/controls/ProseMirror/Viewer";
5
+ import React from "react";
6
+ import classnames from "classnames";
7
+ import moment from "moment";
8
+ import { observe } from "@voplus/morpho-ui";
9
+ import styles from "./index.less";
10
+ const MentionNotificationCard = (props) => {
11
+ const notification = useNotification(props.id);
12
+ return observe(() => (React.createElement(Card, { className: classnames(styles["notification-card"], props.className, { active: props.active }), bordered: true,
13
+ //hoverShadow
14
+ shadow: true },
15
+ React.createElement("div", { onClick: props.onClick },
16
+ React.createElement("h3", null, "Mention Notification"),
17
+ React.createElement(ProseMirrorViewer, { html: notification.content.content }),
18
+ React.createElement("div", { className: "notification-footer" },
19
+ React.createElement("div", { className: "notification-date" }, moment(notification.createDate).format("DD MMM yyyy")),
20
+ React.createElement("div", { className: "notification-btn" },
21
+ React.createElement(Space, null,
22
+ notification.status !== "Dismissed" && (React.createElement(Button, { onClick: (ev) => onChangeStatus(ev, "Dismissed") }, "Dismiss")),
23
+ notification.status !== "Later" && notification.status !== "Dismissed" && (React.createElement(Button, { onClick: (ev) => onChangeStatus(ev, "Later") }, "Later")))))))));
24
+ function onChangeStatus(ev, status) {
25
+ var _a;
26
+ (_a = props.onChangeStatus) === null || _a === void 0 ? void 0 : _a.call(props, status);
27
+ ev.stopPropagation();
28
+ }
29
+ };
30
+ export default MentionNotificationCard;
31
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/MentionNotificationCard/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAGN,eAAe,GACf,MAAM,+BAA+B,CAAC;AAEvC,OAAO,IAAI,MAAM,oCAAoC,CAAC;AACtD,OAAO,iBAAiB,MAAM,oDAAoD,CAAC;AACnF,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,MAAM,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,uBAAuB,GAAG,CAAC,KAMhC,EAAE,EAAE;IACJ,MAAM,YAAY,GAAG,eAAe,CAAC,KAAK,CAAC,EAAE,CAA2B,CAAC;IAEzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,oBAAC,IAAI,IACJ,SAAS,EAAE,UAAU,CAAC,MAAM,CAAC,mBAAmB,CAAC,EAAE,KAAK,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE,CAAC,EAC7F,QAAQ;QACR,aAAa;QACb,MAAM;QAEN,6BAAK,OAAO,EAAE,KAAK,CAAC,OAAO;YAC1B,uDAA6B;YAC7B,oBAAC,iBAAiB,IAAC,IAAI,EAAE,YAAY,CAAC,OAAO,CAAC,OAAO,GAAI;YACzD,6BAAK,SAAS,EAAC,qBAAqB;gBACnC,6BAAK,SAAS,EAAC,mBAAmB,IAChC,MAAM,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,aAAa,CAAC,CACjD;gBACN,6BAAK,SAAS,EAAC,kBAAkB;oBAChC,oBAAC,KAAK;wBACJ,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CACvC,oBAAC,MAAM,IAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,WAAW,CAAC,cAAkB,CAC1E;wBACA,YAAY,CAAC,MAAM,KAAK,OAAO,IAAI,YAAY,CAAC,MAAM,KAAK,WAAW,IAAI,CAC1E,oBAAC,MAAM,IAAC,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,cAAc,CAAC,EAAE,EAAE,OAAO,CAAC,YAAgB,CACpE,CACM,CACH,CACD,CACD,CACA,CACP,CAAC,CAAC;IAEH,SAAS,cAAc,CAAC,EAAO,EAAE,MAA0B;;QAC1D,MAAA,KAAK,CAAC,cAAc,+CAApB,KAAK,EAAkB,MAAM,CAAC,CAAC;QAC/B,EAAE,CAAC,eAAe,EAAE,CAAC;IACtB,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,uBAAuB,CAAC"}
@@ -0,0 +1,23 @@
1
+ .notification-card {
2
+ cursor: pointer;
3
+ margin: 10px 30px 10px 30px;
4
+ &:hover {
5
+ border: 1px solid rgb(210, 210, 210);
6
+ box-shadow: 2px 2px 5px #ddddf7;
7
+ }
8
+ &:global(.active) {
9
+ border: 1px solid rgb(210, 210, 210);
10
+ box-shadow: 2px 2px 5px #ddddf7;
11
+ }
12
+ :global {
13
+ .notification-footer {
14
+ margin-top: 20px;
15
+ display: flex;
16
+ justify-content: space-between;
17
+ align-items: center;
18
+ .notification-date {
19
+ color: gray;
20
+ }
21
+ }
22
+ }
23
+ }
@@ -0,0 +1,16 @@
1
+ import "./index.less";
2
+ import { INotification, NotificationStatus } from "../../../../data/notification";
3
+ import React from "react";
4
+ declare const NotificationList: (props: {
5
+ /** status of notifications shown on the list. */
6
+ status: string;
7
+ /** The current active item */
8
+ active?: string | undefined;
9
+ /** Call back when an item has been clicked on the list. */
10
+ onClickItem?: ((ev: React.MouseEvent<HTMLDivElement, MouseEvent>, item: INotification) => void) | undefined;
11
+ /** Call back when received total number of notifications. */
12
+ onTotal?: ((total: number) => void) | undefined;
13
+ /** Call back when an item's status changed. */
14
+ onItemStatusChanged?: ((old: NotificationStatus, item: INotification) => void) | undefined;
15
+ }) => JSX.Element;
16
+ export default NotificationList;
@@ -0,0 +1,69 @@
1
+ import "./index.less";
2
+ import { useNotification, useNotificationListEffect, useNotificationStore, } from "../../../../data/notification";
3
+ import { ListDataContext, useCreateListDataState } from "@voplus/morpho-ui/es/data";
4
+ import React from "react";
5
+ import { observe, useRenderOnChange } from "@voplus/morpho-ui";
6
+ import { CSSTransition } from "react-transition-group";
7
+ import ListView from "@voplus/morpho-ui/es/components/layout/ListView/ListView2";
8
+ import MentionNotificationCard from "../MentionNotificationCard";
9
+ import PropertiesView from "@voplus/morpho-document/es/components/PropertiesView";
10
+ import S from "string";
11
+ import { runInAction } from "mobx";
12
+ const NotificationList = (props) => {
13
+ const store = useNotificationStore();
14
+ // const list = useCreateListDataState<INotificaiton>({}, []);
15
+ const list = useCreateListDataState({ filterDefaults: { filters: filters() } }, [
16
+ props.status,
17
+ ]);
18
+ /** 如果 list.filters.options变更了就重渲染,使下一行的useNotificaitonListEffect 可以接收新参数*/
19
+ useRenderOnChange(() => list.filters.options);
20
+ /** 把ListDataState传给useNotificaitonListEffect,使之可以自動更新loading, hasmore. */
21
+ useNotificationListEffect(list, (result, total) => {
22
+ var _a;
23
+ list.union(result);
24
+ (_a = props.onTotal) === null || _a === void 0 ? void 0 : _a.call(props, total);
25
+ }, {
26
+ Total: true,
27
+ ...list.filters.options,
28
+ });
29
+ // try to load the active notification and add to list if it's not already there.
30
+ useNotification(props.active, {
31
+ onLoad: (item) => {
32
+ list.insert(item, 0);
33
+ if (item.status === "Unread") {
34
+ editStatus(item.id, "Read");
35
+ }
36
+ },
37
+ });
38
+ return observe(() => (React.createElement(ListDataContext.Provider, { value: list },
39
+ React.createElement(ListView, { headerProps: { viewTitle: "My Notifications", addAble: false, sortable: false }, className: "my-space-notifications", renderItem: ({ item }) => {
40
+ return (React.createElement(CSSTransition, { key: item.id, in: list.isRemoving(item.id) !== true, timeout: 300, classNames: "notification-card" },
41
+ React.createElement(MentionNotificationCard, { id: item.id, active: props.active === item.id ? true : false, onClick: (ev) => { var _a; return (_a = props.onClickItem) === null || _a === void 0 ? void 0 : _a.call(props, ev, item); }, onChangeStatus: (status) => editStatus(item.id, status) })));
42
+ }, propertiesView: (id, item) => React.createElement(PropertiesView, { id: item.content.documentId }) }))));
43
+ function filters() {
44
+ if (!props.status || props.status == "all")
45
+ return [];
46
+ return [
47
+ {
48
+ c: "Status",
49
+ o: "=",
50
+ l: "And",
51
+ v1: S(props.status).capitalize().toString(),
52
+ },
53
+ ];
54
+ }
55
+ function editStatus(id, status) {
56
+ runInAction(async () => {
57
+ var _a;
58
+ const item = store.items.get(id);
59
+ const old = item.status;
60
+ await store.edit(id, { data: { status: status }, error: "message" });
61
+ (_a = props.onItemStatusChanged) === null || _a === void 0 ? void 0 : _a.call(props, old, item);
62
+ if (props.status === "unread" && item.status === "Read")
63
+ return;
64
+ list.remove(item.id, { delay: 300 });
65
+ });
66
+ }
67
+ };
68
+ export default NotificationList;
69
+ //# sourceMappingURL=index.js.map