@voplus/morpho-workspace 6.0.62 → 6.0.64
Sign up to get free protection for your applications and to get access to all the features.
- package/es/data/notification/NotificationStore.d.ts +14 -4
- package/es/data/notification/NotificationStore.js +54 -4
- package/es/data/notification/NotificationStore.js.map +1 -1
- package/es/data/notification/index.d.ts +1 -0
- package/es/data/notification/index.js +1 -0
- package/es/data/notification/index.js.map +1 -1
- package/es/data/notification/interfaces.d.ts +13 -0
- package/es/data/notification/notification-events/index.d.ts +3 -0
- package/es/data/notification/notification-events/index.js +4 -0
- package/es/data/notification/notification-events/index.js.map +1 -0
- package/es/data/notification/notification-events/useAutoUpdateListData.d.ts +4 -0
- package/es/data/notification/notification-events/useAutoUpdateListData.js +13 -0
- package/es/data/notification/notification-events/useAutoUpdateListData.js.map +1 -0
- package/es/data/notification/notification-events/useOnDeleteNotification.d.ts +4 -0
- package/es/data/notification/notification-events/useOnDeleteNotification.js +16 -0
- package/es/data/notification/notification-events/useOnDeleteNotification.js.map +1 -0
- package/es/data/notification/notification-events/useOnNewNotification.d.ts +4 -0
- package/es/data/notification/notification-events/useOnNewNotification.js +16 -0
- package/es/data/notification/notification-events/useOnNewNotification.js.map +1 -0
- package/es/data/notification/types.d.ts +28 -0
- package/es/modules/Routes.d.ts +6 -0
- package/es/modules/Routes.js +14 -1
- package/es/modules/Routes.js.map +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.js +1 -1
- package/es/modules/meeting/components/MeetingDescription/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js +1 -1
- package/es/modules/meeting/components/MeetingTaskList/index.js.map +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js +1 -1
- package/es/modules/meeting/components/MeetingsFolderQuickViewDialog/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js +1 -1
- package/es/modules/meeting/pages/MeetingPrintView/index.js.map +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js +1 -1
- package/es/modules/meeting/pages/MeetingTabView/index.js.map +1 -1
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.d.ts +17 -0
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js +67 -0
- package/es/modules/notification/components/NewNotificationForm/NotificationForm.js.map +1 -0
- package/es/modules/notification/components/NewNotificationForm/index.d.ts +10 -0
- package/es/modules/notification/components/NewNotificationForm/index.js +14 -0
- package/es/modules/notification/components/NewNotificationForm/index.js.map +1 -0
- package/es/modules/notification/components/NewNotificationForm/index.less +38 -0
- package/es/modules/notification/components/NewNotificationForm/state.d.ts +19 -0
- package/es/modules/notification/components/NewNotificationForm/state.js +54 -0
- package/es/modules/notification/components/NewNotificationForm/state.js.map +1 -0
- package/es/modules/notification/components/NotificationHeader/index.d.ts +6 -0
- package/es/modules/notification/components/NotificationHeader/index.js +19 -0
- package/es/modules/notification/components/NotificationHeader/index.js.map +1 -0
- package/es/modules/notification/components/NotificationHeader/index.less +12 -0
- package/es/modules/notification/components/NotificationItem/index.d.ts +6 -0
- package/es/modules/notification/components/NotificationItem/index.js +31 -0
- package/es/modules/notification/components/NotificationItem/index.js.map +1 -0
- package/es/modules/notification/components/NotificationItem/index.less +29 -0
- package/es/modules/notification/components/NotificationList2/index.d.ts +7 -0
- package/es/modules/notification/components/NotificationList2/index.js +39 -0
- package/es/modules/notification/components/NotificationList2/index.js.map +1 -0
- package/es/modules/notification/components/NotificationList2/index.less +11 -0
- package/es/modules/notification/components/NotificationProperties/index.d.ts +20 -0
- package/es/modules/notification/components/NotificationProperties/index.js +56 -0
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -0
- package/es/modules/notification/components/NotificationPropertiesView/index.d.ts +7 -0
- package/es/modules/notification/components/NotificationPropertiesView/index.js +16 -0
- package/es/modules/notification/components/NotificationPropertiesView/index.js.map +1 -0
- package/es/modules/notification/components/NotificationPropertiesView/index.less +26 -0
- package/es/modules/notification/components/NotificationQuickViewDialog/index.d.ts +8 -0
- package/es/modules/notification/components/NotificationQuickViewDialog/index.js +13 -0
- package/es/modules/notification/components/NotificationQuickViewDialog/index.js.map +1 -0
- package/es/modules/notification/components/NotificationQuickViewDialog/index.less +7 -0
- package/es/modules/notification/components/NotificationRecipients/index.d.ts +7 -0
- package/es/modules/notification/components/NotificationRecipients/index.js +27 -0
- package/es/modules/notification/components/NotificationRecipients/index.js.map +1 -0
- package/es/modules/notification/components/NotificationRecipients/index.less +17 -0
- package/es/modules/notification/components/NotificationTabs/index.d.ts +7 -0
- package/es/modules/notification/components/NotificationTabs/index.js +38 -0
- package/es/modules/notification/components/NotificationTabs/index.js.map +1 -0
- package/es/modules/notification/components/NotificationTabs/index.less +8 -0
- package/es/modules/notification/controls/NotificationMenu/index.d.ts +7 -0
- package/es/modules/notification/controls/NotificationMenu/index.js +13 -0
- package/es/modules/notification/controls/NotificationMenu/index.js.map +1 -0
- package/es/modules/notification/pages/NotificationDefaultView/index.d.ts +4 -0
- package/es/modules/notification/pages/NotificationDefaultView/index.js +26 -0
- package/es/modules/notification/pages/NotificationDefaultView/index.js.map +1 -0
- package/es/modules/notification/pages/NotificationDefaultView/index.less +19 -0
- package/es/modules/tasks/pages/TaskTabView/index.js +16 -12
- package/es/modules/tasks/pages/TaskTabView/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleItem/index.js.map +1 -1
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js +4 -3
- package/es/modules/work/work-schedule/components/WorkScheduleTimeLineView/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js +1 -1
- package/es/modules/work/work-type/components/WorkTypeProperties/WorkTypePropertiesCard.js.map +1 -1
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js +1 -1
- package/es/obsolete/space/components/Notes/TextNoteCard/index.js.map +1 -1
- package/package.json +1 -1
@@ -1,19 +1,28 @@
|
|
1
1
|
import { ApiEndPoint } from "@voplus/api";
|
2
2
|
import { CountedMap, Store } from "@voplus/morpho-data";
|
3
|
-
import { INotification, LoadNotificationOptions, NotificationEditOptions } from ".";
|
3
|
+
import { INotification, LoadNotificationOptions, NotificationEditOptions, CreateNotificationOptions, DeleteNotificationOptions } from ".";
|
4
4
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
5
5
|
/** Notificaiton store supply backend functions. */
|
6
6
|
export declare class NotificationStore extends Store {
|
7
7
|
readonly endpoint: ApiEndPoint;
|
8
8
|
/** Name of the store */
|
9
9
|
readonly name: string;
|
10
|
+
/** Contac created event dispatcher */
|
11
|
+
private readonly _created;
|
12
|
+
private readonly _deleted;
|
10
13
|
constructor(endpoint: ApiEndPoint);
|
14
|
+
/** Event fires when a new notification has been created. */
|
15
|
+
get NotificationCreatedEvent(): import("strongly-typed-events").IEvent<NotificationStore, INotification>;
|
16
|
+
/** Event fires when a delete contact has been deleted. */
|
17
|
+
get NotificationDeletedEvent(): import("strongly-typed-events").IEvent<NotificationStore, INotification>;
|
11
18
|
/** All currently used notificaiton. */
|
12
19
|
readonly items: CountedMap<string, INotification>;
|
20
|
+
/** Create a new contact base on type. */
|
21
|
+
create(options: CreateNotificationOptions): Promise<INotification>;
|
13
22
|
/** Load a notificaiton from server.
|
14
|
-
|
15
|
-
|
16
|
-
|
23
|
+
* @param {string} id - id of the notificaiton.
|
24
|
+
* @param {LoadNotificationOptions} options - Optional load options.
|
25
|
+
*/
|
17
26
|
load(id: string, options?: LoadNotificationOptions): Promise<INotification>;
|
18
27
|
/** Load a list of documents from server.
|
19
28
|
* @param {LoadDocumentListOptions}
|
@@ -21,6 +30,7 @@ export declare class NotificationStore extends Store {
|
|
21
30
|
loadList(options?: LoadDocumentListOptions): Promise<INotification[]>;
|
22
31
|
/** Edit an existing item on server. */
|
23
32
|
edit(id: string, options: NotificationEditOptions): Promise<any>;
|
33
|
+
delete(ids: string[], options?: DeleteNotificationOptions): Promise<any>;
|
24
34
|
}
|
25
35
|
/** React hook to retrieve NotificaitonStore */
|
26
36
|
export declare const useNotificationStore: () => NotificationStore;
|
@@ -1,6 +1,8 @@
|
|
1
|
+
import { __decorate } from "tslib";
|
1
2
|
import { RequestBuilder } from "@voplus/api";
|
2
3
|
import { CountedMap, Store, useApplicationContext } from "@voplus/morpho-data";
|
3
|
-
import {
|
4
|
+
import { EventDispatcher } from "strongly-typed-events";
|
5
|
+
import { observable, action } from "mobx";
|
4
6
|
const StoreName = "NotificationStore";
|
5
7
|
/** Notificaiton store supply backend functions. */
|
6
8
|
export class NotificationStore extends Store {
|
@@ -19,6 +21,19 @@ export class NotificationStore extends Store {
|
|
19
21
|
writable: true,
|
20
22
|
value: StoreName
|
21
23
|
});
|
24
|
+
/** Contac created event dispatcher */
|
25
|
+
Object.defineProperty(this, "_created", {
|
26
|
+
enumerable: true,
|
27
|
+
configurable: true,
|
28
|
+
writable: true,
|
29
|
+
value: new EventDispatcher()
|
30
|
+
});
|
31
|
+
Object.defineProperty(this, "_deleted", {
|
32
|
+
enumerable: true,
|
33
|
+
configurable: true,
|
34
|
+
writable: true,
|
35
|
+
value: new EventDispatcher()
|
36
|
+
});
|
22
37
|
/** All currently used notificaiton. */
|
23
38
|
Object.defineProperty(this, "items", {
|
24
39
|
enumerable: true,
|
@@ -27,10 +42,28 @@ export class NotificationStore extends Store {
|
|
27
42
|
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
28
43
|
});
|
29
44
|
}
|
45
|
+
/** Event fires when a new notification has been created. */
|
46
|
+
get NotificationCreatedEvent() {
|
47
|
+
return this._created.asEvent();
|
48
|
+
}
|
49
|
+
/** Event fires when a delete contact has been deleted. */
|
50
|
+
get NotificationDeletedEvent() {
|
51
|
+
return this._deleted.asEvent();
|
52
|
+
}
|
53
|
+
/** Create a new contact base on type. */
|
54
|
+
async create(options) {
|
55
|
+
// invariant(options.data.name, "Name cannot be empty.");
|
56
|
+
return await this.action(async () => {
|
57
|
+
const r = await this.endpoint.post(`/api/myspace/notifications/create`, new RequestBuilder().json(options.data));
|
58
|
+
const t = (await r.json());
|
59
|
+
this._created.dispatch(this, t);
|
60
|
+
return t;
|
61
|
+
}, options);
|
62
|
+
}
|
30
63
|
/** Load a notificaiton from server.
|
31
|
-
|
32
|
-
|
33
|
-
|
64
|
+
* @param {string} id - id of the notificaiton.
|
65
|
+
* @param {LoadNotificationOptions} options - Optional load options.
|
66
|
+
*/
|
34
67
|
async load(id, options) {
|
35
68
|
options = options !== null && options !== void 0 ? options : {};
|
36
69
|
let query = "";
|
@@ -63,7 +96,24 @@ export class NotificationStore extends Store {
|
|
63
96
|
return t;
|
64
97
|
}, options);
|
65
98
|
}
|
99
|
+
async delete(ids, options) {
|
100
|
+
return await this.action(async () => {
|
101
|
+
await this.endpoint.delete(`/api/myspace/notifications/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
|
102
|
+
const deleted = [];
|
103
|
+
for (const id of ids) {
|
104
|
+
const item = this.items.peek(id);
|
105
|
+
if (item) {
|
106
|
+
deleted.push(item);
|
107
|
+
this._deleted.dispatch(this, item);
|
108
|
+
}
|
109
|
+
}
|
110
|
+
return deleted;
|
111
|
+
}, options);
|
112
|
+
}
|
66
113
|
}
|
114
|
+
__decorate([
|
115
|
+
action
|
116
|
+
], NotificationStore.prototype, "delete", null);
|
67
117
|
/** React hook to retrieve NotificaitonStore */
|
68
118
|
export const useNotificationStore = () => {
|
69
119
|
const context = useApplicationContext();
|
@@ -1 +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;
|
1
|
+
{"version":3,"file":"NotificationStore.js","sourceRoot":"","sources":["../../../src/data/notification/NotificationStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,cAAc,EAAE,M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CAAC,IAAI,CAAC,CAAC;oBACnB,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;gBACpC,CAAC;YACF,CAAC;YACD,OAAO,OAAO,CAAC;QAChB,CAAC,EAAE,OAAQ,CAAC,CAAC;IACd,CAAC;CACD;AAjBa;IADZ,MAAM;+CAiBN;AAGF,+CAA+C;AAC/C,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,EAAE;IACxC,MAAM,OAAO,GAAG,qBAAqB,EAAE,CAAC;IACxC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QACpC,OAAO,CAAC,eAAe,CAAC,IAAI,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
|
@@ -1 +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"}
|
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;AACxB,cAAc,uBAAuB,CAAA"}
|
@@ -1,4 +1,12 @@
|
|
1
1
|
import { ILoadable } from "@voplus/morpho-data";
|
2
|
+
export type IRrecipient = {
|
3
|
+
recipient: {
|
4
|
+
id: string;
|
5
|
+
name: string;
|
6
|
+
};
|
7
|
+
channel: string;
|
8
|
+
sentDate: string;
|
9
|
+
};
|
2
10
|
export type NotificationStatus = "Unread" | "Read" | "Later" | "Dismissed";
|
3
11
|
export interface INotification extends ILoadable {
|
4
12
|
id: string;
|
@@ -6,6 +14,11 @@ export interface INotification extends ILoadable {
|
|
6
14
|
status: NotificationStatus;
|
7
15
|
dismissDate?: Date;
|
8
16
|
createDate: Date;
|
17
|
+
date?: Date;
|
18
|
+
recipients?: IRrecipient[];
|
19
|
+
channels?: ("Email" | "Instant Message")[];
|
20
|
+
subject?: string;
|
21
|
+
body?: string;
|
9
22
|
}
|
10
23
|
export interface IDocumentNotification extends INotification {
|
11
24
|
content: {
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/data/notification/notification-events/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { INotification } from "../interfaces";
|
2
|
+
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
3
|
+
/** React hook to call action when a new notification has been created. */
|
4
|
+
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: INotification, event: string) => boolean) => void;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { useOnDeleteNotification, useOnNewNotification } from ".";
|
2
|
+
/** React hook to call action when a new notification has been created. */
|
3
|
+
export const useAutoUpdateListData = (list, shouldUpdate) => {
|
4
|
+
useOnNewNotification((s, d) => {
|
5
|
+
if (shouldUpdate(d, "new"))
|
6
|
+
list.union([d]);
|
7
|
+
});
|
8
|
+
useOnDeleteNotification((s, d) => {
|
9
|
+
if (shouldUpdate(d, "del"))
|
10
|
+
list.remove(d.id);
|
11
|
+
});
|
12
|
+
};
|
13
|
+
//# sourceMappingURL=useAutoUpdateListData.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useAutoUpdateListData.js","sourceRoot":"","sources":["../../../../src/data/notification/notification-events/useAutoUpdateListData.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,GAAG,CAAC;AAKlE,0EAA0E;AAC1E,MAAM,CAAC,MAAM,qBAAqB,GAAG,CACpC,IAA+B,EAC/B,YAA0D,EACzD,EAAE;IACH,oBAAoB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAC7B,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7C,CAAC,CAAC,CAAC;IAEH,uBAAuB,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;QAChC,IAAI,YAAY,CAAC,CAAC,EAAE,KAAK,CAAC;YAAE,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC/C,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { NotificationStore } from "../NotificationStore";
|
2
|
+
import { INotification } from "../interfaces";
|
3
|
+
/** React hook to call action when a delete notification has been created. */
|
4
|
+
export declare const useOnDeleteNotification: (action: (store: NotificationStore, doc: INotification) => void) => void;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { useNotificationStore } from "../NotificationStore";
|
2
|
+
import { useEffect } from "react";
|
3
|
+
/** React hook to call action when a delete notification has been created. */
|
4
|
+
export const useOnDeleteNotification = (action) => {
|
5
|
+
const store = useNotificationStore();
|
6
|
+
const onDeleteNotification = (store, doc) => {
|
7
|
+
action(store, doc);
|
8
|
+
};
|
9
|
+
useEffect(() => {
|
10
|
+
store.NotificationDeletedEvent.subscribe(onDeleteNotification);
|
11
|
+
return () => {
|
12
|
+
store.NotificationDeletedEvent.unsubscribe(onDeleteNotification);
|
13
|
+
};
|
14
|
+
});
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=useOnDeleteNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useOnDeleteNotification.js","sourceRoot":"","sources":["../../../../src/data/notification/notification-events/useOnDeleteNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,6EAA6E;AAC7E,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,MAA8D,EAAE,EAAE;IACzG,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAE,GAAkB,EAAE,EAAE;QAC7E,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,oBAAoB,CAAC,CAAC;QAC/D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,oBAAoB,CAAC,CAAC;QAClE,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { NotificationStore } from "../NotificationStore";
|
2
|
+
import { INotification } from "../interfaces";
|
3
|
+
/** React hook to call action when a new notification has been created. */
|
4
|
+
export declare const useOnNewNotification: (action: (store: NotificationStore, doc: INotification) => void) => void;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import { useNotificationStore } from "../NotificationStore";
|
2
|
+
import { useEffect } from "react";
|
3
|
+
/** React hook to call action when a new notification has been created. */
|
4
|
+
export const useOnNewNotification = (action) => {
|
5
|
+
const store = useNotificationStore();
|
6
|
+
const onNewNotification = (store, doc) => {
|
7
|
+
action(store, doc);
|
8
|
+
};
|
9
|
+
useEffect(() => {
|
10
|
+
store.NotificationCreatedEvent.subscribe(onNewNotification);
|
11
|
+
return () => {
|
12
|
+
store.NotificationCreatedEvent.unsubscribe(onNewNotification);
|
13
|
+
};
|
14
|
+
});
|
15
|
+
};
|
16
|
+
//# sourceMappingURL=useOnNewNotification.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"useOnNewNotification.js","sourceRoot":"","sources":["../../../../src/data/notification/notification-events/useOnNewNotification.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAG/E,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,0EAA0E;AAC1E,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,MAA8D,EAAE,EAAE;IACtG,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,GAAkB,EAAE,EAAE;QAC1E,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACpB,CAAC,CAAC;IACF,SAAS,CAAC,GAAG,EAAE;QACd,KAAK,CAAC,wBAAwB,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;QAC5D,OAAO,GAAG,EAAE;YACX,KAAK,CAAC,wBAAwB,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;QAC/D,CAAC,CAAC;IACH,CAAC,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -1,5 +1,14 @@
|
|
1
1
|
import { INotification, NotificationStatus } from ".";
|
2
2
|
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
3
|
+
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
4
|
+
import { FilterOption, PageParameters } from "@voplus/morpho-data/es/types";
|
5
|
+
/** Custom load notification list options type */
|
6
|
+
export type LoadNotificationListOptions = {
|
7
|
+
Includes?: string;
|
8
|
+
Filters?: FilterOption[];
|
9
|
+
Page?: PageParameters;
|
10
|
+
Total?: boolean;
|
11
|
+
};
|
3
12
|
/** Custom load contact options type */
|
4
13
|
export type LoadNotificationOptions = {
|
5
14
|
/** Comma separated include options e.g. path */
|
@@ -7,7 +16,26 @@ export type LoadNotificationOptions = {
|
|
7
16
|
} & LoadOptions<INotification>;
|
8
17
|
export type NotificationEditDataOptions = {
|
9
18
|
status?: NotificationStatus;
|
19
|
+
Date?: string;
|
20
|
+
Subject?: string;
|
21
|
+
Channels?: ("Email" | "Instant Message")[];
|
10
22
|
};
|
11
23
|
export type NotificationEditOptions = {
|
12
24
|
data: NotificationEditDataOptions;
|
13
25
|
} & StoreActionOptions;
|
26
|
+
/** create Notification options */
|
27
|
+
export type CreateNotificationOptions = {
|
28
|
+
data: {
|
29
|
+
/** 需要organization id */
|
30
|
+
ParentId: string;
|
31
|
+
Recipients: string[];
|
32
|
+
/** ("Email" | "Instant Message")[] */
|
33
|
+
Channels: string[];
|
34
|
+
Subject?: string;
|
35
|
+
Body?: string;
|
36
|
+
};
|
37
|
+
} & StoreActionOptions;
|
38
|
+
/** Custom load notification list options type. */
|
39
|
+
export type DeleteNotificationOptions = {
|
40
|
+
data?: DeleteDocumentOptions;
|
41
|
+
} & StoreActionOptions;
|
package/es/modules/Routes.d.ts
CHANGED
@@ -40,6 +40,12 @@ declare const RouteList: {
|
|
40
40
|
getUrl: (id: string) => string;
|
41
41
|
component: React.JSX.Element;
|
42
42
|
};
|
43
|
+
NotificationDefaultView: {
|
44
|
+
route: string;
|
45
|
+
tabPattern: RegExp;
|
46
|
+
getUrl: (id: string) => string;
|
47
|
+
component: React.JSX.Element;
|
48
|
+
};
|
43
49
|
addRoutes: () => void;
|
44
50
|
};
|
45
51
|
export default RouteList;
|
package/es/modules/Routes.js
CHANGED
@@ -10,6 +10,7 @@ const WorkTypeDefaultView = lazy(() => import("../obsolete/WorkTypeDefaultView")
|
|
10
10
|
const WorkErrorDefaultView = lazy(() => import("./work/pages/WorkErrorDefaultView"));
|
11
11
|
const WorkTypePage = lazy(() => import("./work/work-type/pages/WorkTypePage"));
|
12
12
|
const WorkspacePage = lazy(() => import("../modules/workspace/pages/WorkspacePage"));
|
13
|
+
const NotificationDefaultView = lazy(() => import("../modules/notification/pages/NotificationDefaultView"));
|
13
14
|
const ProjectRoutes = () => {
|
14
15
|
return (React.createElement(Suspense, { fallback: React.createElement(Skeleton, null) },
|
15
16
|
React.createElement(Routes, null,
|
@@ -18,7 +19,8 @@ const ProjectRoutes = () => {
|
|
18
19
|
React.createElement(Route, { path: RouteList.WorkErrorDefaultView.route, element: RouteList.WorkErrorDefaultView.component }),
|
19
20
|
React.createElement(Route, { path: RouteList.WorkScheduleDefaultView.route, element: RouteList.WorkScheduleDefaultView.component }),
|
20
21
|
React.createElement(Route, { path: RouteList.WorkTypePage.route, element: RouteList.WorkTypePage.component }),
|
21
|
-
React.createElement(Route, { path: RouteList.WorkspacePage.route, element: RouteList.WorkspacePage.component })
|
22
|
+
React.createElement(Route, { path: RouteList.WorkspacePage.route, element: RouteList.WorkspacePage.component }),
|
23
|
+
React.createElement(Route, { path: RouteList.NotificationDefaultView.route, element: RouteList.NotificationDefaultView.component }))));
|
22
24
|
};
|
23
25
|
const RouteList = {
|
24
26
|
ProjectDefaultView: {
|
@@ -60,6 +62,12 @@ const RouteList = {
|
|
60
62
|
getUrl: (id) => `/workspaces/${id}`,
|
61
63
|
component: React.createElement(WorkspacePage, null),
|
62
64
|
},
|
65
|
+
NotificationDefaultView: {
|
66
|
+
route: "/notification/:id",
|
67
|
+
tabPattern: RegExp("/notification/[^/]+"),
|
68
|
+
getUrl: (id) => `/notification/${id}`,
|
69
|
+
component: React.createElement(NotificationDefaultView, null),
|
70
|
+
},
|
63
71
|
addRoutes: () => {
|
64
72
|
BaseRoutes.routes.push({
|
65
73
|
name: "ProjectDefaultView",
|
@@ -91,6 +99,11 @@ const RouteList = {
|
|
91
99
|
tabBasePattern: RouteList.WorkspacePage.tabPattern,
|
92
100
|
component: React.createElement(ProjectRoutes, null),
|
93
101
|
});
|
102
|
+
BaseRoutes.routes.push({
|
103
|
+
name: "NotificationDefaultView",
|
104
|
+
tabBasePattern: RouteList.NotificationDefaultView.tabPattern,
|
105
|
+
component: React.createElement(ProjectRoutes, null),
|
106
|
+
});
|
94
107
|
},
|
95
108
|
};
|
96
109
|
export default RouteList;
|
package/es/modules/Routes.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Routes.js","sourceRoot":"","sources":["../../src/modules/Routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,OAAO,CAAC;AAC9C,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACjD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,MAAM,kBAAkB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,8BAA8B,CAAC,CAAC,CAAC;AAC9E,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,uCAAuC,CAAC,CAAC,CAAC;AACpF,MAAM,uBAAuB,GAAG,IAAI,CACnC,GAAG,EAAE,CAAC,MAAM,CAAC,6DAA6D,CAAC,CAC3E,CAAC;AACF,MAAM,mBAAmB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,iCAAiC,CAAC,CAAC,CAAC;AAClF,MAAM,oBAAoB,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,mCAAmC,CAAC,CAAC,CAAC;AACrF,MAAM,YAAY,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,qCAAqC,CAAC,CAAC,CAAC;AAC/E,MAAM,aAAa,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,0CAA0C,CAAC,CAAC,CAAC;
|
1
|
+
{"version":3,"file":"Routes.js","sourceRoot":"","sources":["../../src/modules/Routes.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,QAAQ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ting = useMeeting(id, { includes: "tags,task-number-reports" });
|
11
11
|
return observe(() => (React.createElement("div", { className: styles["meeting-detail-view"] },
|
12
|
-
descriptionAble ? (React.createElement(Skeleton, { active: true, loading: meeting.
|
12
|
+
descriptionAble ? (React.createElement(Skeleton, { active: true, loading: !meeting.loaded },
|
13
13
|
React.createElement(DescriptionEditor, { id: id, description: meeting.description, readonly: meeting.readonly }))) : null,
|
14
14
|
React.createElement(AgendaList, { parentId: meeting.id, readonly: meeting.readonly, viewTitle: viewTitle }))));
|
15
15
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingDescription/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,kBAAkB,GAAG,CAAC,KAK3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAEzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC;QAC3C,eAAe,CAAC,CAAC,CAAC,CAClB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,OAAO,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingDescription/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,kBAAkB,GAAG,CAAC,KAK3B,EAAE,EAAE;IACJ,MAAM,EAAE,EAAE,EAAE,eAAe,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;IACjD,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAEzE,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAE,MAAM,CAAC,qBAAqB,CAAC;QAC3C,eAAe,CAAC,CAAC,CAAC,CAClB,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;YACxC,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,OAAO,CAAC,WAAW,EAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,GACzB,CACQ,CACX,CAAC,CAAC,CAAC,IAAI;QACR,oBAAC,UAAU,IAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAAE,SAAS,EAAE,SAAS,GAAI,CACjF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|
@@ -10,7 +10,7 @@ const MeetingTaskList = (props) => {
|
|
10
10
|
const meetingTask = useMeetingTask(props.id, { reload: true });
|
11
11
|
return observe(() => {
|
12
12
|
var _a;
|
13
|
-
return (React.createElement("div", { style: props.style, className: styles["meeting-task-list"] }, meetingTask.
|
13
|
+
return (React.createElement("div", { style: props.style, className: styles["meeting-task-list"] }, !meetingTask.loaded ? (React.createElement("div", { style: { textAlign: "center", paddingTop: "20px" } },
|
14
14
|
React.createElement(Spin, { indicator: React.createElement(LoadingOutlined, { style: { fontSize: 20 }, spin: true }) }))) : (React.createElement(Scrollbars, { autoHide: true }, (_a = meetingTask.agendas) === null || _a === void 0 ? void 0 : _a.map((agenda, index) => (React.createElement("div", { key: agenda.id, className: "meeting-task-item" },
|
15
15
|
React.createElement("div", { className: "agenda-name" },
|
16
16
|
React.createElement("span", { className: "index" }, `${(index || 0) + 1}.`),
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingTaskList/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAwB,MAAM,OAAO,CAAC;AAE7C,OAAO,eAAe,MAAM,oDAAoD,CAAC;AACjF,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,IAAI,EAAE,MAAM,MAAM,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE1D,MAAM,eAAe,GAAG,CAAC,KAA4C,EAAE,EAAE;IACxE,MAAM,WAAW,GAAG,cAAc,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC;IAE/D,OAAO,OAAO,CAAC,GAAG,EAAE;;QAAC,OAAA,CACpB,6BAAK,KAAK,EAAE,KAAK,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,CAAC,mBAAmB,CAAC,IAC7D,WAAW,CAAC,
|
1
|
+
{"version":3,"file":"index.js","s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BAC3B,8BAAM,SAAS,EAAC,OAAO,IAAE,GAAG,CAAC,KAAK,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAQ;gBACvD,kCAAO,MAAM,CAAC,IAAI,CAAQ,CACrB;YACL,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAC3B,oBAAC,eAAe,IACf,GAAG,EAAE,IAAI,CAAC,EAAE,EACZ,EAAE,EAAE,IAAI,CAAC,EAAE,EACX,WAAW,EAAE,EAAE,WAAW,EAAE,IAAI,EAAE,eAAe,EAAE,SAAS,EAAE,GAC7D,CACF,CAAC,CACG,CACN,CAAC,CACU,CACb,CACI,CACN,CAAA;KAAA,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,eAAe,CAAC"}
|
@@ -29,7 +29,7 @@ const MeetingsFolderQuickViewDialog = (props) => {
|
|
29
29
|
detail: React.createElement(DocumentList, { id: props.id, exclude: ["Meeting"], multiple: true }),
|
30
30
|
},
|
31
31
|
] }, reload && (React.createElement(ViewContext.Provider, { value: view },
|
32
|
-
React.createElement(Skeleton, { active: true, loading: document.
|
32
|
+
React.createElement(Skeleton, { active: true, loading: !document.loaded },
|
33
33
|
React.createElement(DescriptionEditor, { id: props.id, description: document.description, readonly: document.readonly, padding: "0px" })),
|
34
34
|
React.createElement(MeetingList, { parentId: props.id,
|
35
35
|
// title="Meetings"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAA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,KAAK,CAAC,EAAE;oBACpB,oBAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,GAAI;oBACtC,oBAAC,MAAM,IAAC,MAAM,EAAE,QAAQ,GAAI;oBAC5B,oBAAC,OAAO,OAAG,CACF,CACL,GAEN,CACF,CACe,EAElB,UAAU,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACtD,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,QAAQ,SAAG;aACrE;SACD,IAEA,MAAM,IAAI,CACV,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,QAAQ,CAAC,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/MeetingsFolderQuickViewDialog/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,qDAAqD,CAAC;AAC5F,OAAO,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjD,OAAO,EACN,WAAW,EACX,eAAe,GACf,MAAM,0DAA0D,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAC7D,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,cAAc,MAAM,sDAAsD,CAAC;AAClF,OAAO,WA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AAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EACtD,KAAK,EAAE;YACN;gBACC,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,SAAS;gBACf,KAAK,EAAE,eAAe;gBACtB,MAAM,EAAE,oBAAC,YAAY,IAAC,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,SAAS,CAAC,EAAE,QAAQ,SAAG;aACrE;SACD,IAEA,MAAM,IAAI,CACV,oBAAC,WAAW,CAAC,QAAQ,IAAC,KAAK,EAAE,IAAI;QAChC,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,QAAQ,CAAC,MAAM;YACzC,oBAAC,iBAAiB,IACjB,EAAE,EAAE,KAAK,CAAC,EAAE,EACZ,WAAW,EAAE,QAAQ,CAAC,WAAW,EACjC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,EAC3B,OAAO,EAAC,KAAK,GACZ,CACQ;QACX,oBAAC,WAAW,IACX,QAAQ,EAAE,KAAK,CAAC,EAAE;YAClB,mBAAmB;YACnB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,GAC1B,CACoB,CACvB,CACgB,CAClB,CAAC,CAAC;IACH,kBAAkB;IAClB,SAAS,QAAQ;QAChB,SAAS,CAAC,KAAK,CAAC,CAAC;QACjB,UAAU,CAAC,GAAG,EAAE;YACf,SAAS,CAAC,IAAI,CAAC,CAAC;QACjB,CAAC,EAAE,GAAG,CAAC,CAAC;IACT,CAAC;AACF,CAAC,CAAC;AAEF,eAAe,6BAA6B,CAAC"}
|
@@ -42,7 +42,7 @@ const MeetingTabView = () => {
|
|
42
42
|
meeting.venue)),
|
43
43
|
React.createElement(FAIcon, { icon: faUserFriends, flip: "horizontal", color: "#666", size: "sm" }),
|
44
44
|
React.createElement(AvatarList, { list: meeting.members || [], organizationId: user.info.organizationId, editable: false }))),
|
45
|
-
React.createElement(Skeleton, { active: true, loading: meeting.
|
45
|
+
React.createElement(Skeleton, { active: true, loading: !meeting.loaded },
|
46
46
|
React.createElement(DescriptionEditor, { id: id, description: meeting.description, readonly: meeting.readonly, padding: "0 0 0.75rem 0" }))),
|
47
47
|
React.createElement(AgendaList, { preview: true, parentId: id })))));
|
48
48
|
};
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingPrintView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AACrC,OAAO,EACN,OAAO,EACP,cAAc,EACd,WAAW,EACX,aAAa,GACb,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACvE,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,YAAY,MAAM,2BAA2B,CAAC;AACrD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,cAAc,CAAC;AAEtB,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,CAAC;AAE3B,MAAM,cAAc,GAAG,GAAG,EAAE;IAC3B,MAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,MAAM,EAAE,GAAG,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC;IAE3B,MAAM,E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,CACN;oBAED,oBAAC,GAAG,IAAC,OAAO,EAAC,OAAO,EAAC,KAAK,EAAC,QAAQ;wBACjC,OAAO,CAAC,KAAK,IAAI,CACjB,6BAAK,SAAS,EAAC,aAAa;4BAC3B,oBAAC,MAAM,IAAC,IAAI,EAAE,cAAc,GAAI;4BAC/B,OAAO,CAAC,KAAK,CACT,CACN;wBACD,oBAAC,MAAM,IAAC,IAAI,EAAE,aAAa,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,GAAG;wBAC1E,oBAAC,UAAU,IACV,IAAI,EAAE,OAAO,CAAC,OAAO,IAAI,EAAE,EAC3B,cAAc,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,EACxC,QAAQ,EAAE,KAAK,GACd,CACG,CAED;gBACN,oBAAC,QAAQ,IAAC,MAAM,QAAC,OAAO,EAAE,CAAC,OAAO,CAAC,MAAM;oBACxC,oBAAC,iBAAiB,IACjB,EAAE,EAAE,EAAE,EACN,WAAW,EAAE,OAAO,CAAC,WAAW,EAChC,QAAQ,EAAE,OAAO,CAAC,QAAQ,EAC1B,OAAO,EAAC,eAAe,GACtB,CACQ,CACN;YAEN,oBAAC,UAAU,IAAC,OAAO,QAAC,QAAQ,EAAE,EAAE,GAAI,CACxB,CACR,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -30,7 +30,7 @@ const MeetingTabView = ({ id }) => {
|
|
30
30
|
React.createElement(MeetingHeader, { id: id, onReLoad: onReLoad, onExpand: () => runInAction(() => asideContext.asideContent
|
31
31
|
? asideContext.closeAside()
|
32
32
|
: asideContext.openAside(AsideElement, { span: 12 })) }),
|
33
|
-
React.createElement(Skeleton, { active: true, loading: meeting.
|
33
|
+
React.createElement(Skeleton, { active: true, loading: !meeting.loaded },
|
34
34
|
React.createElement(DescriptionEditor, { id: id, description: meeting.description, readonly: meeting.readonly, padding: "0 0 0.75rem 0" })),
|
35
35
|
React.createElement(AgendaList, { readonly: meeting.readonly, parentId: id }))))))));
|
36
36
|
/** reload data */
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/pages/MeetingTabView/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE9D,OAAO,UAAU,MAAM,6BAA6B,CAAC;AACrD,OAAO,YAAY,MAAM,qDAAqD,CAAC;AAC/E,OAAO,iBAAiB,MAAM,uDAAuD,CAAC;AACtF,OAAO,YAAY,MAAM,oDAAoD,CAAC;AAC9E,OAAO,aAAa,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,MAAM,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAEjD,iEAAiE;AACjE,MAAM,cAAc,GAAG,CAAC,EAAE,EAAE,EAAkB,EAAE,EAAE;IACjD,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC;IAE3C,MAAM,OAAO,GAAG,UAAU,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,0BAA0B,EAAE,CAAC,CAAC;IAEzE,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;IAEzB,MAAM,CAAC,YAAY,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC,aAAa,EAAE,CAAC,CAAC;IAE9D,SAAS,CAAC,GAAG,EAAE;QACd,WAAW,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,SAAS,CAAC,YAAY,E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{
|
4
|
+
parentId: string;
|
5
|
+
type?: "full" | "mini";
|
6
|
+
showView?: boolean;
|
7
|
+
className?: string;
|
8
|
+
onCancel?: () => void;
|
9
|
+
onSave?: (data?: any) => void;
|
10
|
+
};
|
11
|
+
declare const NewNotificationFormContent: {
|
12
|
+
(props: NewNotificationFormProps): React.JSX.Element;
|
13
|
+
defaultProps: {
|
14
|
+
type: string;
|
15
|
+
};
|
16
|
+
};
|
17
|
+
export default NewNotificationFormContent;
|
@@ -0,0 +1,67 @@
|
|
1
|
+
import "./index.less";
|
2
|
+
import { observe } from "@voplus/morpho-ui";
|
3
|
+
import { useAsideContentContext } from "@voplus/morpho-ui/es/components/layout/AsideContent";
|
4
|
+
import AddFormView from "@voplus/morpho-ui/es/controls/AddFormView";
|
5
|
+
import { Form, Row, Space, Button, Checkbox, Input, message } from "antd";
|
6
|
+
import classnames from "classnames";
|
7
|
+
import React, { useState } from "react";
|
8
|
+
import MentionList from "@voplus/morpho-org/es/controls/MentionList";
|
9
|
+
import ProseMirror from "@voplus/morpho-text/es/controls/ProseMirror";
|
10
|
+
import { useNotificationStore } from "../../../../data/notification";
|
11
|
+
import NotificationPropertiesView from "../NotificationPropertiesView";
|
12
|
+
import { State } from "./state";
|
13
|
+
const NewNotificationFormContent = (props) => {
|
14
|
+
const store = useNotificationStore();
|
15
|
+
const asideContext = useAsideContentContext();
|
16
|
+
const [state] = useState(new State());
|
17
|
+
const content = observe(() => (React.createElement("div", { className: classnames("new-notification-form", { "sub-notification-simply-form": props.type === "mini" }, props.className) },
|
18
|
+
React.createElement(Form, { layout: "vertical" },
|
19
|
+
React.createElement(Form.Item, { label: "Recipients" },
|
20
|
+
React.createElement(MentionList, { defaultSelection: "Everyone", contacts: state.contact, onChange: (list) => {
|
21
|
+
state.contact = list;
|
22
|
+
state.recipients = [];
|
23
|
+
list.map((i) => state.recipients.push(i.id));
|
24
|
+
} })),
|
25
|
+
React.createElement(Form.Item, { label: "Channels" },
|
26
|
+
React.createElement(Checkbox.Group, { options: [
|
27
|
+
{ label: "Email", value: "Email" },
|
28
|
+
{ label: "Instant Message", value: "Instant Message" },
|
29
|
+
], defaultValue: state.params.Channels, onChange: (checkedValues) => (state.params.Channels = checkedValues) })),
|
30
|
+
React.createElement(Form.Item, { label: "Subject" },
|
31
|
+
React.createElement(Input, { onChange: (e) => (state.params.Subject = e.target.value) })),
|
32
|
+
React.createElement(Form.Item, { label: "Body" },
|
33
|
+
React.createElement(ProseMirror, { toolbarProps: { sticky: false }, scroll: true, className: "proseMirror", onChange: (opt) => (state.params.Body = opt.getInnerHtml()) })),
|
34
|
+
props.type === "mini" && (React.createElement(Row, { className: "notification-form-btn", justify: "end" },
|
35
|
+
React.createElement(Space, null,
|
36
|
+
React.createElement(Button, { onClick: onCancel }, "Cancel"),
|
37
|
+
React.createElement(Button, { type: "primary", loading: state.loading, onClick: onSave }, "Submit"))))))));
|
38
|
+
return observe(() => (React.createElement(React.Fragment, null, props.type === "full" ? (React.createElement(AddFormView, { title: "Add Notification", loading: !!state.loading, onCancel: onCancel, onSubmit: onSave }, content)) : (content))));
|
39
|
+
async function onSave() {
|
40
|
+
var _a;
|
41
|
+
if (!state.recipients.length)
|
42
|
+
return message.warning("Recipients is required");
|
43
|
+
state.loading = true;
|
44
|
+
const res = await store.create({
|
45
|
+
data: { ParentId: props.parentId, ...state.params, Recipients: state.recipients },
|
46
|
+
error: "message",
|
47
|
+
});
|
48
|
+
(_a = props.onSave) === null || _a === void 0 ? void 0 : _a.call(props);
|
49
|
+
state.loading = false;
|
50
|
+
if (props.showView && res)
|
51
|
+
return asideContext.openAside(React.createElement(NotificationPropertiesView, { id: res.id }), {
|
52
|
+
span: 12,
|
53
|
+
});
|
54
|
+
}
|
55
|
+
// cancel add notifications
|
56
|
+
function onCancel() {
|
57
|
+
var _a;
|
58
|
+
if (props.showView)
|
59
|
+
return asideContext.closeAside();
|
60
|
+
(_a = props.onCancel) === null || _a === void 0 ? void 0 : _a.call(props);
|
61
|
+
}
|
62
|
+
};
|
63
|
+
NewNotificationFormContent.defaultProps = {
|
64
|
+
type: "full",
|
65
|
+
};
|
66
|
+
export default NewNotificationFormContent;
|
67
|
+
//# sourceMappingURL=NotificationForm.js.map
|