awing-library 2.1.26-beta → 2.1.26
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/Container.js +1 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/Recoils.js +1 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabInfomation.js +3 -9
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdList.js +4 -4
- package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/component.js +2 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/index.d.ts +3 -1
- package/lib/ACM-AXN/Campaign/CreateOrEdit/index.js +8 -4
- package/lib/ACM-AXN/Campaign/Types.d.ts +8 -0
- package/lib/ACM-AXN/Campaign/Utils.js +1 -1
- package/lib/ACM-AXN/Campaign/index.js +2 -1
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.d.ts +2 -2
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.js +44 -42
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/GroupPanel.js +6 -0
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.d.ts +2 -2
- package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.js +2 -2
- package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.d.ts +1 -1
- package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.js +4 -2
- package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/component.js +76 -7
- package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.js +74 -30
- package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.d.ts +1 -1
- package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.js +38 -29
- package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.d.ts +4 -0
- package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.js +58 -0
- package/lib/ACM-AXN/CampaignSchedule/Enum.d.ts +14 -2
- package/lib/ACM-AXN/CampaignSchedule/Enum.js +12 -0
- package/lib/ACM-AXN/CampaignSchedule/component.d.ts +2 -2
- package/lib/ACM-AXN/CampaignSchedule/component.js +44 -15
- package/lib/ACM-AXN/CampaignSchedule/container.d.ts +1 -1
- package/lib/ACM-AXN/CampaignSchedule/container.js +45 -46
- package/lib/ACM-AXN/CampaignSchedule/interface.d.ts +18 -2
- package/lib/ACM-AXN/Directory/DomainDirectory/DomainDirectory.test.js +1 -0
- package/lib/ACM-AXN/Directory/DomainDirectory/FolderDetail.test.js +1 -0
- package/lib/ACM-AXN/Directory/MenuDirectory/MenuDirectory.test.js +1 -0
- package/lib/ACM-AXN/Directory/SystemDirectory/SystemDirectory.test.js +1 -0
- package/lib/ACM-AXN/Directory/components/CreateOrEditFolder.test.js +1 -0
- package/lib/ACM-AXN/Directory/components/Permission/AddAuthen.test.js +2 -0
- package/lib/ACM-AXN/Directory/components/Permission/CreateOrEditPermission.test.js +2 -0
- package/lib/ACM-AXN/Directory/components/Permission/Management.js +7 -5
- package/lib/ACM-AXN/Directory/components/Permission/ManagementPermission.test.js +3 -0
- package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.js +9 -7
- package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.test.js +2 -0
- package/lib/ACM-AXN/DomainPreview/PreviewButton.js +57 -34
- package/lib/ACM-AXN/GroupUser/Container.js +1 -1
- package/lib/ACM-AXN/GroupUser/CreateOrEdit.js +25 -10
- package/lib/ACM-AXN/GroupUser/User/UserComponent.d.ts +2 -1
- package/lib/ACM-AXN/GroupUser/User/UserComponent.js +10 -4
- package/lib/ACM-AXN/Notifications/Constant.d.ts +146 -0
- package/lib/ACM-AXN/Notifications/Constant.js +136 -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.d.ts +3 -3
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/ButtonTabs.js +31 -30
- 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 +3 -5
- package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.js +18 -17
- 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 +11 -0
- package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.js +291 -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 +38 -35
- 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 +48 -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 +5 -2
- package/lib/ACM-AXN/Notifications/NotificationDetail/index.js +119 -102
- 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 +84 -0
- package/lib/ACM-AXN/Notifications/Types.js +13 -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 +5 -4
- package/lib/ACM-AXN/Page/CreateOrEdit/Components/useListPageView.js +9 -4
- package/lib/ACM-AXN/Page/CreateOrEdit/DrawerAction.js +6 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.d.ts +2 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.js +14 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/TabFile/FileUtils.d.ts +3 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/TabFile/FileUtils.js +1 -6
- package/lib/ACM-AXN/Page/CreateOrEdit/TabFile/index.d.ts +7 -0
- package/lib/ACM-AXN/Page/CreateOrEdit/TabFile/index.js +13 -15
- package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewContent.js +55 -10
- package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewInfo.d.ts +3 -2
- package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewInfo.js +1 -0
- package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/index.js +2 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/index.test.js +2 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/Utils.d.ts +4 -4
- package/lib/ACM-AXN/Page/CreateOrEdit/Utils.js +19 -8
- package/lib/ACM-AXN/Page/Types.d.ts +11 -37
- package/lib/ACM-AXN/Page/enums.d.ts +6 -0
- package/lib/ACM-AXN/Page/enums.js +8 -1
- package/lib/ACM-AXN/Page/index.js +2 -1
- package/lib/ACM-AXN/PlaceFilter/DataTable/container.js +1 -2
- package/lib/ACM-AXN/PlaceFilter/Input/container.js +12 -2
- package/lib/ACM-AXN/PlaceFilter/common.d.ts +1 -0
- package/lib/ACM-AXN/PlaceFilter/common.js +27 -1
- package/lib/ACM-AXN/PlaceGroup/Container.js +1 -1
- package/lib/ACM-AXN/PlaceGroup/ContentCreateOrEdit.d.ts +0 -7
- package/lib/ACM-AXN/PlaceGroup/ContentCreateOrEdit.js +0 -135
- package/lib/ACM-AXN/PlaceGroup/ContentCreateOrEdit.test.js +2 -2
- package/lib/ACM-AXN/PlaceGroup/Context.d.ts +1 -1
- package/lib/ACM-AXN/PlaceGroup/CreateOrEdit.js +103 -3
- package/lib/ACM-AXN/Statistics/ControlPanel.js +24 -33
- package/lib/ACM-AXN/Statistics/interface.d.ts +2 -2
- package/lib/ACM-AXN/StatisticsByProvince/container.d.ts +1 -1
- package/lib/ACM-AXN/StatisticsByProvince/container.js +2 -2
- package/lib/ACM-AXN/TaskScheduler/Components/CornJobInput.js +1 -2
- package/lib/ACM-AXN/TaskScheduler/Components/TriggerInput.js +4 -2
- package/lib/ACM-AXN/TaskScheduler/Constant.d.ts +0 -107
- package/lib/ACM-AXN/TaskScheduler/Constant.js +1 -105
- package/lib/ACM-AXN/TaskScheduler/Container.js +1 -1
- package/lib/ACM-AXN/TaskScheduler/CreateOrEdit.js +6 -8
- package/lib/ACM-AXN/TaskScheduler/Utils.js +6 -1
- package/lib/ACM-AXN/Template/Constants.d.ts +0 -0
- package/lib/ACM-AXN/Template/Constants.js +1 -0
- package/lib/ACM-AXN/Template/Container.d.ts +2 -0
- package/lib/ACM-AXN/Template/Container.js +74 -0
- package/lib/ACM-AXN/Template/Container.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/Container.test.js +259 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/CreateOrEdit.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/CreateOrEdit.test.js +370 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Infomation.d.ts +9 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Infomation.js +78 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Infomation.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Infomation.test.js +150 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Recoils.d.ts +6 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Recoils.js +79 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Script.d.ts +3 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Script.js +58 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Script.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Script.test.js +162 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Parameter.d.ts +20 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Parameter.js +283 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Parameter.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Parameter.test.js +220 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Utils.d.ts +25 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/Utils.js +138 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/index.d.ts +3 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/Template/index.js +50 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/index.d.ts +3 -0
- package/lib/ACM-AXN/Template/CreateOrEdit/index.js +215 -0
- package/lib/ACM-AXN/Template/Hooks.d.ts +5 -0
- package/lib/ACM-AXN/Template/Hooks.js +13 -0
- package/lib/ACM-AXN/Template/Import.d.ts +2 -0
- package/lib/ACM-AXN/Template/Import.js +123 -0
- package/lib/ACM-AXN/Template/Import.test.d.ts +1 -0
- package/lib/ACM-AXN/Template/Import.test.js +188 -0
- package/lib/ACM-AXN/Template/Types.d.ts +84 -0
- package/lib/ACM-AXN/Template/Types.js +2 -0
- package/lib/ACM-AXN/Template/UploadButton.d.ts +2 -0
- package/lib/ACM-AXN/Template/UploadButton.js +14 -0
- package/lib/ACM-AXN/Template/index.d.ts +5 -0
- package/lib/ACM-AXN/Template/index.js +44 -0
- package/lib/ACM-AXN/TransactionLog/Container.js +7 -5
- package/lib/ACM-AXN/TransactionLog/Detail.js +3 -1
- package/lib/ACM-AXN/TransactionLog/Types.d.ts +1 -107
- package/lib/ACM-AXN/TransactionLog/Types.js +1 -109
- package/lib/ACM-AXN/TransactionLog/Utils.d.ts +0 -103
- package/lib/ACM-AXN/TransactionLog/Utils.js +1 -104
- package/lib/ACM-AXN/User/Container.js +1 -1
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Event.d.ts +12 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Event.js +69 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Event.test.d.ts +1 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Event.test.js +84 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/BasicField/index.js +1 -1
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/ObjectField.d.ts +2 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/ObjectField.js +19 -3
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Utils.d.ts +5 -0
- package/lib/ACM-AXN/ViewTemplate/TemplateField/Utils.js +14 -0
- package/lib/ACM-AXN/ViewTemplate/container.d.ts +1 -1
- package/lib/ACM-AXN/ViewTemplate/container.js +14 -2
- package/lib/ACM-AXN/ViewTemplate/index.d.ts +2 -1
- package/lib/ACM-AXN/ViewTemplate/interface.d.ts +3 -2
- package/lib/AWING/AdvancedSearch/component.js +1 -1
- package/lib/AWING/AdvancedSearch/interface.d.ts +1 -0
- package/lib/AWING/BasicDataForm/index.js +3 -1
- package/lib/AWING/BasicDataForm/interface.d.ts +2 -2
- package/lib/AWING/ButtonDateRangePicker/ButtonDateRangePicker.js +2 -2
- package/lib/AWING/ButtonDateRangePicker/interface.d.ts +1 -0
- package/lib/AWING/ButtonSelect/index.js +2 -2
- package/lib/AWING/Chart/BarLineComponent.d.ts +8 -5
- package/lib/AWING/Chart/BarLineComponent.js +34 -28
- package/lib/AWING/Chart/PieComponent.d.ts +8 -7
- package/lib/AWING/Chart/PieComponent.js +1 -2
- package/lib/AWING/Chart/Styles.d.ts +6 -2
- package/lib/AWING/Chart/Styles.js +6 -2
- package/lib/AWING/Chart/index.d.ts +3 -0
- package/lib/AWING/Chart/index.js +10 -0
- package/lib/AWING/DataForm/DataInput.js +19 -10
- package/lib/AWING/DataForm/interface.d.ts +8 -4
- package/lib/AWING/DataGrid/index.js +17 -5
- package/lib/AWING/DataGrid/interface.d.ts +1 -1
- package/lib/AWING/DateRangePicker/component.js +101 -132
- package/lib/AWING/DateRangePicker/configDate.d.ts +8 -0
- package/lib/AWING/DateRangePicker/configDate.js +71 -0
- package/lib/AWING/DateRangePicker/interface.d.ts +1 -0
- package/lib/AWING/Directory/CreateDirectory.d.ts +3 -0
- package/lib/AWING/Directory/CreateDirectory.js +27 -10
- package/lib/AWING/HOC/Wrapper.d.ts +6 -0
- package/lib/AWING/HOC/Wrapper.js +10 -0
- package/lib/AWING/LogicExpression/script.js +0 -1
- package/lib/AWING/PageManagement/PageManagement.js +1 -1
- package/lib/AWING/index.d.ts +1 -0
- package/lib/AWING/index.js +1 -0
- package/lib/AWING/ultis/validation.d.ts +1 -1
- package/lib/AWING/ultis/validation.js +6 -11
- package/lib/Commons/Components/ClassicBaseDrawer.d.ts +1 -0
- package/lib/Commons/Components/ClassicBaseDrawer.js +7 -3
- package/lib/Commons/Components/ClassicDrawer.js +1 -1
- package/lib/Context/index.js +1 -0
- package/lib/Context/interface.d.ts +1 -0
- package/lib/Utils/Helpers.d.ts +2 -1
- package/lib/Utils/Helpers.js +18 -9
- package/lib/translate/en/translation.json +102 -3
- package/lib/translate/vi/translation.json +102 -3
- package/package.json +3 -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/CreateOrEdit/TabFile/index.test.d.ts +0 -1
- package/lib/ACM-AXN/Page/CreateOrEdit/TabFile/index.test.js +0 -326
- package/lib/ACM-AXN/Page/ViewDomain/index.d.ts +0 -9
- package/lib/ACM-AXN/Page/ViewDomain/index.js +0 -148
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
*
|
|
5
5
|
**/
|
|
6
6
|
import React from 'react';
|
|
7
|
+
import { NotificationMessage } from '../../../../../ACM-AXN/Notifications/Types';
|
|
7
8
|
interface PropsNotificationContent {
|
|
8
9
|
status?: boolean;
|
|
9
|
-
|
|
10
|
-
time: number | string;
|
|
10
|
+
notificationMessage: NotificationMessage;
|
|
11
11
|
}
|
|
12
12
|
declare const _default: React.MemoExoticComponent<(props: PropsNotificationContent) => JSX.Element>;
|
|
13
13
|
export default _default;
|
|
@@ -11,49 +11,52 @@ var jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
11
11
|
**/
|
|
12
12
|
var react_1 = __importDefault(require("react"));
|
|
13
13
|
var moment_1 = __importDefault(require("moment"));
|
|
14
|
+
var react_i18next_1 = require("react-i18next");
|
|
14
15
|
var material_1 = require("@mui/material");
|
|
16
|
+
var Message_1 = require("./Message");
|
|
17
|
+
var Context_1 = require("../../../../../Context");
|
|
15
18
|
var NotificationContent = function (props) {
|
|
16
|
-
var
|
|
17
|
-
var
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
"YYYY-MM-DD HH:mm",
|
|
21
|
-
"DD-MM-YYYY HH:mm",
|
|
22
|
-
"DD/MM/YYYY HH:mm",
|
|
23
|
-
"MM/DD/YYYY HH:mm",
|
|
24
|
-
"DD/MM/YYYY"
|
|
25
|
-
]);
|
|
26
|
-
if (timestampMoment.isValid()) {
|
|
27
|
-
return timestampMoment.format("DD/MM/YYYY HH:mm");
|
|
28
|
-
}
|
|
29
|
-
else {
|
|
30
|
-
return time;
|
|
31
|
-
}
|
|
32
|
-
};
|
|
19
|
+
var _a, _b;
|
|
20
|
+
var notificationMessage = props.notificationMessage, _c = props.status, status = _c === void 0 ? false : _c;
|
|
21
|
+
var transactionType = (0, Context_1.useAwing)().transactionType;
|
|
22
|
+
var t = (0, react_i18next_1.useTranslation)().t;
|
|
33
23
|
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { sx: {
|
|
34
|
-
display:
|
|
35
|
-
flexDirection:
|
|
36
|
-
justifyContent:
|
|
37
|
-
marginLeft:
|
|
38
|
-
}, children: [
|
|
24
|
+
display: 'flex',
|
|
25
|
+
flexDirection: 'column',
|
|
26
|
+
justifyContent: 'center',
|
|
27
|
+
marginLeft: '8px',
|
|
28
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", sx: [
|
|
39
29
|
{
|
|
40
|
-
overflow:
|
|
41
|
-
textOverflow:
|
|
42
|
-
display:
|
|
43
|
-
WebkitBoxOrient:
|
|
44
|
-
WebkitLineClamp:
|
|
45
|
-
margin:
|
|
30
|
+
overflow: 'hidden',
|
|
31
|
+
textOverflow: 'ellipsis',
|
|
32
|
+
display: '-webkit-box',
|
|
33
|
+
WebkitBoxOrient: 'vertical',
|
|
34
|
+
WebkitLineClamp: 5,
|
|
35
|
+
margin: '0 0 2px 0',
|
|
46
36
|
lineHeight: 1.2,
|
|
47
|
-
|
|
37
|
+
fontSize: '14px',
|
|
38
|
+
fontWeight: 400,
|
|
39
|
+
justifyContent: 'space-between',
|
|
48
40
|
},
|
|
49
41
|
{
|
|
50
|
-
|
|
42
|
+
'& h1, h2, h3, h4, h5, h6, p, span, b, strong, small, em, i, big': {
|
|
51
43
|
marginTop: 0,
|
|
52
44
|
marginBottom: 0,
|
|
53
|
-
fontSize:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
45
|
+
fontSize: '14px',
|
|
46
|
+
fontWeight: 400,
|
|
47
|
+
textAlign: 'justify',
|
|
48
|
+
},
|
|
49
|
+
'& a': {
|
|
50
|
+
color: '#1a0dab',
|
|
51
|
+
textDecoration: 'none',
|
|
52
|
+
fontSize: '14px',
|
|
53
|
+
fontWeight: 400,
|
|
54
|
+
textAlign: 'justify',
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
], children: (0, Message_1.getFullDescription)(notificationMessage === null || notificationMessage === void 0 ? void 0 : notificationMessage.sagaTransactionType, t, notificationMessage.fields, transactionType).title }), ((_a = notificationMessage === null || notificationMessage === void 0 ? void 0 : notificationMessage.createdDate) === null || _a === void 0 ? void 0 : _a.seconds) && ((0, jsx_runtime_1.jsx)(material_1.Typography, { variant: "caption", sx: { color: status ? '#ED1D25' : 'inherit' }, children: moment_1.default
|
|
58
|
+
.unix(Number((_b = notificationMessage === null || notificationMessage === void 0 ? void 0 : notificationMessage.createdDate) === null || _b === void 0 ? void 0 : _b.seconds))
|
|
59
|
+
.locale(t('Common.lg'))
|
|
60
|
+
.format('MM/DD/YYYY hh:mm A') }))] }));
|
|
58
61
|
};
|
|
59
62
|
exports.default = react_1.default.memo(NotificationContent);
|
|
@@ -1,74 +1,66 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
time: "",
|
|
68
|
-
status: false,
|
|
69
|
-
};
|
|
70
|
-
// Kiểm tra xem không có phần tử nào chứa nội dung hoặc thời gian
|
|
71
|
-
var queryByText = (0, react_1.render)((0, jsx_runtime_1.jsx)(NotificationContent_1.default, __assign({}, props))).queryByText;
|
|
72
|
-
expect(queryByText(/./)).toBeNull();
|
|
73
|
-
});
|
|
74
|
-
});
|
|
2
|
+
// /**
|
|
3
|
+
// *
|
|
4
|
+
// * @author dauquan1108@gmail.com on 12/4/2023.
|
|
5
|
+
// *
|
|
6
|
+
// **/
|
|
7
|
+
// import React from "react";
|
|
8
|
+
// import moment from "moment";
|
|
9
|
+
// import { render } from "@testing-library/react";
|
|
10
|
+
// import "@testing-library/jest-dom";
|
|
11
|
+
// import NotificationContent from "./NotificationContent";
|
|
12
|
+
// describe("NotificationContent component", () => {
|
|
13
|
+
// it("Hiển thị đầy đủ với dữ liệu props đầu vào của component NotificationContent 'content = string, time = number | string'.", () => {
|
|
14
|
+
// const props = {
|
|
15
|
+
// content:
|
|
16
|
+
// '<p>Chiến dịch đã được cập nhật.</p>',
|
|
17
|
+
// time: "2023-12-04 12:30",
|
|
18
|
+
// status: true,
|
|
19
|
+
// };
|
|
20
|
+
// const { getByText } = render(<NotificationContent {...props} />);
|
|
21
|
+
// // Kiểm tra đoạn văn bản có tồn tại trong component hay không.
|
|
22
|
+
// const contentElement = getByText('Chiến dịch đã được cập nhật.');
|
|
23
|
+
// expect(contentElement).toBeInTheDocument();
|
|
24
|
+
// // Kiểm tra thời gian có được hiển thị đúng không.
|
|
25
|
+
// const formattedTime = moment(props.time).format("DD/MM/YYYY HH:mm");
|
|
26
|
+
// const timeElement = getByText(formattedTime);
|
|
27
|
+
// expect(timeElement).toBeInTheDocument();
|
|
28
|
+
// });
|
|
29
|
+
// it("Hiển thị nội dung và thời gian, khi thời gian không hợp lệ.", () => {
|
|
30
|
+
// const props = {
|
|
31
|
+
// content:
|
|
32
|
+
// '<p>Chiến dịch đã được cập nhật.</p>',
|
|
33
|
+
// time: "Thời gian không hợp lệ",
|
|
34
|
+
// status: false,
|
|
35
|
+
// };
|
|
36
|
+
// const { getByText } = render(<NotificationContent {...props} />);
|
|
37
|
+
// // Kiểm tra đoạn văn bản có tồn tại trong component hay không.
|
|
38
|
+
// const contentElement = getByText('Chiến dịch đã được cập nhật.');
|
|
39
|
+
// expect(contentElement).toBeInTheDocument();
|
|
40
|
+
// // Kiểm tra thời gian chưa đúng định dạng có được hiển thị thời gian không hợp lệ.
|
|
41
|
+
// const timeElement = getByText('Thời gian không hợp lệ');
|
|
42
|
+
// expect(timeElement).toBeInTheDocument();
|
|
43
|
+
// });
|
|
44
|
+
// it("Hiện thị thời gian đối với trường hợp nội dung bị trống.", () => {
|
|
45
|
+
// const props = {
|
|
46
|
+
// content: "",
|
|
47
|
+
// time: "2023-12-04 12:30",
|
|
48
|
+
// status: true,
|
|
49
|
+
// };
|
|
50
|
+
// const { getByText } = render(<NotificationContent {...props} />);
|
|
51
|
+
// // Kiểm tra thời gian có được hiển thị đúng không.
|
|
52
|
+
// const formattedTime = moment(props.time).format("DD/MM/YYYY HH:mm");
|
|
53
|
+
// const timeElement = getByText(formattedTime);
|
|
54
|
+
// expect(timeElement).toBeInTheDocument();
|
|
55
|
+
// });
|
|
56
|
+
// it("Hiện thị nội dung và thời gian đối với nội dung và thời gian bị trống.", () => {
|
|
57
|
+
// const props = {
|
|
58
|
+
// content: "",
|
|
59
|
+
// time: "",
|
|
60
|
+
// status: false,
|
|
61
|
+
// };
|
|
62
|
+
// // Kiểm tra xem không có phần tử nào chứa nội dung hoặc thời gian
|
|
63
|
+
// const { queryByText } = render(<NotificationContent {...props} />);
|
|
64
|
+
// expect(queryByText(/./)).toBeNull();
|
|
65
|
+
// });
|
|
66
|
+
// });
|
package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.d.ts
CHANGED
|
@@ -4,20 +4,13 @@
|
|
|
4
4
|
*
|
|
5
5
|
**/
|
|
6
6
|
/// <reference types="react" />
|
|
7
|
+
import { NotificationMessage, NotificationMessageStatus } from '../../../Types';
|
|
7
8
|
interface ValueItem {
|
|
8
|
-
id:
|
|
9
|
-
status:
|
|
9
|
+
id: number;
|
|
10
|
+
status: NotificationMessageStatus;
|
|
10
11
|
}
|
|
11
12
|
interface PropsNotificationItem {
|
|
12
|
-
|
|
13
|
-
id: string | number;
|
|
14
|
-
content: string;
|
|
15
|
-
url: string;
|
|
16
|
-
status: boolean;
|
|
17
|
-
userName: string;
|
|
18
|
-
avatarUrl: string;
|
|
19
|
-
time: number | string;
|
|
20
|
-
};
|
|
13
|
+
notificationMessage: NotificationMessage;
|
|
21
14
|
onUpdateStatus: (dataSent: ValueItem | string) => void;
|
|
22
15
|
}
|
|
23
16
|
declare const NotificationItem: (props: PropsNotificationItem) => JSX.Element;
|
package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.js
CHANGED
|
@@ -8,57 +8,69 @@ var react_i18next_1 = require("react-i18next");
|
|
|
8
8
|
var material_1 = require("@mui/material");
|
|
9
9
|
var NotificationAvatar_1 = __importDefault(require("./NotificationAvatar"));
|
|
10
10
|
var NotificationContent_1 = __importDefault(require("./NotificationContent"));
|
|
11
|
-
var notSeen_svg_1 = __importDefault(require("Assets/Images/notSeen.svg"));
|
|
12
|
-
var watched_svg_1 = __importDefault(require("Assets/Images/watched.svg"));
|
|
11
|
+
var notSeen_svg_1 = __importDefault(require("../../../../../Assets/Images/notSeen.svg"));
|
|
12
|
+
var watched_svg_1 = __importDefault(require("../../../../../Assets/Images/watched.svg"));
|
|
13
|
+
var Types_1 = require("../../../Types");
|
|
14
|
+
var Message_1 = require("./Message");
|
|
15
|
+
var Router_1 = require("../../../../../AWING/Router");
|
|
16
|
+
var Context_1 = require("../../../../../Context");
|
|
13
17
|
var NotificationItem = function (props) {
|
|
14
18
|
var t = (0, react_i18next_1.useTranslation)().t;
|
|
15
|
-
var
|
|
16
|
-
var
|
|
19
|
+
var transactionType = (0, Context_1.useAwing)().transactionType;
|
|
20
|
+
var navigate = (0, Router_1.useNavigate)();
|
|
21
|
+
var notificationMessage = props.notificationMessage, onUpdateStatus = props.onUpdateStatus;
|
|
22
|
+
var sagaTransactionType = notificationMessage.sagaTransactionType, fields = notificationMessage.fields, status = notificationMessage.status, id = notificationMessage.id;
|
|
17
23
|
var handleUpdateStatus = function (event) {
|
|
18
24
|
event.preventDefault();
|
|
19
25
|
event.stopPropagation();
|
|
20
26
|
onUpdateStatus({ id: id, status: status });
|
|
21
27
|
};
|
|
22
|
-
|
|
28
|
+
var handleClickNotification = function () {
|
|
29
|
+
navigate((0, Message_1.getFullDescription)(sagaTransactionType, t, fields, transactionType).url);
|
|
30
|
+
status === Types_1.NotificationMessageStatus.Unread &&
|
|
31
|
+
onUpdateStatus({ id: id, status: status });
|
|
32
|
+
};
|
|
33
|
+
var itemStatus = status === Types_1.NotificationMessageStatus.Unread;
|
|
34
|
+
return ((0, jsx_runtime_1.jsxs)(material_1.Box, { color: "inherit", onClick: handleClickNotification, sx: [
|
|
23
35
|
{
|
|
24
|
-
display:
|
|
25
|
-
flexDirection:
|
|
26
|
-
alignItems:
|
|
27
|
-
justifyContent:
|
|
28
|
-
padding:
|
|
29
|
-
borderRadius:
|
|
30
|
-
position:
|
|
31
|
-
|
|
36
|
+
display: 'flex',
|
|
37
|
+
flexDirection: 'row',
|
|
38
|
+
alignItems: 'center',
|
|
39
|
+
justifyContent: 'space-between',
|
|
40
|
+
padding: '8px',
|
|
41
|
+
borderRadius: '8px',
|
|
42
|
+
position: 'relative',
|
|
43
|
+
cursor: 'pointer',
|
|
32
44
|
},
|
|
33
45
|
{
|
|
34
|
-
|
|
35
|
-
backgroundColor:
|
|
36
|
-
|
|
37
|
-
display:
|
|
38
|
-
alignItems:
|
|
39
|
-
position:
|
|
40
|
-
right:
|
|
41
|
-
padding:
|
|
42
|
-
cursor:
|
|
43
|
-
borderRadius:
|
|
44
|
-
backgroundColor:
|
|
45
|
-
boxShadow:
|
|
46
|
+
'&:hover': {
|
|
47
|
+
backgroundColor: '#03030312',
|
|
48
|
+
'& .wrapBtnStatus': {
|
|
49
|
+
display: 'flex',
|
|
50
|
+
alignItems: 'center',
|
|
51
|
+
position: 'absolute',
|
|
52
|
+
right: '32px',
|
|
53
|
+
padding: '4px',
|
|
54
|
+
cursor: 'pointer',
|
|
55
|
+
borderRadius: '50%',
|
|
56
|
+
backgroundColor: '#EBEDF0',
|
|
57
|
+
boxShadow: 'rgba(14, 30, 37, 0.12) 0 2px 4px 0, rgba(14, 30, 37, 0.32) 0 2px 16px 0',
|
|
46
58
|
},
|
|
47
59
|
},
|
|
48
60
|
},
|
|
49
61
|
], children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { content: "div", sx: {
|
|
50
|
-
display:
|
|
51
|
-
flexDirection:
|
|
52
|
-
alignItems:
|
|
53
|
-
}, children: [(0, jsx_runtime_1.jsx)(NotificationAvatar_1.default, { url:
|
|
54
|
-
? t(
|
|
55
|
-
: t(
|
|
62
|
+
display: 'flex',
|
|
63
|
+
flexDirection: 'row',
|
|
64
|
+
alignItems: 'center',
|
|
65
|
+
}, children: [(0, jsx_runtime_1.jsx)(NotificationAvatar_1.default, { url: '', name: '' }), (0, jsx_runtime_1.jsx)(NotificationContent_1.default, { status: itemStatus, notificationMessage: notificationMessage })] }), (0, jsx_runtime_1.jsx)(material_1.Paper, { variant: "outlined", sx: { display: 'none' }, className: "wrapBtnStatus", onClick: handleUpdateStatus, title: itemStatus
|
|
66
|
+
? t('Notifications.TitleMarkRead')
|
|
67
|
+
: t('Notifications.TitleMarkUnread'), children: (0, jsx_runtime_1.jsx)("img", { src: (itemStatus
|
|
56
68
|
? notSeen_svg_1.default
|
|
57
|
-
: watched_svg_1.default), alt:
|
|
58
|
-
padding:
|
|
59
|
-
marginLeft:
|
|
60
|
-
borderRadius:
|
|
61
|
-
backgroundColor:
|
|
69
|
+
: watched_svg_1.default), alt: itemStatus ? 'iconNotSeen' : 'iconWatched', style: { width: '25px', height: '25px' } }) }), itemStatus && ((0, jsx_runtime_1.jsx)(material_1.Paper, { "data-testid": "iconStatus", variant: "outlined", sx: {
|
|
70
|
+
padding: '5px',
|
|
71
|
+
marginLeft: '8px',
|
|
72
|
+
borderRadius: '50%',
|
|
73
|
+
backgroundColor: '#ed1d25',
|
|
62
74
|
} }))] }));
|
|
63
75
|
};
|
|
64
76
|
exports.default = NotificationItem;
|
package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.js
CHANGED
|
@@ -1,51 +1,57 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
//
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
2
|
+
// /**
|
|
3
|
+
// *
|
|
4
|
+
// * @author dauquan1108@gmail.com on 12/06/2023.
|
|
5
|
+
// *
|
|
6
|
+
// **/
|
|
7
|
+
// import React from "react";
|
|
8
|
+
// import moment from "moment";
|
|
9
|
+
// import "@testing-library/jest-dom";
|
|
10
|
+
// import { render, fireEvent } from "@testing-library/react";
|
|
11
|
+
// // Component
|
|
12
|
+
// import NotificationItem from ".";
|
|
13
|
+
// const mockData = {
|
|
14
|
+
// id: 1,
|
|
15
|
+
// content: "<p>Chiến dịch đã được cập nhật.</p>",
|
|
16
|
+
// url: "https://www.pinterest.com/pin/1122170432140679998/",
|
|
17
|
+
// status: false,
|
|
18
|
+
// userName: "Đậu Xuân Quân",
|
|
19
|
+
// avatarUrl:
|
|
20
|
+
// "https://i.pinimg.com/564x/9e/a4/73/9ea4735b805ef4a3b390ca4c6c5e320e.jpg",
|
|
21
|
+
// time: "2023-12-04 12:30",
|
|
22
|
+
// };
|
|
23
|
+
// describe("NotificationItem Component", () => {
|
|
24
|
+
// it("Hiện thị đúng thông tin từ props truyền vào.", () => {
|
|
25
|
+
// const { getByText, getByAltText, queryByTestId } = render(
|
|
26
|
+
// <NotificationItem data={mockData} onUpdateStatus={() => null} />
|
|
27
|
+
// );
|
|
28
|
+
// // content
|
|
29
|
+
// const contentElement = getByText("Chiến dịch đã được cập nhật.");
|
|
30
|
+
// expect(contentElement).toBeInTheDocument();
|
|
31
|
+
// // avatarUrl
|
|
32
|
+
// const avatar = getByAltText(mockData.userName);
|
|
33
|
+
// expect((avatar as HTMLImageElement).src).toBe(
|
|
34
|
+
// "https://i.pinimg.com/564x/9e/a4/73/9ea4735b805ef4a3b390ca4c6c5e320e.jpg"
|
|
35
|
+
// );
|
|
36
|
+
// // time
|
|
37
|
+
// const formattedTime = moment(mockData.time).format("DD/MM/YYYY HH:mm");
|
|
38
|
+
// const timeElement = getByText(formattedTime);
|
|
39
|
+
// expect(timeElement).toBeInTheDocument();
|
|
40
|
+
// // status
|
|
41
|
+
// const iconStatus = queryByTestId('iconStatus');
|
|
42
|
+
// expect(iconStatus).not.toBeInTheDocument();
|
|
43
|
+
// });
|
|
44
|
+
// it("Gọi hàm onUpdateStatus khi click vào icon con mắt", () => {
|
|
45
|
+
// const mockUpdateStatus = jest.fn();
|
|
46
|
+
// const { getByTitle } = render(<NotificationItem data={mockData} onUpdateStatus={mockUpdateStatus} />);
|
|
47
|
+
// const statusButton = getByTitle("Notifications.TitleMarkUnread");
|
|
48
|
+
// fireEvent.click(statusButton);
|
|
49
|
+
// expect(mockUpdateStatus).toHaveBeenCalledWith({ id: mockData.id, status: mockData.status });
|
|
50
|
+
// });
|
|
51
|
+
// it("Hiển thị icon 'Đã đọc' và 'Chưa đọc' thông báo theo 'status itemNotifications'.", () => {
|
|
52
|
+
// const { getByAltText } = render(<NotificationItem data={mockData} onUpdateStatus={() => {
|
|
53
|
+
// }} />);
|
|
54
|
+
// const iconElement = getByAltText(mockData.status ? 'iconNotSeen' : "iconWatched");
|
|
55
|
+
// expect(iconElement).toBeInTheDocument();
|
|
56
|
+
// });
|
|
57
|
+
// });
|
package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationLoading.js
CHANGED
|
@@ -13,44 +13,44 @@ var react_1 = __importDefault(require("react"));
|
|
|
13
13
|
var material_1 = require("@mui/material");
|
|
14
14
|
var NotificationLoading = function () {
|
|
15
15
|
return ((0, jsx_runtime_1.jsxs)(react_1.default.Fragment, { children: [(0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", sx: {
|
|
16
|
-
display:
|
|
17
|
-
flexDirection:
|
|
18
|
-
padding:
|
|
19
|
-
borderRadius:
|
|
16
|
+
display: 'flex',
|
|
17
|
+
flexDirection: 'row',
|
|
18
|
+
padding: '8px',
|
|
19
|
+
borderRadius: '8px',
|
|
20
20
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { sx: {
|
|
21
|
-
width:
|
|
22
|
-
height:
|
|
21
|
+
width: '56px',
|
|
22
|
+
height: '56px',
|
|
23
23
|
} }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", ml: 1, sx: {
|
|
24
24
|
flex: 1,
|
|
25
|
-
display:
|
|
26
|
-
flexDirection:
|
|
27
|
-
justifyContent:
|
|
28
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "100%", height: "20px", sx: { borderRadius:
|
|
29
|
-
display:
|
|
30
|
-
flexDirection:
|
|
31
|
-
padding:
|
|
32
|
-
borderRadius:
|
|
25
|
+
display: 'flex',
|
|
26
|
+
flexDirection: 'column',
|
|
27
|
+
justifyContent: 'space-around',
|
|
28
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "100%", height: "20px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "40%", height: "10px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", sx: {
|
|
29
|
+
display: 'flex',
|
|
30
|
+
flexDirection: 'row',
|
|
31
|
+
padding: '8px',
|
|
32
|
+
borderRadius: '8px',
|
|
33
33
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { sx: {
|
|
34
|
-
width:
|
|
35
|
-
height:
|
|
34
|
+
width: '56px',
|
|
35
|
+
height: '56px',
|
|
36
36
|
} }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", ml: 1, sx: {
|
|
37
37
|
flex: 1,
|
|
38
|
-
display:
|
|
39
|
-
flexDirection:
|
|
40
|
-
justifyContent:
|
|
41
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "60%", height: "20px", sx: { borderRadius:
|
|
42
|
-
display:
|
|
43
|
-
flexDirection:
|
|
44
|
-
padding:
|
|
45
|
-
borderRadius:
|
|
38
|
+
display: 'flex',
|
|
39
|
+
flexDirection: 'column',
|
|
40
|
+
justifyContent: 'space-around',
|
|
41
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "60%", height: "20px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "30%", height: "10px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) })] })] }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", sx: {
|
|
42
|
+
display: 'flex',
|
|
43
|
+
flexDirection: 'row',
|
|
44
|
+
padding: '8px',
|
|
45
|
+
borderRadius: '8px',
|
|
46
46
|
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "circular", children: (0, jsx_runtime_1.jsx)(material_1.Avatar, { sx: {
|
|
47
|
-
width:
|
|
48
|
-
height:
|
|
47
|
+
width: '56px',
|
|
48
|
+
height: '56px',
|
|
49
49
|
} }) }), (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", ml: 1, sx: {
|
|
50
50
|
flex: 1,
|
|
51
|
-
display:
|
|
52
|
-
flexDirection:
|
|
53
|
-
justifyContent:
|
|
54
|
-
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "80%", height: "20px", sx: { borderRadius:
|
|
51
|
+
display: 'flex',
|
|
52
|
+
flexDirection: 'column',
|
|
53
|
+
justifyContent: 'space-around',
|
|
54
|
+
}, children: [(0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "80%", height: "20px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) }), (0, jsx_runtime_1.jsx)(material_1.Skeleton, { variant: "rectangular", width: "30%", height: "10px", sx: { borderRadius: '8px' }, children: (0, jsx_runtime_1.jsx)(material_1.Typography, { children: "." }) })] })] })] }));
|
|
55
55
|
};
|
|
56
56
|
exports.default = NotificationLoading;
|