@voplus/morpho-workspace 6.0.68 → 6.0.69
Sign up to get free protection for your applications and to get access to all the features.
- package/es/controls/filters/AssigneeViewFilter/index.js +3 -4
- package/es/controls/filters/AssigneeViewFilter/index.js.map +1 -1
- package/es/data/notification/NotificationStore.d.ts +14 -8
- package/es/data/notification/NotificationStore.js +23 -5
- package/es/data/notification/NotificationStore.js.map +1 -1
- package/es/data/notification/hooks.d.ts +3 -3
- package/es/data/notification/hooks.js +3 -3
- package/es/data/notification/hooks.js.map +1 -1
- package/es/data/notification/interfaces.d.ts +11 -0
- package/es/data/notification/notification-events/useAutoUpdateListData.d.ts +2 -2
- package/es/data/notification/notification-events/useAutoUpdateListData.js.map +1 -1
- package/es/data/notification/notification-events/useOnDeleteNotification.d.ts +2 -2
- package/es/data/notification/notification-events/useOnDeleteNotification.js.map +1 -1
- package/es/data/notification/notification-events/useOnNewNotification.d.ts +2 -2
- package/es/data/notification/notification-events/useOnNewNotification.js.map +1 -1
- package/es/data/notification/types.d.ts +6 -1
- package/es/modules/calendar/pages/CalendarMonth/index.js +5 -4
- package/es/modules/calendar/pages/CalendarMonth/index.js.map +1 -1
- package/es/modules/meeting/components/NewMeetingForm/index.js.map +1 -1
- package/es/modules/menus/components/Access/index.js +5 -4
- package/es/modules/menus/components/Access/index.js.map +1 -1
- package/es/modules/menus/components/Account/index.js +5 -4
- package/es/modules/menus/components/Account/index.js.map +1 -1
- package/es/modules/menus/components/Status/index.js +5 -4
- package/es/modules/menus/components/Status/index.js.map +1 -1
- package/es/modules/menus/pages/ListOptions/Company/index.js +7 -5
- package/es/modules/menus/pages/ListOptions/Company/index.js.map +1 -1
- package/es/modules/notification/components/NotificationHeader/index.js +3 -3
- package/es/modules/notification/components/NotificationHeader/index.js.map +1 -1
- package/es/modules/notification/components/NotificationItem/index.js +5 -3
- package/es/modules/notification/components/NotificationItem/index.js.map +1 -1
- package/es/modules/notification/components/NotificationList2/index.js +7 -2
- package/es/modules/notification/components/NotificationList2/index.js.map +1 -1
- package/es/modules/notification/components/NotificationProperties/index.d.ts +1 -1
- package/es/modules/notification/components/NotificationProperties/index.js +12 -5
- package/es/modules/notification/components/NotificationProperties/index.js.map +1 -1
- package/es/modules/notification/components/NotificationRecipients/index.js +2 -2
- package/es/modules/notification/components/NotificationRecipients/index.js.map +1 -1
- package/es/modules/notification/components/NotificationTabs/index.js +9 -6
- package/es/modules/notification/components/NotificationTabs/index.js.map +1 -1
- package/es/modules/notification/controls/NotificationMenu/index.js +6 -4
- package/es/modules/notification/controls/NotificationMenu/index.js.map +1 -1
- package/es/modules/notification/controls/NotificationMenu/item/Send.d.ts +9 -0
- package/es/modules/notification/controls/NotificationMenu/item/Send.js +33 -0
- package/es/modules/notification/controls/NotificationMenu/item/Send.js.map +1 -0
- package/es/modules/notification/controls/NotificationMenu/item/index.d.ts +1 -0
- package/es/modules/notification/controls/NotificationMenu/item/index.js +2 -0
- package/es/modules/notification/controls/NotificationMenu/item/index.js.map +1 -0
- package/es/modules/notification/controls/NotificationStatusLabel/index.d.ts +6 -0
- package/es/modules/notification/controls/NotificationStatusLabel/index.js +7 -0
- package/es/modules/notification/controls/NotificationStatusLabel/index.js.map +1 -0
- package/es/modules/notification/controls/NotificationStatusLabel/index.less +14 -0
- package/es/modules/notification/pages/NotificationDefaultView/index.js +1 -1
- package/es/modules/notification/pages/NotificationDefaultView/index.js.map +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/index.js +1 -1
- package/es/modules/tasks/reports/TaskSummaryCard/index.js.map +1 -1
- package/es/modules/user/pages/Positions/index.js +6 -5
- package/es/modules/user/pages/Positions/index.js.map +1 -1
- package/es/modules/work/components/RejectWorkDialog/index.js +5 -4
- package/es/modules/work/components/RejectWorkDialog/index.js.map +1 -1
- package/es/modules/work/components/RejectWorkDialog/index.less +5 -0
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js +1 -1
- package/es/modules/work/components/RelatedWorkList/RelatedWorkList.js.map +1 -1
- package/es/modules/work/controls/SeveritySelect/index.js +10 -10
- package/es/modules/work/controls/SeveritySelect/index.js.map +1 -1
- package/es/modules/work/controls/WorkErrorSelect/index.js +3 -2
- package/es/modules/work/controls/WorkErrorSelect/index.js.map +1 -1
- package/es/modules/work/work-type/components/RepeatTab/index.js +5 -4
- package/es/modules/work/work-type/components/RepeatTab/index.js.map +1 -1
- package/es/modules/work/work-type/components/WorkTypeSelect/index.js +11 -6
- package/es/modules/work/work-type/components/WorkTypeSelect/index.js.map +1 -1
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js +1 -1
- package/es/modules/work/work-type/controls/WorktypeCompleteWorksChart/index.js.map +1 -1
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js +1 -1
- package/es/modules/workspace/controls/WorkspaceCompletedWorksChart/index.js.map +1 -1
- package/es/obsolete/member/components/MemberSelect.js +3 -2
- package/es/obsolete/member/components/MemberSelect.js.map +1 -1
- package/package.json +1 -1
- package/es/components/AssignPeople/index.d.ts +0 -3
- package/es/components/AssignPeople/index.js +0 -24
- package/es/components/AssignPeople/index.js.map +0 -1
@@ -21,15 +21,14 @@ const AssigneeView = () => {
|
|
21
21
|
});
|
22
22
|
return observe(() => (React.createElement("div", { className: "assignee-view" },
|
23
23
|
React.createElement("div", { className: "menu-item-title" }, "AssigneeView"),
|
24
|
-
React.createElement(Select, { loading: list.loading, value: Array.from(state.members.keys()), showSearch: true, placeholder: "Input or select contact.",
|
24
|
+
React.createElement(Select, { loading: list.loading, value: Array.from(state.members.keys()), showSearch: true, placeholder: "Input or select contact.", optionFilterProp: "label", onSelect: onSelectMember, style: { width: 160 }, options: list.data.map((i) => {
|
25
|
+
return { value: i.id, label: i.name };
|
26
|
+
}) }),
|
25
27
|
state.memberList.map((item, index) => (React.createElement("div", { key: item.id, className: classnames("assignee-view-item", {
|
26
28
|
bold: state.members.has(item.id),
|
27
29
|
}) },
|
28
30
|
React.createElement(AvatarItem, { id: item.id, index: index, inline: true }),
|
29
31
|
React.createElement(CloseOutlined, { onClick: () => onCancel(item.id) })))))));
|
30
|
-
function filterItems(input, option) {
|
31
|
-
return option.title.toLowerCase().includes(input.toLowerCase());
|
32
|
-
}
|
33
32
|
/** cancel select member */
|
34
33
|
function onCancel(id) {
|
35
34
|
state.memberList = state.memberList.filter((m) => m.id !== id);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/controls/filters/AssigneeViewFilter/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,EAAS,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,UAAU,MAAM,wDAAwD,CAAC;AAChF,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,UAAU,MAAM,YAAY,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,YAAY,GAAG,GAAG,EAAE;IACzB,MAAM,OAAO,GAAG,uBAAuB,EAAE,CAAC;IAE1C,MAAM,EAAE,IAAI,EAAE,GAAG,qBAAqB,EAAE,CAAC;IAEzC,MAAM,IAAI,GAAG,sBAAsB,CAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;IAEnD,MAAM,KAAK,GAAG,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,GAAG,EAAE,CAAC,IAAI,KAAK,EAAE,CAAC,CAAC;IAEpE,iBAAiB,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE;QACvD,OA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CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,CAAC;IAChF,CAAC;AACF,CAAC,CAAC;AACF,eAAe,YAAY,CAAC"}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { ApiEndPoint } from "@voplus/api";
|
2
|
-
import { CountedMap, Store } from "@voplus/morpho-data";
|
3
|
-
import { INotification, LoadNotificationOptions, NotificationEditOptions, CreateNotificationOptions, DeleteNotificationOptions } from ".";
|
2
|
+
import { CountedMap, Store, StoreActionOptions } from "@voplus/morpho-data";
|
3
|
+
import { INotification, INewNotification, LoadNotificationOptions, LoadNewNotificationOptions, 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 {
|
@@ -12,13 +12,15 @@ export declare class NotificationStore extends Store {
|
|
12
12
|
private readonly _deleted;
|
13
13
|
constructor(endpoint: ApiEndPoint);
|
14
14
|
/** Event fires when a new notification has been created. */
|
15
|
-
get NotificationCreatedEvent(): import("strongly-typed-events").IEvent<NotificationStore,
|
15
|
+
get NotificationCreatedEvent(): import("strongly-typed-events").IEvent<NotificationStore, INewNotification>;
|
16
16
|
/** Event fires when a delete contact has been deleted. */
|
17
|
-
get NotificationDeletedEvent(): import("strongly-typed-events").IEvent<NotificationStore,
|
17
|
+
get NotificationDeletedEvent(): import("strongly-typed-events").IEvent<NotificationStore, INewNotification>;
|
18
18
|
/** All currently used notificaiton. */
|
19
19
|
readonly items: CountedMap<string, INotification>;
|
20
|
+
/** All currently used notificaiton. */
|
21
|
+
readonly nItems: CountedMap<string, INewNotification>;
|
20
22
|
/** Create a new contact base on type. */
|
21
|
-
create(options: CreateNotificationOptions): Promise<
|
23
|
+
create(options: CreateNotificationOptions): Promise<INewNotification>;
|
22
24
|
/** Load a notificaiton from server.
|
23
25
|
* @param {string} id - id of the notificaiton.
|
24
26
|
* @param {LoadNotificationOptions} options - Optional load options.
|
@@ -30,15 +32,19 @@ export declare class NotificationStore extends Store {
|
|
30
32
|
loadList(options?: LoadDocumentListOptions): Promise<INotification[]>;
|
31
33
|
/** Load a notificaiton from server.
|
32
34
|
* @param {string} id - id of the notificaiton.
|
33
|
-
* @param {
|
35
|
+
* @param {LoadNewNotificationOptions} options - Optional load options.
|
34
36
|
*/
|
35
|
-
newLoad(id: string, options?:
|
37
|
+
newLoad(id: string, options?: LoadNewNotificationOptions): Promise<INewNotification>;
|
36
38
|
/** Load a list of documents from server.
|
37
39
|
* @param {LoadDocumentListOptions}
|
38
40
|
*/
|
39
|
-
newLoadList(options?: LoadDocumentListOptions): Promise<
|
41
|
+
newLoadList(options?: LoadDocumentListOptions): Promise<INewNotification[]>;
|
40
42
|
/** Edit an existing item on server. */
|
41
43
|
edit(id: string, options: NotificationEditOptions): Promise<any>;
|
44
|
+
/** send work.
|
45
|
+
* @param {string} id - id of the work.
|
46
|
+
*/
|
47
|
+
send(id: string, options: StoreActionOptions): Promise<any>;
|
42
48
|
delete(ids: string[], options?: DeleteNotificationOptions): Promise<any>;
|
43
49
|
}
|
44
50
|
/** React hook to retrieve NotificaitonStore */
|
@@ -41,6 +41,13 @@ export class NotificationStore extends Store {
|
|
41
41
|
writable: true,
|
42
42
|
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
43
43
|
});
|
44
|
+
/** All currently used notificaiton. */
|
45
|
+
Object.defineProperty(this, "nItems", {
|
46
|
+
enumerable: true,
|
47
|
+
configurable: true,
|
48
|
+
writable: true,
|
49
|
+
value: new CountedMap((key) => ({ id: key, loaded: false }), observable.map([], { deep: true }))
|
50
|
+
});
|
44
51
|
}
|
45
52
|
/** Event fires when a new notification has been created. */
|
46
53
|
get NotificationCreatedEvent() {
|
@@ -89,7 +96,7 @@ export class NotificationStore extends Store {
|
|
89
96
|
}
|
90
97
|
/** Load a notificaiton from server.
|
91
98
|
* @param {string} id - id of the notificaiton.
|
92
|
-
* @param {
|
99
|
+
* @param {LoadNewNotificationOptions} options - Optional load options.
|
93
100
|
*/
|
94
101
|
async newLoad(id, options) {
|
95
102
|
options = options !== null && options !== void 0 ? options : {};
|
@@ -117,18 +124,29 @@ export class NotificationStore extends Store {
|
|
117
124
|
/** Edit an existing item on server. */
|
118
125
|
async edit(id, options) {
|
119
126
|
return this.action(async () => {
|
120
|
-
const r = await this.endpoint.post(`/api/
|
127
|
+
const r = await this.endpoint.post(`/api/notifications/${id}`, new RequestBuilder().json(options.data));
|
128
|
+
const t = (await r.json());
|
129
|
+
this.nItems.overwrite(t.id, t);
|
130
|
+
return t;
|
131
|
+
}, options);
|
132
|
+
}
|
133
|
+
/** send work.
|
134
|
+
* @param {string} id - id of the work.
|
135
|
+
*/
|
136
|
+
async send(id, options) {
|
137
|
+
return this.action(async () => {
|
138
|
+
const r = await this.endpoint.post(`/api/notifications/${id}/send`);
|
121
139
|
const t = (await r.json());
|
122
|
-
this.
|
140
|
+
this.nItems.overwrite(t.id, t);
|
123
141
|
return t;
|
124
142
|
}, options);
|
125
143
|
}
|
126
144
|
async delete(ids, options) {
|
127
145
|
return await this.action(async () => {
|
128
|
-
await this.endpoint.delete(`/api/
|
146
|
+
await this.endpoint.delete(`/api/notifications/delete`, new RequestBuilder().json({ Ids: ids, Options: options === null || options === void 0 ? void 0 : options.data }));
|
129
147
|
const deleted = [];
|
130
148
|
for (const id of ids) {
|
131
|
-
const item = this.
|
149
|
+
const item = this.nItems.peek(id);
|
132
150
|
if (item) {
|
133
151
|
deleted.push(item);
|
134
152
|
this._deleted.dispatch(this, item);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"NotificationStore.js","sourceRoot":"","sources":["../../../src/data/notification/NotificationStore.ts"],"names":[],"mappings":";AAAA,OAAO,EAAe,cAAc,EAAE,MAAM,aAAa,CAA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AAiB,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC;IAC7E,CAAC;IACD,OAAO,OAAO,CAAC,UAAU,CAAC,SAAS,CAAuB,CAAC;AAC5D,CAAC,CAAC"}
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { INotification, LoadNotificationOptions } from ".";
|
1
|
+
import { INotification, INewNotification, LoadNotificationOptions, LoadNewNotificationOptions } from ".";
|
2
2
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
3
3
|
import { LoadDocumentListOptions } from "@voplus/morpho-document-core";
|
4
4
|
/** notification card */
|
5
5
|
export declare const useNotification: (id: string, options?: LoadNotificationOptions) => INotification;
|
6
6
|
/** 新的 notification */
|
7
|
-
export declare const useNotifications: (id: string, options?:
|
7
|
+
export declare const useNotifications: (id: string, options?: LoadNewNotificationOptions) => INewNotification;
|
8
8
|
/** notification card list */
|
9
9
|
export declare const useNotificationListEffect: (list: ListDataContextState<INotification> | null, effect: (list: INotification[], total?: number) => void, options?: LoadDocumentListOptions) => void;
|
10
10
|
/** 新的 notification */
|
11
|
-
export declare const useNotificationsListEffect: (list: ListDataContextState<
|
11
|
+
export declare const useNotificationsListEffect: (list: ListDataContextState<INewNotification> | null, effect: (list: INewNotification[], total?: number) => void, options?: LoadDocumentListOptions) => void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { useNotificationStore } from ".";
|
1
|
+
import { useNotificationStore, } from ".";
|
2
2
|
import { useListLoaderEffect } from "@voplus/morpho-ui/es/hooks";
|
3
3
|
import { useLoadCountedMapItem } from "@voplus/morpho-data";
|
4
4
|
/** notification card */
|
@@ -11,7 +11,7 @@ export const useNotification = (id, options) => {
|
|
11
11
|
export const useNotifications = (id, options) => {
|
12
12
|
options = options ? options : {};
|
13
13
|
const store = useNotificationStore();
|
14
|
-
return useLoadCountedMapItem(id, store.
|
14
|
+
return useLoadCountedMapItem(id, store.nItems, (calculatedOptions) => store.newLoad(id, calculatedOptions), options);
|
15
15
|
};
|
16
16
|
/** notification card list */
|
17
17
|
export const useNotificationListEffect = (list, effect, options) => {
|
@@ -25,6 +25,6 @@ export const useNotificationsListEffect = (list, effect, options) => {
|
|
25
25
|
const deps = options ? options : {};
|
26
26
|
const store = useNotificationStore();
|
27
27
|
// Call useListLoaderEffect and ensure won't load twice for same loading options.
|
28
|
-
return useListLoaderEffect(list, store.
|
28
|
+
return useListLoaderEffect(list, store.nItems, effect, () => store.newLoadList(options), [deps]);
|
29
29
|
};
|
30
30
|
//# sourceMappingURL=hooks.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/notification/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,
|
1
|
+
{"version":3,"file":"hooks.js","sourceRoot":"","sources":["../../../src/data/notification/hooks.ts"],"names":[],"mappings":"AAAA,OAAO,EAKN,oBAAoB,GACpB,MAAM,GAAG,CAAC;AAIX,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,wBAAwB;AACxB,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,CAC3B,EAAE,EACF,KAAK,CAAC,KAAK,EACX,CAAC,iBAAiB,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,EAAE,iBAAiB,CAAC,EACxD,OAAO,CACP,CAAC;AACH,CAAC,CAAC;AAEF,sBAAsB;AACtB,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,EAAU,EAAE,OAAoC,EAAE,EAAE;IACpF,OAAO,GAAG,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC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"Dismissed";
|
11
|
+
/** notification card list 的 INotification */
|
11
12
|
export interface INotification extends ILoadable {
|
12
13
|
id: string;
|
13
14
|
type: string;
|
14
15
|
status: NotificationStatus;
|
15
16
|
dismissDate?: Date;
|
16
17
|
createDate: Date;
|
18
|
+
}
|
19
|
+
/** 新的INotification corporate/customer里用 */
|
20
|
+
export interface INewNotification extends ILoadable {
|
21
|
+
id: string;
|
22
|
+
type: string;
|
23
|
+
/** Draft = true 時可以Send, 也可以Delete, false 時不可以
|
24
|
+
*/
|
25
|
+
draft: boolean;
|
26
|
+
dismissDate?: Date;
|
27
|
+
createDate: Date;
|
17
28
|
date?: Date;
|
18
29
|
recipients?: IRrecipient[];
|
19
30
|
channels?: ("Email" | "Instant Message")[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { INewNotification } from "../interfaces";
|
2
2
|
import { ListDataContextState } from "@voplus/morpho-ui/es/data";
|
3
3
|
/** React hook to call action when a new notification has been created. */
|
4
|
-
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d:
|
4
|
+
export declare const useAutoUpdateListData: (list: ListDataContextState<any>, shouldUpdate: (d: INewNotification, event: string) => boolean) => void;
|
@@ -1 +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,
|
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,YAA6D,EAC5D,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"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { NotificationStore } from "../NotificationStore";
|
2
|
-
import {
|
2
|
+
import { INewNotification } from "../interfaces";
|
3
3
|
/** React hook to call action when a delete notification has been created. */
|
4
|
-
export declare const useOnDeleteNotification: (action: (store: NotificationStore, doc:
|
4
|
+
export declare const useOnDeleteNotification: (action: (store: NotificationStore, doc: INewNotification) => void) => void;
|
@@ -1 +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,
|
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,MAAiE,EAAE,EAAE;IAC5G,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAE,GAAqB,EAAE,EAAE;QAChF,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"}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import { NotificationStore } from "../NotificationStore";
|
2
|
-
import {
|
2
|
+
import { INewNotification } from "../interfaces";
|
3
3
|
/** React hook to call action when a new notification has been created. */
|
4
|
-
export declare const useOnNewNotification: (action: (store: NotificationStore, doc:
|
4
|
+
export declare const useOnNewNotification: (action: (store: NotificationStore, doc: INewNotification) => void) => void;
|
@@ -1 +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,
|
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,CACnC,MAAiE,EAChE,EAAE;IACH,MAAM,KAAK,GAAG,oBAAoB,EAAE,CAAC;IACrC,MAAM,iBAAiB,GAAG,CAAC,KAAwB,EAAE,GAAqB,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,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,4 +1,4 @@
|
|
1
|
-
import { INotification, NotificationStatus } from ".";
|
1
|
+
import { INotification, INewNotification, NotificationStatus } from ".";
|
2
2
|
import { LoadOptions, StoreActionOptions } from "@voplus/morpho-data";
|
3
3
|
import { DeleteDocumentOptions } from "@voplus/morpho-document-core";
|
4
4
|
import { FilterOption, PageParameters } from "@voplus/morpho-data/es/types";
|
@@ -14,6 +14,11 @@ export type LoadNotificationOptions = {
|
|
14
14
|
/** Comma separated include options e.g. path */
|
15
15
|
includes?: string;
|
16
16
|
} & LoadOptions<INotification>;
|
17
|
+
/** Custom load contact options type */
|
18
|
+
export type LoadNewNotificationOptions = {
|
19
|
+
/** Comma separated include options e.g. path */
|
20
|
+
includes?: string;
|
21
|
+
} & LoadOptions<INewNotification>;
|
17
22
|
export type NotificationEditDataOptions = {
|
18
23
|
status?: NotificationStatus;
|
19
24
|
Date?: string;
|
@@ -86,10 +86,11 @@ const CalendarMonth = () => {
|
|
86
86
|
React.createElement("div", { className: "calendar-left" },
|
87
87
|
React.createElement("span", { className: "calendar-fa-icon" },
|
88
88
|
React.createElement(FAIcon, { icon: faCalendar })),
|
89
|
-
React.createElement(Select, { defaultValue: "month", style: { width: 105 }, onChange: handleChange
|
90
|
-
|
91
|
-
|
92
|
-
|
89
|
+
React.createElement(Select, { defaultValue: "month", style: { width: 105 }, onChange: handleChange, options: [
|
90
|
+
{ value: "month", label: "Month" },
|
91
|
+
{ value: "week", label: "Week" },
|
92
|
+
{ value: "day", label: "Day" },
|
93
|
+
] })),
|
93
94
|
React.createElement("div", { className: "calendar-center" },
|
94
95
|
React.createElement(Button, { className: "calendar-today", onClick: () => calendarApi.today() }, "Today"),
|
95
96
|
React.createElement(Button, { className: "calendar-prev", onClick: () => calendarApi.prev() },
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/pages/CalendarMonth/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACxE,OAAO,EACN,YAAY,EACZ,OAAO,EACP,iBAAiB,EACjB,aAAa,IAAI,UAAU,GAC3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACjF,OAAO,EAAE,uBAAuB,EAAE,MAAM,qDAAqD,CAAC;AAC9F,OAAO,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,EAAa,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/F,OAAO,kBAAkB,MAAM,+DAA+D,CAAC;AAC/F,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAC;AAC7E,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC/D,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAC;AACzE,OAAO,EAAE,UAAU,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"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/meeting/components/NewMeetingForm/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kCAAkC,CAAC;AACjF,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,qDAAqD,CAAC;AAC7F,OAAO,EAAE,eAAe,IAAI,MAAM,EAAE,MAAM,gCAAgC,CAAC;AAC3E,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,aAAa,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,WAAW,MAAM,2CAA2C,CAAC;AACpE,OAAO,aAAa,MAAM,6BAA6B,CAAC;AACxD,OAAO,UAAU,MAAM,6CAA6C,CAAC;AACrE,OAAO,qBAAqB,MAAM,0BAA0B,CAAC;AAC7D,OAAO,WAAW,MAAM,6CAA6C,CAAC;AACtE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,MAAM,cAAc,GAAG,CAAC,KAMvB,EAAE,EAAE;IACJ,MAAM,MAAM,GAAG;QACd,IAAI,EAAE,EAAE;QACR,WAAW,EAAE,EAAE;QACf,SAAS,EAAE,SAAS;QACpB,OAAO,EAAE,SAAS;QAClB,KAAK,EAAE,EAAE;QACT,GAAG,EAAE,EAAE;QACP,SAAS,EAAE,EAAE;QACb,OAAO,EAAE,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AAE,OAAO;QAC/B,MAAA,KAAK,CAAC,QAAQ,qDAAI,CAAC;IACpB,CAAC;AACF,CAAC,CAAC;AACF,eAAe,cAAc,CAAC"}
|
@@ -8,13 +8,14 @@ export default (props) => {
|
|
8
8
|
{ id: 3, label: "In Progress" },
|
9
9
|
{ id: 4, label: "Done" },
|
10
10
|
];
|
11
|
-
const { Option } = Select;
|
12
11
|
function handleChange(value) {
|
13
12
|
console.log(`selected ${value}`);
|
14
13
|
}
|
15
14
|
return observe(() => (React.createElement("div", null,
|
16
|
-
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange
|
17
|
-
|
18
|
-
|
15
|
+
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange, options: [
|
16
|
+
status.map((item) => {
|
17
|
+
return { value: item.label, label: item.label };
|
18
|
+
}),
|
19
|
+
] }))));
|
19
20
|
};
|
20
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/menus/components/Access/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAe,CAAC,KAA8C,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG;QACd,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAChC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;KACxB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/menus/components/Access/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAe,CAAC,KAA8C,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG;QACd,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAChC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;KACxB,CAAC;IAEF,SAAS,YAAY,CAAC,KAAU;QAC/B,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,oBAAC,MAAM,IACN,YAAY,EAAC,MAAM,EACnB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACrB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE;gBACR,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACnB,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACjD,CAAC,CAAC;aACF,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -8,13 +8,14 @@ export default (props) => {
|
|
8
8
|
{ id: 3, label: "In Progress" },
|
9
9
|
{ id: 4, label: "Done" },
|
10
10
|
];
|
11
|
-
const { Option } = Select;
|
12
11
|
function handleChange(value) {
|
13
12
|
console.log(`selected ${value}`);
|
14
13
|
}
|
15
14
|
return observe(() => (React.createElement("div", null,
|
16
|
-
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange
|
17
|
-
|
18
|
-
|
15
|
+
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange, options: [
|
16
|
+
status.map((item) => {
|
17
|
+
return { value: item.label, label: item.label };
|
18
|
+
}),
|
19
|
+
] }))));
|
19
20
|
};
|
20
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/menus/components/Account/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAe,CAAC,KAA8C,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG;QACd,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAChC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;KACxB,CAAC;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/menus/components/Account/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAC9B,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAE5C,eAAe,CAAC,KAA8C,EAAE,EAAE;IACjE,MAAM,MAAM,GAAG;QACd,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,cAAc,EAAE;QAChC,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,aAAa,EAAE;QAC/B,EAAE,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE;KACxB,CAAC;IAEF,SAAS,YAAY,CAAC,KAAU;QAC/B,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,EAAE,CAAC,CAAC;IAClC,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB;QACC,oBAAC,MAAM,IACN,YAAY,EAAC,MAAM,EACnB,KAAK,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,EACrB,QAAQ,EAAE,YAAY,EACtB,OAAO,EAAE;gBACR,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;oBACnB,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACjD,CAAC,CAAC;aACF,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -8,13 +8,14 @@ export default (props) => {
|
|
8
8
|
{ id: 3, label: "In Progress" },
|
9
9
|
{ id: 4, label: "Done" },
|
10
10
|
];
|
11
|
-
const { Option } = Select;
|
12
11
|
function handleChange(value) {
|
13
12
|
console.log(`selected ${value}`);
|
14
13
|
}
|
15
14
|
return observe(() => (React.createElement("div", null,
|
16
|
-
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange
|
17
|
-
|
18
|
-
|
15
|
+
React.createElement(Select, { defaultValue: "lucy", style: { width: 120 }, onChange: handleChange, options: [
|
16
|
+
status.map((item) => {
|
17
|
+
return { value: item.label, label: item.label };
|
18
|
+
}),
|
19
|
+
] }))));
|
19
20
|
};
|
20
21
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/menus/components/Status/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,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,IAAI,EAAE,EAAE;oBACnB,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;gBACjD,CAAC,CAAC;aACF,GACA,CACG,CACN,CAAC,CAAC;AACJ,CAAC,CAAC"}
|
@@ -71,12 +71,12 @@ const Company = () => {
|
|
71
71
|
}
|
72
72
|
setState({ autoCompleteResult });
|
73
73
|
};
|
74
|
-
const { Option } = Select;
|
75
74
|
const AutoCompleteOption = AutoComplete.Option;
|
76
75
|
const prefixSelector = (React.createElement(Form.Item, { name: "prefix", noStyle: true },
|
77
|
-
React.createElement(Select, { style: { width: 70 }
|
78
|
-
|
79
|
-
|
76
|
+
React.createElement(Select, { style: { width: 70 }, options: [
|
77
|
+
{ value: "86", label: "+86" },
|
78
|
+
{ value: "87", label: "+87" },
|
79
|
+
] })));
|
80
80
|
const websiteOptions = autoCompleteResult.map((website) => (React.createElement(AutoCompleteOption, { key: website, value: website }, website)));
|
81
81
|
return observe(() => (React.createElement("div", { className: style.all },
|
82
82
|
React.createElement(Form, { ...formItemLayout, form: form, initialValues: { ["residence"]: ["zhejiang", "hangzhou", "xihu"], ["prefix"]: 86 }, onFinish: handleSubmit },
|
@@ -92,7 +92,9 @@ const Company = () => {
|
|
92
92
|
React.createElement(Form.Item, { label: React.createElement("span", null, "City\u00A0") },
|
93
93
|
React.createElement(Input, { style: { width: "70%" } })),
|
94
94
|
React.createElement(Form.Item, { label: "Country", required: true },
|
95
|
-
React.createElement(Select, { defaultValue: "Singapore", style: { width: "50%" }
|
95
|
+
React.createElement(Select, { defaultValue: "Singapore", style: { width: "50%" }, options: residences.map((item) => {
|
96
|
+
return { value: item.value, label: item.value };
|
97
|
+
}) })),
|
96
98
|
React.createElement(Form.Item, { label: React.createElement("span", null, "Postal/Zip Code\u00A0") },
|
97
99
|
React.createElement(Input, { style: { width: "35%" } })),
|
98
100
|
React.createElement(Form.Item, { name: "residence", label: "Time Zone", rules: [
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/modules/menus/pages/ListOptions/Company/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AACpF,OAAO,KAAK,EAAE,EAAa,QAAQ,EAAE,MAAM,OAAO,CAAC;AAEnD,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,MAAM,OAAO,GAAG,GAAG,EAAE;IACpB,MAAM,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC;IAE9B,MAAM,UAAU,GAAG;QAClB;YACC,KAAK,EAAE,UAAU;YACjB,KAAK,EAAE,UAAU;YACjB,QAAQ,EAAE;gBACT;oBACC,KAAK,EAAE,UAAU;oBACjB,KAAK,EAAE,UAAU;iBACjB;aACD;SACD;QACD;YACC,KAAK,EAAE,SAAS;YAChB,KAAK,EAAE,SAAS;YAChB,QAAQ,EAAE;gBACT;oBACC,KAAK,EAAE,SAAS;oBAChB,KAAK,EAAE,SAAS;iBAChB;aACD;SACD;KACD,CAAC;IAEF,MAAM,cAAc,GAAG;QACtB,QAAQ,EAAE;YACT,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAChB,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;SACf;QACD,UAAU,EAAE;YACX,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;YAChB,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,EAAE;SAChB;KACD,CAAC;IACF,MAAM,kBAAkB,GAAG;QAC1B,UAAU,EAAE;YACX,EAAE,EAAE;gBACH,IAAI,EAAE,EAAE;gBACR,MAAM,EAAE,CAAC;aACT;YACD,EAAE,EAAE;gBACH,IAAI,EAAE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AE,KAAK,EAAE,KAAK,EAAE,IAEtB,cAAc,CAED,CACJ;YACZ,oBAAC,IAAI,CAAC,IAAI,OAAK,kBAAkB;gBAChC,oBAAC,MAAM,IAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAC,QAAQ,EAAC,SAAS,EAAC,QAAQ,WAElD,CACE,CACN,CACF,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,OAAO,CAAC"}
|
@@ -3,17 +3,17 @@ import ToolBar from "@voplus/morpho-org/es/controls/ToolBar";
|
|
3
3
|
import { Open } from "@voplus/morpho-org/es/controls/ToolBar/items";
|
4
4
|
import { observe } from "@voplus/morpho-ui";
|
5
5
|
import React from "react";
|
6
|
-
import {
|
6
|
+
import { useNotifications } from "../../../../data/notification";
|
7
7
|
import Routes from "../../../Routes";
|
8
8
|
import NotificationMenu from "../../controls/NotificationMenu";
|
9
9
|
const NotificationHeader = (props) => {
|
10
10
|
const id = props.id;
|
11
|
-
const notification =
|
11
|
+
const notification = useNotifications(id);
|
12
12
|
return observe(() => (React.createElement("div", { className: "notification-header" },
|
13
13
|
React.createElement("div", null, notification.subject),
|
14
14
|
React.createElement(ToolBar, { more: false, id: id },
|
15
15
|
React.createElement(Open, { url: Routes.NotificationDefaultView.getUrl(id) }),
|
16
|
-
React.createElement(NotificationMenu, { id: id, closeAside: true })))));
|
16
|
+
notification.draft && React.createElement(NotificationMenu, { id: id, closeAside: true })))));
|
17
17
|
};
|
18
18
|
export default NotificationHeader;
|
19
19
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/notification/components/NotificationHeader/index.tsx"],"names":[],"mappings":"AAAA,OAAO,cAAc,CAAC;AAEtB,OAAO,OAAO,MAAM,wCAAwC,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,MAAM,8CAA8C,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAC5C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,gBAAgB,EAAE,MAAM,+BAA+B,CAAC;AACjE,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,gBAAgB,MAAM,iCAAiC,CAAC;AAE/D,MAAM,kBAAkB,GAAG,CAAC,KAAqB,EAAE,EAAE;IACpD,MAAM,EAAE,GAAG,KAAK,CAAC,EAAE,CAAC;IACpB,MAAM,YAAY,GAAG,gBAAgB,CAAC,EAAE,CAAC,CAAC;IAE1C,OAAO,OAAO,CAAC,GAAG,EAAE,CAAC,CACpB,6BAAK,SAAS,EAAC,qBAAqB;QACnC,iCAAM,YAAY,CAAC,OAAO,CAAO;QACjC,oBAAC,OAAO,IAAC,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE;YAC3B,oBAAC,IAAI,IAAC,GAAG,EAAE,MAAM,CAAC,uBAAuB,CAAC,MAAM,CAAC,EAAE,CAAC,GAAI;YACvD,YAAY,CAAC,KAAK,IAAI,oBAAC,gBAAgB,IAAC,EAAE,EAAE,EAAE,EAAE,UAAU,EAAE,IAAI,GAAI,CAC5D,CACL,CACN,CAAC,CAAC;AACJ,CAAC,CAAC;AACF,eAAe,kBAAkB,CAAC"}
|