awing-library 2.1.3 → 2.1.4
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/lib/ACM-AXN/Campaign/index.js +2 -1
- package/lib/ACM-AXN/DomainPreview/PreviewButton.js +50 -27
- package/lib/ACM-AXN/Notifications/Constant.d.ts +144 -0
- package/lib/ACM-AXN/Notifications/Constant.js +134 -0
- package/lib/ACM-AXN/Notifications/Context.d.ts +8 -0
- package/lib/ACM-AXN/Notifications/Context.js +10 -0
- package/lib/ACM-AXN/Notifications/Hooks.d.ts +7 -0
- package/lib/ACM-AXN/Notifications/Hooks.js +17 -0
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/ButtonTabs.js +26 -20
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.d.ts +1 -1
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.js +30 -39
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.d.ts +2 -5
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.js +18 -15
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.d.ts +1 -1
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.js +15 -15
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.d.ts +0 -6
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.js +29 -28
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.d.ts +10 -0
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.js +380 -0
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.d.ts +1 -1
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.js +3 -3
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.d.ts +0 -6
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.js +38 -48
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.d.ts +2 -2
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.js +32 -32
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.d.ts +0 -6
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.js +65 -73
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.d.ts +4 -11
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.js +46 -36
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.d.ts +0 -6
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.js +56 -50
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationLoading.js +30 -30
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.d.ts +3 -15
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.js +35 -4
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.d.ts +0 -6
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.js +88 -83
- package/lib/ACM-AXN/Notifications/NotificationDetail/index.d.ts +1 -1
- package/lib/ACM-AXN/Notifications/NotificationDetail/index.js +101 -100
- package/lib/ACM-AXN/Notifications/{NotificationPopover.d.ts → NotificationPopover/Container.d.ts} +2 -2
- package/lib/ACM-AXN/Notifications/NotificationPopover/Container.js +149 -0
- package/lib/ACM-AXN/Notifications/{NotificationPopover.test.d.ts → NotificationPopover/Container.test.d.ts} +1 -1
- package/lib/ACM-AXN/Notifications/{NotificationPopover.test.js → NotificationPopover/Container.test.js} +5 -5
- package/lib/ACM-AXN/Notifications/NotificationPopover/index.d.ts +8 -0
- package/lib/ACM-AXN/Notifications/NotificationPopover/index.js +13 -0
- package/lib/ACM-AXN/Notifications/NotificationScreen.d.ts +1 -1
- package/lib/ACM-AXN/Notifications/NotificationScreen.js +4 -4
- package/lib/ACM-AXN/Notifications/Types.d.ts +241 -0
- package/lib/ACM-AXN/Notifications/Types.js +290 -0
- package/lib/ACM-AXN/Notifications/index.d.ts +2 -2
- package/lib/ACM-AXN/Notifications/index.js +5 -5
- package/lib/ACM-AXN/Page/Container.js +2 -2
- package/lib/ACM-AXN/Page/index.js +2 -1
- package/lib/ACM-AXN/PlaceGroup/Context.d.ts +1 -1
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/BasicField/index.js +1 -1
- package/lib/AWING/Directory/CreateDirectory.d.ts +3 -0
- package/lib/AWING/Directory/CreateDirectory.js +27 -10
- package/lib/Commons/Components/ClassicBaseDrawer.d.ts +1 -0
- package/lib/Commons/Components/ClassicBaseDrawer.js +7 -3
- package/lib/translate/en/translation.json +53 -0
- package/lib/translate/vi/translation.json +53 -0
- package/package.json +2 -1
- package/lib/ACM-AXN/Notifications/NotificationDetail/Common.d.ts +0 -39
- package/lib/ACM-AXN/Notifications/NotificationDetail/Common.js +0 -304
- package/lib/ACM-AXN/Notifications/NotificationPopover.js +0 -69
- package/lib/ACM-AXN/Page/ViewDomain/index.d.ts +0 -9
- package/lib/ACM-AXN/Page/ViewDomain/index.js +0 -148
|
@@ -26,11 +26,12 @@ var Constant_1 = require("./Constant");
|
|
|
26
26
|
var Container_1 = __importDefault(require("./Container"));
|
|
27
27
|
var Context_1 = require("./Context");
|
|
28
28
|
var CreateOrEdit_1 = __importDefault(require("./CreateOrEdit"));
|
|
29
|
+
var Enum_1 = require("./Enum");
|
|
29
30
|
var Campaign = function (props) {
|
|
30
31
|
var paths = [
|
|
31
32
|
{
|
|
32
33
|
param: Constant_1.Constants.DIRECTORY_CREATE_DIRECTORY_PATH + '/:directoryId',
|
|
33
|
-
element: ((0, jsx_runtime_1.jsx)(CreateDirectory_1.default, __assign({ parentDirectory: 'campaign' }, props))),
|
|
34
|
+
element: ((0, jsx_runtime_1.jsx)(CreateDirectory_1.default, __assign({ parentDirectory: 'campaign', directoryRoot: Enum_1.DirectoryRoot.Campaign }, props))),
|
|
34
35
|
},
|
|
35
36
|
{
|
|
36
37
|
param: Constant_1.Constants.CAMPAIGN_CREATE + '/:tabName/*',
|
|
@@ -1,15 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var
|
|
3
|
-
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
4
24
|
};
|
|
5
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
26
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
7
27
|
var material_1 = require("@mui/material");
|
|
8
28
|
var icons_material_1 = require("@mui/icons-material");
|
|
9
|
-
var react_1 =
|
|
29
|
+
var react_1 = __importStar(require("react"));
|
|
10
30
|
var react_i18next_1 = require("react-i18next");
|
|
11
31
|
var styles_1 = require("@mui/styles");
|
|
12
32
|
var AWING_1 = require("../../AWING");
|
|
33
|
+
var lodash_1 = require("lodash");
|
|
13
34
|
var useStylesContainer = (0, styles_1.makeStyles)(function () {
|
|
14
35
|
var _a, _b;
|
|
15
36
|
var theme = (0, material_1.useTheme)();
|
|
@@ -73,22 +94,24 @@ var PreviewCampaignContainer = function (props) {
|
|
|
73
94
|
setLoadingFlags(true);
|
|
74
95
|
}, []);
|
|
75
96
|
react_1.default.useEffect(function () {
|
|
76
|
-
if (
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
97
|
+
if (open === true) {
|
|
98
|
+
if (domainIds.length) {
|
|
99
|
+
service
|
|
100
|
+
.domainsGetByIds(domainIds)
|
|
101
|
+
.then(setDomains)
|
|
102
|
+
.finally(function () { return setLoadingFlags(false); });
|
|
103
|
+
}
|
|
104
|
+
else {
|
|
105
|
+
service
|
|
106
|
+
.domainsGetAll()
|
|
107
|
+
.then(function (res) {
|
|
108
|
+
setDomains(res.slice(0, 4));
|
|
109
|
+
})
|
|
110
|
+
.finally(function () { return setLoadingFlags(false); });
|
|
111
|
+
}
|
|
81
112
|
}
|
|
82
|
-
else
|
|
83
|
-
setLoadingFlags(false);
|
|
84
113
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
85
114
|
}, [domainIds, open]);
|
|
86
|
-
react_1.default.useEffect(function () {
|
|
87
|
-
if (!domainIds.length) {
|
|
88
|
-
setOpenDrawer(true);
|
|
89
|
-
// handlePreviewClose({stopPropagation: () => {}} as any)
|
|
90
|
-
}
|
|
91
|
-
}, [domainIds]);
|
|
92
115
|
var _c = react_1.default.useState(false), openDrawer = _c[0], setOpenDrawer = _c[1];
|
|
93
116
|
var toggleDrawer = function (open) { return function (event) {
|
|
94
117
|
event.stopPropagation();
|
|
@@ -111,6 +134,9 @@ var PreviewCampaignContainer = function (props) {
|
|
|
111
134
|
.then(setAllDomain)
|
|
112
135
|
.finally(function () { return setIsLoadingAllDomain(false); });
|
|
113
136
|
}
|
|
137
|
+
else {
|
|
138
|
+
setIsLoadingAllDomain(false);
|
|
139
|
+
}
|
|
114
140
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
115
141
|
}, [openDrawer]);
|
|
116
142
|
var translationText = {
|
|
@@ -118,30 +144,27 @@ var PreviewCampaignContainer = function (props) {
|
|
|
118
144
|
copyToClipboard: t('Common.Preview'),
|
|
119
145
|
other: t('Campaign.Type.Other'),
|
|
120
146
|
};
|
|
147
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
148
|
+
var handleSearch = (0, react_1.useCallback)((0, lodash_1.debounce)(setSearchDomainString, 300), []);
|
|
121
149
|
return ((0, jsx_runtime_1.jsxs)(material_1.Menu, { id: "long-menu", anchorEl: anchorEl, keepMounted: true, open: open, onClose: handlePreviewClose, PaperProps: {
|
|
122
150
|
style: {
|
|
123
151
|
maxHeight: 48 * 4.5,
|
|
124
152
|
width: '25ch',
|
|
125
153
|
},
|
|
126
|
-
}, children: [loadingFlags ? ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { children: (0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {}) })) : (domains &&
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}, children: domain.name }, domain.domainId)); })), !loadingFlags && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: toggleDrawer(true), children: translationText.other })), (0, jsx_runtime_1.jsx)(material_1.Drawer, { anchor: 'right', open: openDrawer, onClose: function () {
|
|
154
|
+
}, children: [loadingFlags ? ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { children: (0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {}) })) : ((domains && domains.map(function (domain) { return ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: function (event) {
|
|
155
|
+
handlePreviewClose(event);
|
|
156
|
+
handlePreviewDomain(event, domain.domainId);
|
|
157
|
+
}, children: domain.name }, domain.domainId)); }))), !loadingFlags && ((0, jsx_runtime_1.jsx)(material_1.MenuItem, { onClick: toggleDrawer(true), children: translationText.other })), (0, jsx_runtime_1.jsx)(material_1.Drawer, { anchor: 'right', open: openDrawer, onClose: function () {
|
|
131
158
|
toggleDrawer(false);
|
|
132
159
|
handlePreviewClose({ stopPropagation: function () { } });
|
|
133
160
|
}, onClick: function (e) { return e.stopPropagation(); }, sx: {
|
|
134
161
|
zIndex: function (theme) { return theme.zIndex.drawer * 10; },
|
|
135
162
|
}, children: isLoadingAllDomain ? ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsx)(material_1.Box, { sx: {
|
|
136
163
|
width: function (t) { return t.spacing(60); },
|
|
137
|
-
}, children: (0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {}) }) })) : ((0, jsx_runtime_1.jsxs)(material_1.List, { className: classes.drawer, children: [(0, jsx_runtime_1.jsx)(material_1.ListItem, { component: "div", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, placeholder: translationText.searchPlaceholder,
|
|
138
|
-
'& fieldset': {
|
|
139
|
-
border: 'none!important'
|
|
140
|
-
}
|
|
141
|
-
}, inputProps: { 'aria-label': 'search' }, InputProps: {
|
|
164
|
+
}, children: (0, jsx_runtime_1.jsx)(AWING_1.CircularProgress, {}) }) })) : ((0, jsx_runtime_1.jsxs)(material_1.List, { className: classes.drawer, children: [(0, jsx_runtime_1.jsx)(material_1.ListItem, { component: "div", children: (0, jsx_runtime_1.jsx)(material_1.TextField, { fullWidth: true, placeholder: translationText.searchPlaceholder, inputProps: { 'aria-label': 'search' }, InputProps: {
|
|
142
165
|
startAdornment: (0, jsx_runtime_1.jsx)(icons_material_1.Search, {}),
|
|
143
166
|
}, onChange: function (e) {
|
|
144
|
-
return
|
|
167
|
+
return handleSearch(e.target.value);
|
|
145
168
|
} }) }), (0, jsx_runtime_1.jsx)(material_1.Divider, {}), allDomain &&
|
|
146
169
|
allDomain
|
|
147
170
|
.filter(function (d) {
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* @author dauquan1108@gmail.com on 03/11/2024.
|
|
4
|
+
*
|
|
5
|
+
**/
|
|
6
|
+
export declare const PAGE_CODES: {
|
|
7
|
+
PageCodeLogin: string;
|
|
8
|
+
PageCodeWelcome: string;
|
|
9
|
+
};
|
|
10
|
+
declare global {
|
|
11
|
+
interface Window {
|
|
12
|
+
REACT_APP_API_ENDPOINT: string;
|
|
13
|
+
GOONG_MAP_KEY: string;
|
|
14
|
+
GOONG_API_KEY: string;
|
|
15
|
+
REACT_APP_CAPTIVE_DOMAIN: string;
|
|
16
|
+
CLIENT_ID: string;
|
|
17
|
+
REACT_APP_ID_DOMAIN: string;
|
|
18
|
+
REACT_APP_FILE_STATIC_PATH: string;
|
|
19
|
+
REACT_APP_FILE_TEMP_PATH: string;
|
|
20
|
+
REACT_APP_TEMPLATE_FILE_PATH: string;
|
|
21
|
+
REACT_APP_I18NEXT_BACKEND: string;
|
|
22
|
+
DEFAULT_PREVIEW_DOMAIN_ID: string;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export declare const Constants: {
|
|
26
|
+
ALL: string;
|
|
27
|
+
UNREAD: string;
|
|
28
|
+
SELECT_ALL: string;
|
|
29
|
+
NOTIFICATIONS_PATH: string;
|
|
30
|
+
NOTIFICATION_SETTING_SCREEN_PATH: string;
|
|
31
|
+
APP_NAME: string;
|
|
32
|
+
API_ENDPOINT: string;
|
|
33
|
+
GOONG_MAP_KEY: string;
|
|
34
|
+
GOONG_API_KEY: string;
|
|
35
|
+
CAPTIVE_DOMAIN: string;
|
|
36
|
+
ID_DOMAIN: string;
|
|
37
|
+
FILE_STATIC_PATH: string;
|
|
38
|
+
FILE_TEMP_PATH: string;
|
|
39
|
+
TEMPLATE_FILE_PATH: string;
|
|
40
|
+
REACT_APP_I18NEXT_BACKEND: string;
|
|
41
|
+
CLIENT_ID: string;
|
|
42
|
+
PAGE_SIZE_DEFAULT: number;
|
|
43
|
+
DEFAULT_ROWS_PER_PAGE: number[];
|
|
44
|
+
NUMBER_DOMAIN_FAVORITE: number;
|
|
45
|
+
PLACE_GROUP_SYSTEM: string;
|
|
46
|
+
FAVORITE_DOMAIN: string;
|
|
47
|
+
DOMAIN_ID_KEY: string;
|
|
48
|
+
HOME_PATH: string;
|
|
49
|
+
SET_SSID: string;
|
|
50
|
+
SET_LOGOUT: string;
|
|
51
|
+
PROFILE_PATH: string;
|
|
52
|
+
USER_PROFILE_INFO: string;
|
|
53
|
+
CLIENT_AUTHEN: {
|
|
54
|
+
TOKEN_KEY: string;
|
|
55
|
+
RETURN_URL_KEY: string;
|
|
56
|
+
CLIENT_ID_KEY: string;
|
|
57
|
+
};
|
|
58
|
+
LOGIN_PATH: string;
|
|
59
|
+
LOGOUT_PATH: string;
|
|
60
|
+
ERROR_PATH: string;
|
|
61
|
+
ERROR_403_PATH: string;
|
|
62
|
+
LOCAL_STORAGE_USER: string;
|
|
63
|
+
DIRECTORY_PATH: string;
|
|
64
|
+
DIRECTORY_PERMISSION_PATH: string;
|
|
65
|
+
DIRECTORY_CREATE_DIRECTORY_PATH: string;
|
|
66
|
+
DIRECTORY_ADD_PERMISSION_PATH: string;
|
|
67
|
+
DIRECTORY_EDIT_PERMISSION_PATH: string;
|
|
68
|
+
DIRECTORY_ADD_PERMISSION_ADD_NEWAUTHEN_PATH: string;
|
|
69
|
+
SYSTEM_DIRECTORY_PERMISSION_PATH: string;
|
|
70
|
+
MENU_DIRECTORY_PERMISSION_PATH: string;
|
|
71
|
+
CAMPAIGN_PATH: string;
|
|
72
|
+
CAMPAIGN_CREATE_DIRECTORY: string;
|
|
73
|
+
CAMPAIGN_CREATE: string;
|
|
74
|
+
CAMPAIGN_CREATE_WITH_WIZARD: string;
|
|
75
|
+
CAMPAIGN_DETAIL: string;
|
|
76
|
+
CAMPAIGN_CLONE: string;
|
|
77
|
+
CAMPAIGN_INFORMATION: string;
|
|
78
|
+
CAMPAIGN_DISPLAY: string;
|
|
79
|
+
CAMPAIGN_LOCATION: string;
|
|
80
|
+
CAMPAIGN_ADVANCED: string;
|
|
81
|
+
CAMPAIGN_PARTNER: string;
|
|
82
|
+
CAMPAIGN_SELECT_PAGE: string;
|
|
83
|
+
CAMPAIGN_GENERAL_WEIGHT: string;
|
|
84
|
+
CAMPAIGN_CREATE_GROUP: string;
|
|
85
|
+
CAMPAIGN_EDIT_GROUP: string;
|
|
86
|
+
CAMPAIGN_EDIT_WEIGHT: string;
|
|
87
|
+
CAMPAIGN_UPDATE_EXPRESSION: string;
|
|
88
|
+
CAMPAIGN_ADD_RULE: string;
|
|
89
|
+
CAMPAIGN_EDIT_RULE: string;
|
|
90
|
+
CAMPAIGN_ADD_PERMISSION: string;
|
|
91
|
+
CAMPAIGN_EDIT_PAGE: string;
|
|
92
|
+
CAMPAIGN_MATCH_RATE: string;
|
|
93
|
+
PAGE_LOGIN: string;
|
|
94
|
+
PAGE_WELCOME: string;
|
|
95
|
+
USER_PATH: string;
|
|
96
|
+
USER_GROUP_PATH: string;
|
|
97
|
+
AUTHENTICATION_PROFILE_PATH: string;
|
|
98
|
+
HOLIDAY_PATH: string;
|
|
99
|
+
HOLIDAY_CREATE: string;
|
|
100
|
+
HOLIDAY_EDIT: string;
|
|
101
|
+
HOLIDAY_DETAIL: string;
|
|
102
|
+
HOLIDAY_DETAIL_CREATE: string;
|
|
103
|
+
HOLIDAY_DETAIL_EDIT: string;
|
|
104
|
+
TEMPLATE_MANAGEMENT_PATH: string;
|
|
105
|
+
PLACE_PATH: string;
|
|
106
|
+
MONITOR_CAPTIVE_PATH: string;
|
|
107
|
+
SCHEDULE_PLAN_PATH: string;
|
|
108
|
+
SCHEDULE_COMPLETION_RATE_PATH: string;
|
|
109
|
+
STATISTIC_SCHEDULE_PLAN_PATH: string;
|
|
110
|
+
CAMPAIGN_SCHEDULE_PATH: string;
|
|
111
|
+
CAMPAIGN_STATISTIC_PATH: string;
|
|
112
|
+
STATISTICS_TOTAL_PATH: string;
|
|
113
|
+
STATISTICS_BY_TOTAL_NETWORK_PATH: string;
|
|
114
|
+
STATISTICS_COMPARE: string;
|
|
115
|
+
STATISTICS_BY_PLACE: string;
|
|
116
|
+
TRAFFIC_CALCULATOR_PATH: string;
|
|
117
|
+
PROVINCE_PATH: string;
|
|
118
|
+
AUDIENCE_OVERVIEW_PATH: string;
|
|
119
|
+
AUDIENCE_DEMOGRAPHIC_PATH: string;
|
|
120
|
+
TASK_SCHEDULER_PATH: string;
|
|
121
|
+
DOMAINS_PATH: string;
|
|
122
|
+
UPDATE_CAMPAIGN_DEFAULT_PATH: string;
|
|
123
|
+
TRANSACTION_LOG_PATH: string;
|
|
124
|
+
DETAIL_PATH: string;
|
|
125
|
+
PLACE_CUSTOMER_INFO_PATH: string;
|
|
126
|
+
ACCESS_POINT: string;
|
|
127
|
+
PLACE_GROUP_POINT: string;
|
|
128
|
+
WIZARD_PATH: string;
|
|
129
|
+
PLACE_STAT_PATH: string;
|
|
130
|
+
NETWORK_REQUEST_PATH: string;
|
|
131
|
+
ATTRIBUTE_TYPE_PATH: string;
|
|
132
|
+
ATTRIBUTES_PATH: string;
|
|
133
|
+
NETWORK_PATH: string;
|
|
134
|
+
ADD_EXISTED_USER: string;
|
|
135
|
+
ADD_USER_TO_GROUP: string;
|
|
136
|
+
CREATE_PATH: string;
|
|
137
|
+
IMPORT_PATH: string;
|
|
138
|
+
EDIT_PATH: string;
|
|
139
|
+
CLONE_PATH: string;
|
|
140
|
+
DEBOUNCE_TIME: number;
|
|
141
|
+
DEBOUNCE_TIME_500: number;
|
|
142
|
+
DEBOUNCE_TIME_300: number;
|
|
143
|
+
ACM_TEMPLATE_PATH: string;
|
|
144
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @author dauquan1108@gmail.com on 03/11/2024.
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Constants = exports.PAGE_CODES = void 0;
|
|
9
|
+
exports.PAGE_CODES = {
|
|
10
|
+
PageCodeLogin: 'lgn',
|
|
11
|
+
PageCodeWelcome: 'wlc',
|
|
12
|
+
};
|
|
13
|
+
exports.Constants = {
|
|
14
|
+
// Notification
|
|
15
|
+
ALL: 'All',
|
|
16
|
+
UNREAD: 'Unread',
|
|
17
|
+
SELECT_ALL: 'SelectAll',
|
|
18
|
+
NOTIFICATIONS_PATH: 'Notifications',
|
|
19
|
+
NOTIFICATION_SETTING_SCREEN_PATH: 'Notification',
|
|
20
|
+
// End Notification
|
|
21
|
+
APP_NAME: 'AWING ACM',
|
|
22
|
+
API_ENDPOINT: window.REACT_APP_API_ENDPOINT,
|
|
23
|
+
GOONG_MAP_KEY: window.GOONG_MAP_KEY,
|
|
24
|
+
GOONG_API_KEY: window.GOONG_API_KEY,
|
|
25
|
+
CAPTIVE_DOMAIN: window.REACT_APP_CAPTIVE_DOMAIN,
|
|
26
|
+
ID_DOMAIN: window.REACT_APP_ID_DOMAIN,
|
|
27
|
+
FILE_STATIC_PATH: window.REACT_APP_FILE_STATIC_PATH,
|
|
28
|
+
FILE_TEMP_PATH: window.REACT_APP_FILE_TEMP_PATH,
|
|
29
|
+
TEMPLATE_FILE_PATH: window.REACT_APP_TEMPLATE_FILE_PATH,
|
|
30
|
+
REACT_APP_I18NEXT_BACKEND: window.REACT_APP_I18NEXT_BACKEND,
|
|
31
|
+
CLIENT_ID: window.CLIENT_ID,
|
|
32
|
+
PAGE_SIZE_DEFAULT: 10,
|
|
33
|
+
DEFAULT_ROWS_PER_PAGE: [10, 20, 30],
|
|
34
|
+
NUMBER_DOMAIN_FAVORITE: 10,
|
|
35
|
+
PLACE_GROUP_SYSTEM: '58',
|
|
36
|
+
FAVORITE_DOMAIN: 'FavoriteDomain',
|
|
37
|
+
DOMAIN_ID_KEY: 'DomainId',
|
|
38
|
+
HOME_PATH: '/',
|
|
39
|
+
SET_SSID: 'SetSSID',
|
|
40
|
+
SET_LOGOUT: 'SetLogout',
|
|
41
|
+
PROFILE_PATH: 'Profile',
|
|
42
|
+
USER_PROFILE_INFO: 'Info',
|
|
43
|
+
CLIENT_AUTHEN: {
|
|
44
|
+
TOKEN_KEY: 'token',
|
|
45
|
+
RETURN_URL_KEY: 'returnUrl',
|
|
46
|
+
CLIENT_ID_KEY: 'clientId',
|
|
47
|
+
},
|
|
48
|
+
LOGIN_PATH: 'Login',
|
|
49
|
+
LOGOUT_PATH: 'Logout',
|
|
50
|
+
ERROR_PATH: 'Error',
|
|
51
|
+
ERROR_403_PATH: 'Error403',
|
|
52
|
+
LOCAL_STORAGE_USER: 'AWING_ACM_User',
|
|
53
|
+
DIRECTORY_PATH: 'Directory',
|
|
54
|
+
DIRECTORY_PERMISSION_PATH: 'Permission',
|
|
55
|
+
DIRECTORY_CREATE_DIRECTORY_PATH: 'CreateDirectory',
|
|
56
|
+
DIRECTORY_ADD_PERMISSION_PATH: 'AddPermission',
|
|
57
|
+
DIRECTORY_EDIT_PERMISSION_PATH: 'EditPermission',
|
|
58
|
+
DIRECTORY_ADD_PERMISSION_ADD_NEWAUTHEN_PATH: '/AddNewAuthen',
|
|
59
|
+
SYSTEM_DIRECTORY_PERMISSION_PATH: 'SystemPermission',
|
|
60
|
+
MENU_DIRECTORY_PERMISSION_PATH: 'MenuPermission',
|
|
61
|
+
CAMPAIGN_PATH: 'Campaign',
|
|
62
|
+
CAMPAIGN_CREATE_DIRECTORY: 'CreateDirectory',
|
|
63
|
+
CAMPAIGN_CREATE: 'Create',
|
|
64
|
+
CAMPAIGN_CREATE_WITH_WIZARD: 'Create/FromWizard',
|
|
65
|
+
CAMPAIGN_DETAIL: 'Detail',
|
|
66
|
+
CAMPAIGN_CLONE: 'Clone',
|
|
67
|
+
CAMPAIGN_INFORMATION: 'Information',
|
|
68
|
+
CAMPAIGN_DISPLAY: 'Display',
|
|
69
|
+
CAMPAIGN_LOCATION: 'Location',
|
|
70
|
+
CAMPAIGN_ADVANCED: 'Advanced',
|
|
71
|
+
CAMPAIGN_PARTNER: 'Partner',
|
|
72
|
+
CAMPAIGN_SELECT_PAGE: 'SelectPage',
|
|
73
|
+
CAMPAIGN_GENERAL_WEIGHT: 'GeneralWeight',
|
|
74
|
+
CAMPAIGN_CREATE_GROUP: 'CreateGroup',
|
|
75
|
+
CAMPAIGN_EDIT_GROUP: 'EditGroup',
|
|
76
|
+
CAMPAIGN_EDIT_WEIGHT: 'EditWeight',
|
|
77
|
+
CAMPAIGN_UPDATE_EXPRESSION: 'UpdateExpression',
|
|
78
|
+
CAMPAIGN_ADD_RULE: 'AddRule',
|
|
79
|
+
CAMPAIGN_EDIT_RULE: 'EditRule',
|
|
80
|
+
CAMPAIGN_ADD_PERMISSION: 'AddPermission',
|
|
81
|
+
CAMPAIGN_EDIT_PAGE: 'EditPage',
|
|
82
|
+
CAMPAIGN_MATCH_RATE: 'CampaignMatchRate',
|
|
83
|
+
PAGE_LOGIN: '/Page/Login',
|
|
84
|
+
PAGE_WELCOME: '/Page/Welcome',
|
|
85
|
+
USER_PATH: 'User',
|
|
86
|
+
USER_GROUP_PATH: 'UserGroup',
|
|
87
|
+
AUTHENTICATION_PROFILE_PATH: 'AuthenticationProfile',
|
|
88
|
+
HOLIDAY_PATH: 'Holiday',
|
|
89
|
+
HOLIDAY_CREATE: 'HolidayCreate',
|
|
90
|
+
HOLIDAY_EDIT: 'HolidayEdit',
|
|
91
|
+
HOLIDAY_DETAIL: 'HolidayDetail',
|
|
92
|
+
HOLIDAY_DETAIL_CREATE: 'HolidayCreateDate',
|
|
93
|
+
HOLIDAY_DETAIL_EDIT: 'HolidayDetailEdit',
|
|
94
|
+
TEMPLATE_MANAGEMENT_PATH: 'Template',
|
|
95
|
+
PLACE_PATH: 'Place',
|
|
96
|
+
MONITOR_CAPTIVE_PATH: 'MonitorCaptive',
|
|
97
|
+
SCHEDULE_PLAN_PATH: 'SchedulePlan',
|
|
98
|
+
SCHEDULE_COMPLETION_RATE_PATH: '/Schedule/ScheduleCompletionRate',
|
|
99
|
+
STATISTIC_SCHEDULE_PLAN_PATH: 'StatisticSchedulePlan',
|
|
100
|
+
CAMPAIGN_SCHEDULE_PATH: 'CampaignSchedulePlan',
|
|
101
|
+
CAMPAIGN_STATISTIC_PATH: 'CampaignStatistic',
|
|
102
|
+
STATISTICS_TOTAL_PATH: 'StatisticsTotal',
|
|
103
|
+
STATISTICS_BY_TOTAL_NETWORK_PATH: 'StatisticsByTotalNetWork',
|
|
104
|
+
STATISTICS_COMPARE: 'StatisticsCompare',
|
|
105
|
+
STATISTICS_BY_PLACE: 'StatisticsByPlace',
|
|
106
|
+
TRAFFIC_CALCULATOR_PATH: 'TrafficCalculator',
|
|
107
|
+
PROVINCE_PATH: 'Province',
|
|
108
|
+
AUDIENCE_OVERVIEW_PATH: 'AudienceOverview',
|
|
109
|
+
AUDIENCE_DEMOGRAPHIC_PATH: 'AudienceDemographic',
|
|
110
|
+
TASK_SCHEDULER_PATH: 'TaskScheduler',
|
|
111
|
+
DOMAINS_PATH: 'Domain',
|
|
112
|
+
UPDATE_CAMPAIGN_DEFAULT_PATH: 'UpdateCampaignDefault',
|
|
113
|
+
TRANSACTION_LOG_PATH: 'TransactionLog',
|
|
114
|
+
DETAIL_PATH: 'Detail',
|
|
115
|
+
PLACE_CUSTOMER_INFO_PATH: 'PlaceCustomerInfo',
|
|
116
|
+
ACCESS_POINT: 'Ap',
|
|
117
|
+
PLACE_GROUP_POINT: 'PlaceGroup',
|
|
118
|
+
WIZARD_PATH: 'Wizard',
|
|
119
|
+
PLACE_STAT_PATH: 'PlaceStat',
|
|
120
|
+
NETWORK_REQUEST_PATH: 'NetworkRequest',
|
|
121
|
+
ATTRIBUTE_TYPE_PATH: 'AttributeType',
|
|
122
|
+
ATTRIBUTES_PATH: 'Attribute',
|
|
123
|
+
NETWORK_PATH: 'Network',
|
|
124
|
+
ADD_EXISTED_USER: 'AddExistedUser',
|
|
125
|
+
ADD_USER_TO_GROUP: 'AddUserToGroup',
|
|
126
|
+
CREATE_PATH: 'Create',
|
|
127
|
+
IMPORT_PATH: 'Import',
|
|
128
|
+
EDIT_PATH: 'Edit',
|
|
129
|
+
CLONE_PATH: 'Clone',
|
|
130
|
+
DEBOUNCE_TIME: 700,
|
|
131
|
+
DEBOUNCE_TIME_500: 500,
|
|
132
|
+
DEBOUNCE_TIME_300: 300,
|
|
133
|
+
ACM_TEMPLATE_PATH: '{acmTemplatePath}',
|
|
134
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @author dauquan1108@gmail.com on 04/15/2024.
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.NotificationContext = void 0;
|
|
9
|
+
var react_1 = require("react");
|
|
10
|
+
exports.NotificationContext = (0, react_1.createContext)({});
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @author dauquan1108@gmail.com on 04/15/2024.
|
|
5
|
+
*
|
|
6
|
+
**/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
var react_1 = require("react");
|
|
9
|
+
var Context_1 = require("./Context");
|
|
10
|
+
var useNotificationProps = function () {
|
|
11
|
+
var notificationProps = (0, react_1.useContext)(Context_1.NotificationContext);
|
|
12
|
+
var props = (0, react_1.useMemo)(function () {
|
|
13
|
+
return notificationProps;
|
|
14
|
+
}, [notificationProps]);
|
|
15
|
+
return props;
|
|
16
|
+
};
|
|
17
|
+
exports.default = useNotificationProps;
|
|
@@ -10,42 +10,48 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
10
10
|
*
|
|
11
11
|
**/
|
|
12
12
|
var react_1 = __importDefault(require("react"));
|
|
13
|
-
var react_i18next_1 = require("react-i18next");
|
|
14
13
|
var material_1 = require("@mui/material");
|
|
15
|
-
var
|
|
14
|
+
var react_i18next_1 = require("react-i18next");
|
|
15
|
+
var Constant_1 = require("../../Constant");
|
|
16
16
|
var ButtonTabs = function (props) {
|
|
17
17
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
18
18
|
var tabActive = props.tabActive, _a = props.onUpdateTabActive, onUpdateTabActive = _a === void 0 ? function () { return null; } : _a;
|
|
19
19
|
var handleUpdateTabs = function (event) {
|
|
20
20
|
var _a, _b;
|
|
21
|
-
var tabSelected = ((_b = (_a = event === null || event === void 0 ? void 0 : event.currentTarget) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.tabs) ||
|
|
21
|
+
var tabSelected = ((_b = (_a = event === null || event === void 0 ? void 0 : event.currentTarget) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.tabs) || Constant_1.Constants.ALL;
|
|
22
22
|
onUpdateTabActive(tabSelected);
|
|
23
23
|
};
|
|
24
24
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { mt: 2, component: "div", children: [(0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleUpdateTabs, sx: [
|
|
25
25
|
{
|
|
26
|
-
fontWeight:
|
|
27
|
-
borderRadius:
|
|
28
|
-
color: tabActive ===
|
|
29
|
-
backgroundColor: tabActive ===
|
|
26
|
+
fontWeight: '600',
|
|
27
|
+
borderRadius: '24px',
|
|
28
|
+
color: tabActive === Constant_1.Constants.ALL ? '#FFF' : '#000',
|
|
29
|
+
backgroundColor: tabActive === Constant_1.Constants.ALL ? '#ED1D25' : 'inherit',
|
|
30
30
|
},
|
|
31
31
|
{
|
|
32
32
|
'&:hover': {
|
|
33
|
-
backgroundColor: tabActive ===
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
33
|
+
backgroundColor: tabActive === Constant_1.Constants.ALL
|
|
34
|
+
? '#DD040C'
|
|
35
|
+
: 'inherit',
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
], "data-tabs": Constant_1.Constants.ALL, children: t('Common.All') }), (0, jsx_runtime_1.jsx)(material_1.Button, { onClick: handleUpdateTabs, "data-tabs": Constant_1.Constants.UNREAD, sx: [
|
|
37
39
|
{
|
|
38
|
-
marginLeft:
|
|
39
|
-
fontWeight:
|
|
40
|
-
borderRadius:
|
|
41
|
-
color: tabActive ===
|
|
42
|
-
backgroundColor: tabActive ===
|
|
40
|
+
marginLeft: '8px',
|
|
41
|
+
fontWeight: '600',
|
|
42
|
+
borderRadius: '24px',
|
|
43
|
+
color: tabActive === Constant_1.Constants.UNREAD ? '#FFF' : '#000',
|
|
44
|
+
backgroundColor: tabActive === Constant_1.Constants.UNREAD
|
|
45
|
+
? '#ED1D25'
|
|
46
|
+
: 'inherit',
|
|
43
47
|
},
|
|
44
48
|
{
|
|
45
49
|
'&:hover': {
|
|
46
|
-
backgroundColor: tabActive ===
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
+
backgroundColor: tabActive === Constant_1.Constants.UNREAD
|
|
51
|
+
? '#DD040C'
|
|
52
|
+
: 'inherit',
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
], children: t('Common.Unread') })] }));
|
|
50
56
|
};
|
|
51
57
|
exports.default = react_1.default.memo(ButtonTabs);
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
3
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
4
|
-
if (ar || !(i in from)) {
|
|
5
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
6
|
-
ar[i] = from[i];
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
10
|
-
};
|
|
11
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
4
|
};
|
|
@@ -20,12 +11,11 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
20
11
|
**/
|
|
21
12
|
var react_1 = __importDefault(require("react"));
|
|
22
13
|
var react_i18next_1 = require("react-i18next");
|
|
23
|
-
var material_1 = require("@mui/material");
|
|
24
14
|
var MoreHorizOutlined_1 = __importDefault(require("@mui/icons-material/MoreHorizOutlined"));
|
|
25
|
-
var
|
|
26
|
-
var
|
|
27
|
-
var
|
|
28
|
-
var
|
|
15
|
+
var material_1 = require("@mui/material");
|
|
16
|
+
var Constant_1 = require("../../Constant");
|
|
17
|
+
var check_svg_1 = __importDefault(require("../../../../Assets/Images/check.svg"));
|
|
18
|
+
var settingScreen_svg_1 = __importDefault(require("../../../../Assets/Images/settingScreen.svg"));
|
|
29
19
|
var MenuNotification = function (props) {
|
|
30
20
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
31
21
|
var _a = props.onUpdateMenuItem, onUpdateMenuItem = _a === void 0 ? function () { return null; } : _a;
|
|
@@ -33,28 +23,29 @@ var MenuNotification = function (props) {
|
|
|
33
23
|
var menuData = function () {
|
|
34
24
|
var commonData = [
|
|
35
25
|
{
|
|
36
|
-
id:
|
|
26
|
+
id: '1',
|
|
37
27
|
icon: check_svg_1.default,
|
|
38
|
-
title: t(
|
|
39
|
-
value:
|
|
28
|
+
title: t('Notifications.SelectAll'),
|
|
29
|
+
value: Constant_1.Constants.SELECT_ALL,
|
|
40
30
|
},
|
|
41
31
|
{
|
|
42
|
-
id:
|
|
32
|
+
id: '2',
|
|
43
33
|
icon: settingScreen_svg_1.default,
|
|
44
|
-
title: t(
|
|
45
|
-
value:
|
|
34
|
+
title: t('Notifications.NotificationSettings'),
|
|
35
|
+
value: Constant_1.Constants.NOTIFICATION_SETTING_SCREEN_PATH,
|
|
46
36
|
},
|
|
47
37
|
];
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
38
|
+
// Comment màn hình Notifications
|
|
39
|
+
// const { href } = window.location
|
|
40
|
+
// if (!href.includes(Constants.NOTIFICATIONS_PATH)) {
|
|
41
|
+
// const dataNew = {
|
|
42
|
+
// id: '3',
|
|
43
|
+
// icon: iconNotificationSreen,
|
|
44
|
+
// title: t('Notifications.OpenNotification'),
|
|
45
|
+
// value: Constants.NOTIFICATIONS_PATH,
|
|
46
|
+
// }
|
|
47
|
+
// return [...commonData, dataNew]
|
|
48
|
+
// }
|
|
58
49
|
return commonData;
|
|
59
50
|
};
|
|
60
51
|
var handleClick = function (event) {
|
|
@@ -65,23 +56,23 @@ var MenuNotification = function (props) {
|
|
|
65
56
|
};
|
|
66
57
|
var selectMenuItem = function (event) {
|
|
67
58
|
var _a, _b;
|
|
68
|
-
var valueItem = ((_b = (_a = event === null || event === void 0 ? void 0 : event.currentTarget) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.value) ||
|
|
59
|
+
var valueItem = ((_b = (_a = event === null || event === void 0 ? void 0 : event.currentTarget) === null || _a === void 0 ? void 0 : _a.dataset) === null || _b === void 0 ? void 0 : _b.value) || '';
|
|
69
60
|
onUpdateMenuItem(valueItem);
|
|
70
61
|
handleClose();
|
|
71
62
|
};
|
|
72
63
|
return ((0, jsx_runtime_1.jsxs)("div", { children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { size: "small", "aria-label": "more", "aria-controls": "long-menu", "aria-haspopup": "true", onClick: handleClick, children: (0, jsx_runtime_1.jsx)(MoreHorizOutlined_1.default, {}) }), (0, jsx_runtime_1.jsx)(material_1.Popover, { anchorEl: anchorEl, onClose: handleClose, open: Boolean(anchorEl), anchorOrigin: {
|
|
73
|
-
vertical:
|
|
74
|
-
horizontal:
|
|
64
|
+
vertical: 'bottom',
|
|
65
|
+
horizontal: 'center',
|
|
75
66
|
}, transformOrigin: {
|
|
76
|
-
vertical:
|
|
77
|
-
horizontal:
|
|
67
|
+
vertical: 'top',
|
|
68
|
+
horizontal: 'center',
|
|
78
69
|
}, PaperProps: {
|
|
79
70
|
style: {
|
|
80
|
-
borderRadius:
|
|
71
|
+
borderRadius: '8px',
|
|
81
72
|
},
|
|
82
73
|
}, children: menuData().map(function (item) { return ((0, jsx_runtime_1.jsxs)(material_1.MenuItem, { onClick: selectMenuItem, "data-value": item.value, children: [(0, jsx_runtime_1.jsx)(material_1.Box, { mr: 2, style: {
|
|
83
|
-
display:
|
|
84
|
-
justifyContent:
|
|
85
|
-
}, children: (item === null || item === void 0 ? void 0 : item.icon) && ((0, jsx_runtime_1.jsx)("img", { alt: "", src: item.icon, style: { width:
|
|
74
|
+
display: 'flex',
|
|
75
|
+
justifyContent: 'center',
|
|
76
|
+
}, children: (item === null || item === void 0 ? void 0 : item.icon) && ((0, jsx_runtime_1.jsx)("img", { alt: "", src: item.icon, style: { width: '20px', height: '20px' } })) }), (0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "inherit", children: item.title })] }, item.id)); }) })] }));
|
|
86
77
|
};
|
|
87
78
|
exports.default = react_1.default.memo(MenuNotification);
|