awing-library 2.1.2-dev.580 → 2.1.2-dev.581
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AWING/Chart/BarLine/constants.d.ts.map +1 -1
- package/dist/AWING/Chart/BarLine/constants.js +2 -0
- package/dist/AWING/DataGridGroups/Container.d.ts.map +1 -1
- package/dist/AWING/DataGridGroups/Container.js +20 -13
- package/dist/Commons/Constant.d.ts +1 -1
- package/dist/Commons/Constant.js +1 -1
- package/dist/Commons/Types.d.ts +1 -1
- package/dist/Commons/Types.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/Enum.d.ts +279 -0
- package/dist/Features/COMMON/Notifications/Enum.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/Enum.js +149 -1
- package/dist/Features/COMMON/Notifications/NotificationDetail/NotificationList/Container.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/NotificationDetail/NotificationList/Container.js +14 -1
- package/dist/Features/COMMON/Notifications/NotificationDetail/NotificationList/NotificationItem.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/NotificationDetail/NotificationList/NotificationItem.js +7 -9
- package/dist/Features/COMMON/Notifications/Types.d.ts +2 -3
- package/dist/Features/COMMON/Notifications/Types.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/components/Message/PlaceTransaction.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/components/Message/PlaceTransaction.js +14 -14
- package/dist/Features/COMMON/Notifications/components/Message/WorkspaceAction.d.ts +6 -0
- package/dist/Features/COMMON/Notifications/components/Message/WorkspaceAction.d.ts.map +1 -0
- package/dist/Features/COMMON/Notifications/components/Message/{DomainAction.js → WorkspaceAction.js} +5 -5
- package/dist/Features/COMMON/Notifications/components/Message/WorkspaceTransaction.d.ts +30 -0
- package/dist/Features/COMMON/Notifications/components/Message/WorkspaceTransaction.d.ts.map +1 -0
- package/dist/Features/COMMON/Notifications/components/Message/{DomainTransaction.js → WorkspaceTransaction.js} +26 -26
- package/dist/Features/COMMON/Notifications/components/Message/index.d.ts +3 -2
- package/dist/Features/COMMON/Notifications/components/Message/index.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/components/Message/index.js +34 -35
- package/dist/Features/COMMON/Notifications/components/Message/index.test.js +30 -65
- package/dist/Features/COMMON/Notifications/components/NotificationContent.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/components/NotificationContent.js +3 -6
- package/package.json +1 -1
- package/dist/Features/COMMON/Notifications/components/Message/DomainAction.d.ts +0 -6
- package/dist/Features/COMMON/Notifications/components/Message/DomainAction.d.ts.map +0 -1
- package/dist/Features/COMMON/Notifications/components/Message/DomainTransaction.d.ts +0 -30
- package/dist/Features/COMMON/Notifications/components/Message/DomainTransaction.d.ts.map +0 -1
package/dist/Features/COMMON/Notifications/NotificationDetail/NotificationList/NotificationItem.js
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Visibility, VisibilityOff } from "@mui/icons-material";
|
|
3
|
+
import { Box, Paper } from "@mui/material";
|
|
2
4
|
import { useTranslation } from "react-i18next";
|
|
3
5
|
import { useNavigate } from "react-router";
|
|
4
|
-
import {
|
|
5
|
-
import { Visibility, VisibilityOff } from "@mui/icons-material";
|
|
6
|
-
import { useAwing } from "../../../../../Context/index.js";
|
|
6
|
+
import { getFullDescription } from "../../components/Message/index.js";
|
|
7
7
|
import NotificationAvatar from "../../components/NotificationAvatar.js";
|
|
8
8
|
import NotificationContent from "../../components/NotificationContent.js";
|
|
9
|
-
import { getFullDescription } from "../../components/Message/index.js";
|
|
10
9
|
import { NotificationMessageStatus } from "../../Enum.js";
|
|
11
|
-
const
|
|
10
|
+
const NotificationItem_NotificationItem = (props)=>{
|
|
12
11
|
const { t } = useTranslation();
|
|
13
|
-
const { transactionType } = useAwing();
|
|
14
12
|
const navigate = useNavigate();
|
|
15
13
|
const { notificationMessage, onUpdateStatus } = props;
|
|
16
14
|
const { sagaTransactionType, fields, status, id } = notificationMessage;
|
|
@@ -23,7 +21,7 @@ const NotificationItem = (props)=>{
|
|
|
23
21
|
});
|
|
24
22
|
};
|
|
25
23
|
const handleClickNotification = ()=>{
|
|
26
|
-
if (sagaTransactionType && fields) navigate(getFullDescription(sagaTransactionType, fields
|
|
24
|
+
if (sagaTransactionType && fields) navigate(getFullDescription(sagaTransactionType, fields).url);
|
|
27
25
|
status === NotificationMessageStatus.Unread && onUpdateStatus({
|
|
28
26
|
id,
|
|
29
27
|
status
|
|
@@ -103,5 +101,5 @@ const NotificationItem = (props)=>{
|
|
|
103
101
|
]
|
|
104
102
|
});
|
|
105
103
|
};
|
|
106
|
-
const
|
|
107
|
-
export {
|
|
104
|
+
const NotificationItem = NotificationItem_NotificationItem;
|
|
105
|
+
export { NotificationItem as default };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Timestamp } from '../../../Commons/Types';
|
|
2
|
-
import { NotificationMessageStatus } from './Enum';
|
|
2
|
+
import { NotificationMessageStatus, SagaTransactionType } from './Enum';
|
|
3
3
|
import { LayoutNotificationContextType } from './Context';
|
|
4
|
-
export type SagaTransactionType = Record<string, number>;
|
|
5
4
|
export type LayoutNotificationProps = LayoutNotificationContextType & {};
|
|
6
5
|
export interface IValueFilterState {
|
|
7
6
|
textSearch: string;
|
|
@@ -32,7 +31,7 @@ export interface CancelToken {
|
|
|
32
31
|
export interface NotificationMessage {
|
|
33
32
|
id?: number;
|
|
34
33
|
userId?: number;
|
|
35
|
-
sagaTransactionType
|
|
34
|
+
sagaTransactionType: SagaTransactionType;
|
|
36
35
|
message?: string;
|
|
37
36
|
fields?: NotificationMessageField[];
|
|
38
37
|
status?: NotificationMessageStatus;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,MAAM,QAAQ,CAAC;AACxE,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,GAAG,EAErE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,yBAAyB,GAAG,SAAS,CAAC;CACjD;AAED,MAAM,WAAW,UAAU;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,yBAAyB,CAAC;CACrC;AAED,MAAM,WAAW,iBAAiB;IAC9B,EAAE,EAAE,MAAM,GAAG,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAED,MAAM,WAAW,MAAM;IACnB,OAAO,EAAE,MAAM,GAAG,SAAS,CAAC;CAC/B;AAED,MAAM,WAAW,WAAW;IACxB,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,IAAI,IAAI,CAAC;CAC5B;AAED,MAAM,WAAW,mBAAmB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mBAAmB,EAAE,mBAAmB,CAAC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,wBAAwB,EAAE,CAAC;IACpC,MAAM,CAAC,EAAE,yBAAyB,CAAC;IACnC,WAAW,CAAC,EAAE,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACrC,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AACD,MAAM,WAAW,gCAAgC;IAC7C,KAAK,EAAE,mBAAmB,EAAE,CAAC;IAC7B,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlaceTransaction.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/PlaceTransaction.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,2CAA2C,WAAY,wBAAwB,EAAE;;;
|
|
1
|
+
{"version":3,"file":"PlaceTransaction.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/PlaceTransaction.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,2CAA2C,WAAY,wBAAwB,EAAE;;;CA0B7F,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAAY,wBAAwB,EAAE;;;CAwB7F,CAAC;AAEF,eAAO,MAAM,0CAA0C,WAAY,wBAAwB,EAAE;;;CAsB5F,CAAC;AAEF,eAAO,MAAM,6CAA6C,WAAY,wBAAwB,EAAE;;;CA4B/F,CAAC;AAEF,eAAO,MAAM,6CAA6C,WAAY,wBAAwB,EAAE;;;CAsB/F,CAAC;AAEF,eAAO,MAAM,4CAA4C,WAAY,wBAAwB,EAAE;;;CAsB9F,CAAC;AAEF,eAAO,MAAM,2CAA2C,WAAY,wBAAwB,EAAE;;;CAqB7F,CAAC"}
|
|
@@ -6,7 +6,7 @@ import { defaultResult } from "./index.js";
|
|
|
6
6
|
const PlaceTransactionBuildJoinRequestDescription = (fields)=>{
|
|
7
7
|
const { t } = useTranslation();
|
|
8
8
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
9
|
-
const domain = fields.find((x)=>'
|
|
9
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
10
10
|
const url = `${Constants.NETWORK_PATH}/${Constants.DETAIL_PATH}/${place.value}/PlaceJoinRequest`;
|
|
11
11
|
return {
|
|
12
12
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -24,7 +24,7 @@ const PlaceTransactionBuildJoinRequestDescription = (fields)=>{
|
|
|
24
24
|
padding: '0px 3px'
|
|
25
25
|
},
|
|
26
26
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
27
|
-
to: `${Constants.
|
|
27
|
+
to: `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`,
|
|
28
28
|
children: domain.text
|
|
29
29
|
})
|
|
30
30
|
}),
|
|
@@ -47,8 +47,8 @@ const PlaceTransactionBuildJoinRequestDescription = (fields)=>{
|
|
|
47
47
|
const PlaceTransactionBuildJoinApproveDescription = (fields)=>{
|
|
48
48
|
const { t } = useTranslation();
|
|
49
49
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
50
|
-
const domain = fields.find((x)=>'
|
|
51
|
-
const url = `${Constants.
|
|
50
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
51
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`;
|
|
52
52
|
return {
|
|
53
53
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
54
54
|
children: [
|
|
@@ -88,8 +88,8 @@ const PlaceTransactionBuildJoinApproveDescription = (fields)=>{
|
|
|
88
88
|
const PlaceTransactionBuildJoinRejectDescription = (fields)=>{
|
|
89
89
|
const { t } = useTranslation();
|
|
90
90
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
91
|
-
const domain = fields.find((x)=>'
|
|
92
|
-
const url = `${Constants.
|
|
91
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
92
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`;
|
|
93
93
|
return {
|
|
94
94
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
95
95
|
children: [
|
|
@@ -126,7 +126,7 @@ const PlaceTransactionBuildJoinRejectDescription = (fields)=>{
|
|
|
126
126
|
const PlaceTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
127
127
|
const { t } = useTranslation();
|
|
128
128
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
129
|
-
const domain = fields.find((x)=>'
|
|
129
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
130
130
|
const url = `${Constants.NETWORK_PATH}/${Constants.DETAIL_PATH}/${place.value}/PlaceUnjoinRequest`;
|
|
131
131
|
return {
|
|
132
132
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -147,7 +147,7 @@ const PlaceTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
|
147
147
|
padding: '0px 3px'
|
|
148
148
|
},
|
|
149
149
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
150
|
-
to: `${Constants.
|
|
150
|
+
to: `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`,
|
|
151
151
|
children: domain.text
|
|
152
152
|
})
|
|
153
153
|
}),
|
|
@@ -170,8 +170,8 @@ const PlaceTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
|
170
170
|
const PlaceTransactionBuildUnjoinApproveDescription = (fields)=>{
|
|
171
171
|
const { t } = useTranslation();
|
|
172
172
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
173
|
-
const domain = fields.find((x)=>'
|
|
174
|
-
const url = `${Constants.
|
|
173
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
174
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`;
|
|
175
175
|
return {
|
|
176
176
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
177
177
|
children: [
|
|
@@ -208,8 +208,8 @@ const PlaceTransactionBuildUnjoinApproveDescription = (fields)=>{
|
|
|
208
208
|
const PlaceTransactionBuildUnjoinRejectDescription = (fields)=>{
|
|
209
209
|
const { t } = useTranslation();
|
|
210
210
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
211
|
-
const domain = fields.find((x)=>'
|
|
212
|
-
const url = `${Constants.
|
|
211
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
212
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`;
|
|
213
213
|
return {
|
|
214
214
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
215
215
|
children: [
|
|
@@ -246,8 +246,8 @@ const PlaceTransactionBuildUnjoinRejectDescription = (fields)=>{
|
|
|
246
246
|
const PlaceTransactionBuildPlaceStatusDescription = (fields)=>{
|
|
247
247
|
const { t } = useTranslation();
|
|
248
248
|
const place = fields.find((x)=>'PlaceId' === x.name) ?? defaultResult;
|
|
249
|
-
const domain = fields.find((x)=>'
|
|
250
|
-
const url = `${Constants.
|
|
249
|
+
const domain = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
250
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${domain.value}`;
|
|
251
251
|
return {
|
|
252
252
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
253
253
|
children: [
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { NotificationMessageField } from '../../Types';
|
|
2
|
+
export declare const WorkspaceActionBuildUpdateDescription: (fields: NotificationMessageField[]) => {
|
|
3
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
//# sourceMappingURL=WorkspaceAction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceAction.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/WorkspaceAction.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,qCAAqC,WAAY,wBAAwB,EAAE;;;CAmBvF,CAAC"}
|
package/dist/Features/COMMON/Notifications/components/Message/{DomainAction.js → WorkspaceAction.js}
RENAMED
|
@@ -3,10 +3,10 @@ import { NavLink } from "react-router";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Constants } from "../../../../../Commons/Constant.js";
|
|
5
5
|
import { defaultResult } from "./index.js";
|
|
6
|
-
const
|
|
6
|
+
const WorkspaceActionBuildUpdateDescription = (fields)=>{
|
|
7
7
|
const { t } = useTranslation();
|
|
8
|
-
const
|
|
9
|
-
const url = `${Constants.
|
|
8
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
9
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${workspace.value}`;
|
|
10
10
|
return {
|
|
11
11
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
12
12
|
children: [
|
|
@@ -17,7 +17,7 @@ const DomainActionBuildUpdateDescription = (fields)=>{
|
|
|
17
17
|
},
|
|
18
18
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
19
19
|
to: url,
|
|
20
|
-
children:
|
|
20
|
+
children: workspace.text
|
|
21
21
|
})
|
|
22
22
|
}),
|
|
23
23
|
t('Notification.has been'),
|
|
@@ -32,4 +32,4 @@ const DomainActionBuildUpdateDescription = (fields)=>{
|
|
|
32
32
|
url
|
|
33
33
|
};
|
|
34
34
|
};
|
|
35
|
-
export {
|
|
35
|
+
export { WorkspaceActionBuildUpdateDescription };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NotificationMessageField } from '../../Types';
|
|
2
|
+
export declare const WorkspaceTransactionBuildJoinRequestDescription: (fields: NotificationMessageField[]) => {
|
|
3
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
url: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const WorkspaceTransactionBuildJoinApproveDescription: (fields: NotificationMessageField[]) => {
|
|
7
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
url: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const WorkspaceTransactionBuildJoinRejectDescription: (fields: NotificationMessageField[]) => {
|
|
11
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
url: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const WorkspaceTransactionBuildJoinDeleteDescription: (fields: NotificationMessageField[]) => {
|
|
15
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
url: string;
|
|
17
|
+
};
|
|
18
|
+
export declare const WorkspaceTransactionBuildUnjoinRequestDescription: (fields: NotificationMessageField[]) => {
|
|
19
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
url: string;
|
|
21
|
+
};
|
|
22
|
+
export declare const WorkspaceTransactionBuildUnjoinApproveDescription: (fields: NotificationMessageField[]) => {
|
|
23
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
url: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const WorkspaceTransactionBuildUnjoinRejectDescription: (fields: NotificationMessageField[]) => {
|
|
27
|
+
title: import("react/jsx-runtime").JSX.Element;
|
|
28
|
+
url: string;
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=WorkspaceTransaction.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceTransaction.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/WorkspaceTransaction.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,+CAA+C,WAAY,wBAAwB,EAAE;;;CAqBjG,CAAC;AAEF,eAAO,MAAM,+CAA+C,WAAY,wBAAwB,EAAE;;;CAmBjG,CAAC;AAEF,eAAO,MAAM,8CAA8C,WAAY,wBAAwB,EAAE;;;CAehG,CAAC;AAEF,eAAO,MAAM,8CAA8C,WAAY,wBAAwB,EAAE;;;CAehG,CAAC;AAEF,eAAO,MAAM,iDAAiD,WAAY,wBAAwB,EAAE;;;CAwBnG,CAAC;AAEF,eAAO,MAAM,iDAAiD,WAAY,wBAAwB,EAAE;;;CAenG,CAAC;AAEF,eAAO,MAAM,gDAAgD,WAAY,wBAAwB,EAAE;;;CAmBlG,CAAC"}
|
|
@@ -3,11 +3,11 @@ import { NavLink } from "react-router";
|
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { Constants } from "../../../../../Commons/Constant.js";
|
|
5
5
|
import { defaultResult } from "./index.js";
|
|
6
|
-
const
|
|
6
|
+
const WorkspaceTransactionBuildJoinRequestDescription = (fields)=>{
|
|
7
7
|
const { t } = useTranslation();
|
|
8
|
-
const
|
|
8
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
9
9
|
const request = fields.find((x)=>'RequestId' === x.name) ?? defaultResult;
|
|
10
|
-
const url = `${Constants.NETWORK_PATH}/${Constants.DETAIL_PATH}/${request.value}/
|
|
10
|
+
const url = `${Constants.NETWORK_PATH}/${Constants.DETAIL_PATH}/${request.value}/WorkspaceJoinRequest`;
|
|
11
11
|
return {
|
|
12
12
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
13
13
|
children: [
|
|
@@ -16,7 +16,7 @@ const DomainTransactionBuildJoinRequestDescription = (fields)=>{
|
|
|
16
16
|
style: {
|
|
17
17
|
padding: '0px 3px'
|
|
18
18
|
},
|
|
19
|
-
children:
|
|
19
|
+
children: workspace.text
|
|
20
20
|
}),
|
|
21
21
|
t('Notification.send'),
|
|
22
22
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -34,10 +34,10 @@ const DomainTransactionBuildJoinRequestDescription = (fields)=>{
|
|
|
34
34
|
url
|
|
35
35
|
};
|
|
36
36
|
};
|
|
37
|
-
const
|
|
37
|
+
const WorkspaceTransactionBuildJoinApproveDescription = (fields)=>{
|
|
38
38
|
const { t } = useTranslation();
|
|
39
|
-
const
|
|
40
|
-
const url = `${Constants.
|
|
39
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
40
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${workspace.value}`;
|
|
41
41
|
return {
|
|
42
42
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
43
43
|
children: [
|
|
@@ -48,7 +48,7 @@ const DomainTransactionBuildJoinApproveDescription = (fields)=>{
|
|
|
48
48
|
},
|
|
49
49
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
50
50
|
to: url,
|
|
51
|
-
children:
|
|
51
|
+
children: workspace.text
|
|
52
52
|
})
|
|
53
53
|
}),
|
|
54
54
|
t('Notification.has'),
|
|
@@ -64,9 +64,9 @@ const DomainTransactionBuildJoinApproveDescription = (fields)=>{
|
|
|
64
64
|
url
|
|
65
65
|
};
|
|
66
66
|
};
|
|
67
|
-
const
|
|
67
|
+
const WorkspaceTransactionBuildJoinRejectDescription = (fields)=>{
|
|
68
68
|
const { t } = useTranslation();
|
|
69
|
-
const
|
|
69
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
70
70
|
return {
|
|
71
71
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
72
72
|
children: [
|
|
@@ -75,7 +75,7 @@ const DomainTransactionBuildJoinRejectDescription = (fields)=>{
|
|
|
75
75
|
style: {
|
|
76
76
|
padding: '0px 3px'
|
|
77
77
|
},
|
|
78
|
-
children:
|
|
78
|
+
children: workspace.text
|
|
79
79
|
}),
|
|
80
80
|
t('Notification.has'),
|
|
81
81
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -90,9 +90,9 @@ const DomainTransactionBuildJoinRejectDescription = (fields)=>{
|
|
|
90
90
|
url: ''
|
|
91
91
|
};
|
|
92
92
|
};
|
|
93
|
-
const
|
|
93
|
+
const WorkspaceTransactionBuildJoinDeleteDescription = (fields)=>{
|
|
94
94
|
const { t } = useTranslation();
|
|
95
|
-
const
|
|
95
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
96
96
|
return {
|
|
97
97
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
98
98
|
children: [
|
|
@@ -101,7 +101,7 @@ const DomainTransactionBuildJoinDeleteDescription = (fields)=>{
|
|
|
101
101
|
style: {
|
|
102
102
|
padding: '0px 3px'
|
|
103
103
|
},
|
|
104
|
-
children:
|
|
104
|
+
children: workspace.text
|
|
105
105
|
}),
|
|
106
106
|
t('Notification.has'),
|
|
107
107
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -116,9 +116,9 @@ const DomainTransactionBuildJoinDeleteDescription = (fields)=>{
|
|
|
116
116
|
url: ''
|
|
117
117
|
};
|
|
118
118
|
};
|
|
119
|
-
const
|
|
119
|
+
const WorkspaceTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
120
120
|
const { t } = useTranslation();
|
|
121
|
-
const
|
|
121
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
122
122
|
const request = fields.find((x)=>'RequestId' === x.name) ?? defaultResult;
|
|
123
123
|
const url = `${Constants.NETWORK_PATH}/${Constants.DETAIL_PATH}/${request.value}/PlaceUnjoinRequest`;
|
|
124
124
|
return {
|
|
@@ -130,8 +130,8 @@ const DomainTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
|
130
130
|
padding: '0px 3px'
|
|
131
131
|
},
|
|
132
132
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
133
|
-
to: `${Constants.
|
|
134
|
-
children:
|
|
133
|
+
to: `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${workspace.value}`,
|
|
134
|
+
children: workspace.text
|
|
135
135
|
})
|
|
136
136
|
}),
|
|
137
137
|
t('Notification.has'),
|
|
@@ -150,9 +150,9 @@ const DomainTransactionBuildUnjoinRequestDescription = (fields)=>{
|
|
|
150
150
|
url
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
|
-
const
|
|
153
|
+
const WorkspaceTransactionBuildUnjoinApproveDescription = (fields)=>{
|
|
154
154
|
const { t } = useTranslation();
|
|
155
|
-
const
|
|
155
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
156
156
|
return {
|
|
157
157
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
158
158
|
children: [
|
|
@@ -161,7 +161,7 @@ const DomainTransactionBuildUnjoinApproveDescription = (fields)=>{
|
|
|
161
161
|
style: {
|
|
162
162
|
padding: '0px 3px'
|
|
163
163
|
},
|
|
164
|
-
children:
|
|
164
|
+
children: workspace.text
|
|
165
165
|
}),
|
|
166
166
|
t('Notification.has'),
|
|
167
167
|
/*#__PURE__*/ jsx("span", {
|
|
@@ -176,10 +176,10 @@ const DomainTransactionBuildUnjoinApproveDescription = (fields)=>{
|
|
|
176
176
|
url: ''
|
|
177
177
|
};
|
|
178
178
|
};
|
|
179
|
-
const
|
|
179
|
+
const WorkspaceTransactionBuildUnjoinRejectDescription = (fields)=>{
|
|
180
180
|
const { t } = useTranslation();
|
|
181
|
-
const
|
|
182
|
-
const url = `${Constants.
|
|
181
|
+
const workspace = fields.find((x)=>'WorkspaceId' === x.name) ?? defaultResult;
|
|
182
|
+
const url = `${Constants.WORKSPACES_PATH}/${Constants.EDIT_PATH}/${workspace.value}`;
|
|
183
183
|
return {
|
|
184
184
|
title: /*#__PURE__*/ jsxs(Fragment, {
|
|
185
185
|
children: [
|
|
@@ -190,7 +190,7 @@ const DomainTransactionBuildUnjoinRejectDescription = (fields)=>{
|
|
|
190
190
|
},
|
|
191
191
|
children: /*#__PURE__*/ jsx(NavLink, {
|
|
192
192
|
to: url,
|
|
193
|
-
children:
|
|
193
|
+
children: workspace.text
|
|
194
194
|
})
|
|
195
195
|
}),
|
|
196
196
|
t('Notification.has'),
|
|
@@ -206,4 +206,4 @@ const DomainTransactionBuildUnjoinRejectDescription = (fields)=>{
|
|
|
206
206
|
url
|
|
207
207
|
};
|
|
208
208
|
};
|
|
209
|
-
export {
|
|
209
|
+
export { WorkspaceTransactionBuildJoinApproveDescription, WorkspaceTransactionBuildJoinDeleteDescription, WorkspaceTransactionBuildJoinRejectDescription, WorkspaceTransactionBuildJoinRequestDescription, WorkspaceTransactionBuildUnjoinApproveDescription, WorkspaceTransactionBuildUnjoinRejectDescription, WorkspaceTransactionBuildUnjoinRequestDescription };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { NotificationMessageField
|
|
1
|
+
import { NotificationMessageField } from '../../Types';
|
|
2
|
+
import { SagaTransactionType } from '../../Enum';
|
|
2
3
|
export declare const defaultResult: {
|
|
3
4
|
value: string;
|
|
4
5
|
text: string;
|
|
@@ -7,7 +8,7 @@ export declare const PAGE_CODES: {
|
|
|
7
8
|
PageCodeLogin: string;
|
|
8
9
|
PageCodeWelcome: string;
|
|
9
10
|
};
|
|
10
|
-
export declare const getFullDescription: (type:
|
|
11
|
+
export declare const getFullDescription: (type: SagaTransactionType, fields: NotificationMessageField[]) => {
|
|
11
12
|
title: import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
url: string;
|
|
13
14
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/Features/COMMON/Notifications/components/Message/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AA8BvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,eAAO,MAAM,aAAa;;;CAAmC,CAAC;AAE9D,eAAO,MAAM,UAAU;;;CAGtB,CAAC;AAEF,eAAO,MAAM,kBAAkB,SAAU,mBAAmB,UAAU,wBAAwB,EAAE;;;CA0D/F,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { CampaignActionBuildCreateDescription, CampaignActionBuildDeleteDescription, CampaignActionBuildUpdateDescription } from "./CampaignAction.js";
|
|
3
3
|
import { PageActionBuildCreateDescription, PageActionBuildDeleteDescription, PageActionBuildUpdateDescription } from "./PageAction.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { WorkspaceActionBuildUpdateDescription } from "./WorkspaceAction.js";
|
|
5
|
+
import { WorkspaceTransactionBuildJoinApproveDescription, WorkspaceTransactionBuildJoinDeleteDescription, WorkspaceTransactionBuildJoinRejectDescription, WorkspaceTransactionBuildJoinRequestDescription, WorkspaceTransactionBuildUnjoinApproveDescription, WorkspaceTransactionBuildUnjoinRejectDescription, WorkspaceTransactionBuildUnjoinRequestDescription } from "./WorkspaceTransaction.js";
|
|
6
6
|
import { PlaceActionBuildUpdateDescription } from "./PlaceAction.js";
|
|
7
|
-
import { PlaceTransactionBuildJoinApproveDescription, PlaceTransactionBuildJoinRejectDescription, PlaceTransactionBuildJoinRequestDescription,
|
|
7
|
+
import { PlaceTransactionBuildJoinApproveDescription, PlaceTransactionBuildJoinRejectDescription, PlaceTransactionBuildJoinRequestDescription, PlaceTransactionBuildUnjoinApproveDescription, PlaceTransactionBuildUnjoinRejectDescription, PlaceTransactionBuildUnjoinRequestDescription } from "./PlaceTransaction.js";
|
|
8
|
+
import { SagaTransactionType } from "../../Enum.js";
|
|
8
9
|
const defaultResult = {
|
|
9
10
|
value: '',
|
|
10
11
|
text: '[No name]'
|
|
@@ -13,52 +14,50 @@ const PAGE_CODES = {
|
|
|
13
14
|
PageCodeLogin: 'Login',
|
|
14
15
|
PageCodeWelcome: 'Welcome'
|
|
15
16
|
};
|
|
16
|
-
const getFullDescription = (type, fields
|
|
17
|
+
const getFullDescription = (type, fields)=>{
|
|
17
18
|
switch(type){
|
|
18
|
-
case
|
|
19
|
+
case SagaTransactionType.CampaignCreate:
|
|
19
20
|
return CampaignActionBuildCreateDescription(fields);
|
|
20
|
-
case
|
|
21
|
+
case SagaTransactionType.CampaignUpdate:
|
|
21
22
|
return CampaignActionBuildUpdateDescription(fields);
|
|
22
|
-
case
|
|
23
|
+
case SagaTransactionType.CampaignDelete:
|
|
23
24
|
return CampaignActionBuildDeleteDescription(fields);
|
|
24
|
-
case
|
|
25
|
+
case SagaTransactionType.PageCreate:
|
|
25
26
|
return PageActionBuildCreateDescription(fields);
|
|
26
|
-
case
|
|
27
|
+
case SagaTransactionType.PageUpdate:
|
|
27
28
|
return PageActionBuildUpdateDescription(fields);
|
|
28
|
-
case
|
|
29
|
+
case SagaTransactionType.PageDelete:
|
|
29
30
|
return PageActionBuildDeleteDescription(fields);
|
|
30
|
-
case
|
|
31
|
-
return
|
|
32
|
-
case
|
|
33
|
-
return
|
|
34
|
-
case
|
|
35
|
-
return
|
|
36
|
-
case
|
|
37
|
-
return
|
|
38
|
-
case
|
|
39
|
-
return
|
|
40
|
-
case
|
|
41
|
-
return
|
|
42
|
-
case
|
|
43
|
-
return
|
|
44
|
-
case
|
|
45
|
-
return
|
|
46
|
-
case
|
|
31
|
+
case SagaTransactionType.WorkspaceUpdate:
|
|
32
|
+
return WorkspaceActionBuildUpdateDescription(fields);
|
|
33
|
+
case SagaTransactionType.WorkspaceJoinRequest:
|
|
34
|
+
return WorkspaceTransactionBuildJoinRequestDescription(fields);
|
|
35
|
+
case SagaTransactionType.WorkspaceJoinApprove:
|
|
36
|
+
return WorkspaceTransactionBuildJoinApproveDescription(fields);
|
|
37
|
+
case SagaTransactionType.WorkspaceJoinReject:
|
|
38
|
+
return WorkspaceTransactionBuildJoinRejectDescription(fields);
|
|
39
|
+
case SagaTransactionType.WorkspaceUnjoinRequest:
|
|
40
|
+
return WorkspaceTransactionBuildUnjoinRequestDescription(fields);
|
|
41
|
+
case SagaTransactionType.WorkspaceUnjoinApprove:
|
|
42
|
+
return WorkspaceTransactionBuildUnjoinApproveDescription(fields);
|
|
43
|
+
case SagaTransactionType.WorkspaceUnjoinReject:
|
|
44
|
+
return WorkspaceTransactionBuildUnjoinRejectDescription(fields);
|
|
45
|
+
case SagaTransactionType.WorkspaceJoinDelete:
|
|
46
|
+
return WorkspaceTransactionBuildJoinDeleteDescription(fields);
|
|
47
|
+
case SagaTransactionType.PlaceUpdate:
|
|
47
48
|
return PlaceActionBuildUpdateDescription(fields);
|
|
48
|
-
case
|
|
49
|
+
case SagaTransactionType.PlaceJoinRequest:
|
|
49
50
|
return PlaceTransactionBuildJoinRequestDescription(fields);
|
|
50
|
-
case
|
|
51
|
+
case SagaTransactionType.PlaceJoinApprove:
|
|
51
52
|
return PlaceTransactionBuildJoinApproveDescription(fields);
|
|
52
|
-
case
|
|
53
|
+
case SagaTransactionType.PlaceJoinReject:
|
|
53
54
|
return PlaceTransactionBuildJoinRejectDescription(fields);
|
|
54
|
-
case
|
|
55
|
+
case SagaTransactionType.PlaceUnjoinRequest:
|
|
55
56
|
return PlaceTransactionBuildUnjoinRequestDescription(fields);
|
|
56
|
-
case
|
|
57
|
+
case SagaTransactionType.PlaceUnjoinApprove:
|
|
57
58
|
return PlaceTransactionBuildUnjoinApproveDescription(fields);
|
|
58
|
-
case
|
|
59
|
+
case SagaTransactionType.PlaceUnjoinReject:
|
|
59
60
|
return PlaceTransactionBuildUnjoinRejectDescription(fields);
|
|
60
|
-
case transactionType.PlaceStatusUpdate:
|
|
61
|
-
return PlaceTransactionBuildPlaceStatusDescription(fields);
|
|
62
61
|
default:
|
|
63
62
|
return {
|
|
64
63
|
title: /*#__PURE__*/ jsx(Fragment, {}),
|