awing-library 2.1.13-beta → 2.1.13

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.
Files changed (197) hide show
  1. package/README.md +4 -19
  2. package/lib/ACM-AXN/Campaign/Container.js +6 -7
  3. package/lib/ACM-AXN/Campaign/Container.test.js +1 -1
  4. package/lib/ACM-AXN/Campaign/CreateOrEdit/Recoils.d.ts +3 -1
  5. package/lib/ACM-AXN/Campaign/CreateOrEdit/Recoils.js +22 -21
  6. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabInfomation.d.ts +1 -1
  7. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabInfomation.js +79 -24
  8. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdDetail.test.js +1 -1
  9. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdList.js +50 -6
  10. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdRow.d.ts +5 -0
  11. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AdRow.js +6 -18
  12. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/AddOrEditRule.js +7 -12
  13. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/container.d.ts +1 -0
  14. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/AddOrEditRule/RuleForm/RetargetMacAddress/container.js +4 -12
  15. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/Advanced.js +16 -1
  16. package/lib/ACM-AXN/Campaign/CreateOrEdit/TabSubCampaign/SubCampaignList.test.js +1 -1
  17. package/lib/ACM-AXN/Campaign/CreateOrEdit/index.js +19 -3
  18. package/lib/ACM-AXN/Campaign/Types.d.ts +10 -0
  19. package/lib/ACM-AXN/Campaign/Utils.d.ts +8 -0
  20. package/lib/ACM-AXN/Campaign/Utils.js +22 -18
  21. package/lib/ACM-AXN/Campaign/index.js +3 -2
  22. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.d.ts +2 -2
  23. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/Filter.js +44 -42
  24. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/GroupPanel.d.ts +1 -1
  25. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/GroupPanel.js +38 -30
  26. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.d.ts +2 -2
  27. package/lib/ACM-AXN/CampaignSchedule/Components/ControlPanel/index.js +2 -2
  28. package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.d.ts +1 -1
  29. package/lib/ACM-AXN/CampaignSchedule/Components/EnhancedPagination/index.js +4 -2
  30. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/component.js +33 -3
  31. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.d.ts +1 -1
  32. package/lib/ACM-AXN/CampaignSchedule/Components/RowAdvance/container.js +81 -34
  33. package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.d.ts +1 -1
  34. package/lib/ACM-AXN/CampaignSchedule/Components/TableHeaderDragable.js +38 -29
  35. package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.d.ts +4 -0
  36. package/lib/ACM-AXN/CampaignSchedule/DataConfigAXN.js +58 -0
  37. package/lib/ACM-AXN/CampaignSchedule/Enum.d.ts +14 -2
  38. package/lib/ACM-AXN/CampaignSchedule/Enum.js +12 -0
  39. package/lib/ACM-AXN/CampaignSchedule/component.js +6 -5
  40. package/lib/ACM-AXN/CampaignSchedule/container.d.ts +1 -1
  41. package/lib/ACM-AXN/CampaignSchedule/container.js +100 -99
  42. package/lib/ACM-AXN/CampaignSchedule/interface.d.ts +16 -3
  43. package/lib/ACM-AXN/Directory/MenuDirectory/index.js +7 -21
  44. package/lib/ACM-AXN/Directory/SystemDirectory/index.js +6 -5
  45. package/lib/ACM-AXN/Directory/components/Permission/Management.js +7 -5
  46. package/lib/ACM-AXN/Directory/components/Permission/MenuPermissions/MenuPermissionManagement.js +9 -7
  47. package/lib/ACM-AXN/Directory/function.d.ts +1 -0
  48. package/lib/ACM-AXN/Directory/function.js +15 -1
  49. package/lib/ACM-AXN/DomainPreview/PreviewButton.d.ts +15 -0
  50. package/lib/ACM-AXN/DomainPreview/PreviewButton.js +188 -0
  51. package/lib/ACM-AXN/DomainPreview/index.d.ts +7 -0
  52. package/lib/ACM-AXN/DomainPreview/index.js +10 -0
  53. package/lib/ACM-AXN/GroupUser/Constants.d.ts +7 -0
  54. package/lib/ACM-AXN/GroupUser/Constants.js +10 -0
  55. package/lib/ACM-AXN/GroupUser/Container.d.ts +2 -0
  56. package/lib/ACM-AXN/GroupUser/Container.js +55 -0
  57. package/lib/ACM-AXN/GroupUser/Container.test.d.ts +1 -0
  58. package/lib/ACM-AXN/GroupUser/Container.test.js +210 -0
  59. package/lib/ACM-AXN/GroupUser/CreateOrEdit.d.ts +3 -0
  60. package/lib/ACM-AXN/GroupUser/CreateOrEdit.js +91 -0
  61. package/lib/ACM-AXN/GroupUser/CreateOrEdit.test.d.ts +1 -0
  62. package/lib/ACM-AXN/GroupUser/CreateOrEdit.test.js +235 -0
  63. package/lib/ACM-AXN/GroupUser/Hooks.d.ts +5 -0
  64. package/lib/ACM-AXN/GroupUser/Hooks.js +13 -0
  65. package/lib/ACM-AXN/GroupUser/Types.d.ts +31 -0
  66. package/lib/ACM-AXN/GroupUser/Types.js +2 -0
  67. package/lib/ACM-AXN/GroupUser/User/SearchUser.d.ts +9 -0
  68. package/lib/ACM-AXN/GroupUser/User/SearchUser.js +63 -0
  69. package/lib/ACM-AXN/GroupUser/User/SearchUser.test.d.ts +1 -0
  70. package/lib/ACM-AXN/GroupUser/User/SearchUser.test.js +140 -0
  71. package/lib/ACM-AXN/GroupUser/User/UserComponent.d.ts +8 -0
  72. package/lib/ACM-AXN/GroupUser/User/UserComponent.js +77 -0
  73. package/lib/ACM-AXN/GroupUser/User/UserComponent.test.d.ts +1 -0
  74. package/lib/ACM-AXN/GroupUser/User/UserComponent.test.js +128 -0
  75. package/lib/ACM-AXN/GroupUser/index.d.ts +4 -0
  76. package/lib/ACM-AXN/GroupUser/index.js +27 -0
  77. package/lib/ACM-AXN/Notifications/Constant.d.ts +146 -0
  78. package/lib/ACM-AXN/Notifications/Constant.js +136 -0
  79. package/lib/ACM-AXN/Notifications/Context.d.ts +8 -0
  80. package/lib/ACM-AXN/Notifications/Context.js +10 -0
  81. package/lib/ACM-AXN/Notifications/Hooks.d.ts +7 -0
  82. package/lib/ACM-AXN/Notifications/Hooks.js +17 -0
  83. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/ButtonTabs.d.ts +3 -3
  84. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/ButtonTabs.js +31 -30
  85. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.d.ts +1 -1
  86. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/MenuNotification.js +30 -39
  87. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.d.ts +3 -5
  88. package/lib/ACM-AXN/Notifications/NotificationDetail/HeaderInfo/index.js +18 -17
  89. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.d.ts +1 -1
  90. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.js +15 -15
  91. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.d.ts +0 -6
  92. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationEmpty.test.js +29 -28
  93. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.d.ts +10 -0
  94. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/Message.js +393 -0
  95. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.d.ts +1 -1
  96. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.js +3 -3
  97. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.d.ts +0 -6
  98. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationAvatar.test.js +38 -48
  99. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.d.ts +2 -2
  100. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.js +36 -35
  101. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.d.ts +0 -6
  102. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/NotificationContent.test.js +65 -73
  103. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.d.ts +4 -11
  104. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.js +46 -36
  105. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.d.ts +0 -6
  106. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationItem/index.test.js +56 -50
  107. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/NotificationLoading.js +30 -30
  108. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.d.ts +3 -15
  109. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.js +35 -4
  110. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.d.ts +0 -6
  111. package/lib/ACM-AXN/Notifications/NotificationDetail/NotificationList/index.test.js +88 -83
  112. package/lib/ACM-AXN/Notifications/NotificationDetail/index.d.ts +5 -2
  113. package/lib/ACM-AXN/Notifications/NotificationDetail/index.js +115 -101
  114. package/lib/ACM-AXN/Notifications/{NotificationPopover.d.ts → NotificationPopover/Container.d.ts} +2 -2
  115. package/lib/ACM-AXN/Notifications/NotificationPopover/Container.js +149 -0
  116. package/lib/ACM-AXN/Notifications/{NotificationPopover.test.d.ts → NotificationPopover/Container.test.d.ts} +1 -1
  117. package/lib/ACM-AXN/Notifications/{NotificationPopover.test.js → NotificationPopover/Container.test.js} +5 -5
  118. package/lib/ACM-AXN/Notifications/NotificationPopover/index.d.ts +8 -0
  119. package/lib/ACM-AXN/Notifications/NotificationPopover/index.js +13 -0
  120. package/lib/ACM-AXN/Notifications/NotificationScreen.d.ts +1 -1
  121. package/lib/ACM-AXN/Notifications/NotificationScreen.js +4 -4
  122. package/lib/ACM-AXN/Notifications/Types.d.ts +242 -0
  123. package/lib/ACM-AXN/Notifications/Types.js +290 -0
  124. package/lib/ACM-AXN/Notifications/index.d.ts +2 -2
  125. package/lib/ACM-AXN/Notifications/index.js +5 -5
  126. package/lib/ACM-AXN/Page/Container.js +101 -63
  127. package/lib/ACM-AXN/Page/CreateOrEdit/DrawerAction.js +22 -5
  128. package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.d.ts +1 -0
  129. package/lib/ACM-AXN/Page/CreateOrEdit/Recoil.js +5 -1
  130. package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewContent.js +1 -1
  131. package/lib/ACM-AXN/Page/CreateOrEdit/Tabview/ViewInfo.js +11 -4
  132. package/lib/ACM-AXN/Page/CreateOrEdit/Utils.js +1 -1
  133. package/lib/ACM-AXN/Page/Types.d.ts +9 -0
  134. package/lib/ACM-AXN/Page/index.js +2 -1
  135. package/lib/ACM-AXN/Permission/Components/Management.test.js +1 -1
  136. package/lib/ACM-AXN/PlaceGroup/Context.d.ts +1 -1
  137. package/lib/ACM-AXN/Statistics/ControlPanel.js +49 -47
  138. package/lib/ACM-AXN/Statistics/Enums.d.ts +1 -0
  139. package/lib/ACM-AXN/Statistics/Enums.js +1 -0
  140. package/lib/ACM-AXN/Statistics/container.js +1 -1
  141. package/lib/ACM-AXN/StatisticsAudienceDemographic/container.d.ts +1 -1
  142. package/lib/ACM-AXN/StatisticsAudienceDemographic/container.js +2 -3
  143. package/lib/ACM-AXN/StatisticsAudienceDemographic/interfaces.d.ts +1 -0
  144. package/lib/ACM-AXN/StatisticsByProvince/container.d.ts +1 -1
  145. package/lib/ACM-AXN/StatisticsByProvince/container.js +2 -2
  146. package/lib/ACM-AXN/TaskScheduler/Container.js +1 -1
  147. package/lib/ACM-AXN/TaskScheduler/CreateOrEdit.js +1 -1
  148. package/lib/ACM-AXN/TaskScheduler/Utils.js +2 -0
  149. package/lib/ACM-AXN/User/Add.d.ts +2 -0
  150. package/lib/ACM-AXN/User/Add.js +64 -0
  151. package/lib/ACM-AXN/User/Add.test.d.ts +1 -0
  152. package/lib/ACM-AXN/User/Add.test.js +115 -0
  153. package/lib/ACM-AXN/User/Constants.d.ts +2 -0
  154. package/lib/ACM-AXN/User/Constants.js +5 -0
  155. package/lib/ACM-AXN/User/Container.d.ts +2 -0
  156. package/lib/ACM-AXN/User/Container.js +60 -0
  157. package/lib/ACM-AXN/User/Container.test.d.ts +1 -0
  158. package/lib/ACM-AXN/User/Container.test.js +202 -0
  159. package/lib/ACM-AXN/User/Hook.d.ts +5 -0
  160. package/lib/ACM-AXN/User/Hook.js +13 -0
  161. package/lib/ACM-AXN/User/Types.d.ts +45 -0
  162. package/lib/ACM-AXN/User/Types.js +2 -0
  163. package/lib/ACM-AXN/User/index.d.ts +4 -0
  164. package/lib/ACM-AXN/User/index.js +18 -0
  165. package/lib/ACM-AXN/ViewTemplate/TemplateField/Fields/BasicField/index.js +1 -1
  166. package/lib/AWING/AdvancedSearch/component.js +1 -1
  167. package/lib/AWING/AdvancedSearch/interface.d.ts +1 -0
  168. package/lib/AWING/ButtonDateRangePicker/ButtonDateRangePicker.js +2 -2
  169. package/lib/AWING/ButtonDateRangePicker/interface.d.ts +1 -0
  170. package/lib/AWING/Chart/BarLineComponent.d.ts +1 -0
  171. package/lib/AWING/Chart/BarLineComponent.js +39 -24
  172. package/lib/AWING/Chart/PieComponent.d.ts +1 -1
  173. package/lib/AWING/Chart/PieComponent.js +0 -1
  174. package/lib/AWING/Chart/Styles.d.ts +6 -2
  175. package/lib/AWING/Chart/Styles.js +6 -2
  176. package/lib/AWING/Chart/index.d.ts +3 -0
  177. package/lib/AWING/Chart/index.js +10 -0
  178. package/lib/AWING/DataForm/DataInput.js +17 -8
  179. package/lib/AWING/DataForm/interface.d.ts +6 -2
  180. package/lib/AWING/DataGrid/index.js +20 -5
  181. package/lib/AWING/DataGrid/interface.d.ts +6 -1
  182. package/lib/AWING/Directory/CreateDirectory.d.ts +3 -0
  183. package/lib/AWING/Directory/CreateDirectory.js +27 -10
  184. package/lib/AWING/PageManagement/PageManagement.js +1 -1
  185. package/lib/AWING/index.d.ts +1 -0
  186. package/lib/AWING/index.js +1 -0
  187. package/lib/AWING/ultis/validation.d.ts +2 -2
  188. package/lib/AWING/ultis/validation.js +6 -4
  189. package/lib/Commons/Components/ClassicBaseDrawer.d.ts +1 -0
  190. package/lib/Commons/Components/ClassicBaseDrawer.js +7 -3
  191. package/lib/Commons/Components/ClassicDrawer.js +2 -2
  192. package/lib/translate/en/translation.json +81 -2
  193. package/lib/translate/vi/translation.json +81 -2
  194. package/package.json +4 -2
  195. package/lib/ACM-AXN/Notifications/NotificationDetail/Common.d.ts +0 -39
  196. package/lib/ACM-AXN/Notifications/NotificationDetail/Common.js +0 -304
  197. package/lib/ACM-AXN/Notifications/NotificationPopover.js +0 -69
@@ -1,304 +0,0 @@
1
- "use strict";
2
- /**
3
- *
4
- * @author dauquan1108@gmail.com on 11/28/2023.
5
- *
6
- **/
7
- Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.notificationsFake = exports.callAPI = exports.types = void 0;
9
- var types = {
10
- /** Tab Tất cả "All" */
11
- ALL: "All",
12
- /** Tab chưa đọc "Unread" */
13
- UNREAD: "Unread",
14
- /** Value item menu "Đánh dấu tất cả là đã đọc" */
15
- SELECTALL: "SelectAll",
16
- /** Value item menu "Cài đặt thông báo" */
17
- NOTIFICATIONSETTINGSCREEN: "NotificationSettingScreen",
18
- /**Đường dẫn đến trang chi tiết thông báo */
19
- NOTIFICATIONS: "notifications"
20
- };
21
- exports.types = types;
22
- var notificationsFake = [
23
- {
24
- id: "1",
25
- content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
26
- url: "https://awing.vn/",
27
- status: true,
28
- userName: "Đậu Xuân Quân",
29
- avatarUrl: "https://i.pinimg.com/564x/7d/be/68/7dbe686677277a06de561b16c1e2740b.jpg",
30
- time: "2023-12-06 10:30"
31
- },
32
- {
33
- id: "2",
34
- content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
35
- url: "https://awing.vn/",
36
- status: true,
37
- userName: "Đậu Xuân Quân",
38
- avatarUrl: "https://i.pinimg.com/564x/7d/be/68/7dbe686677277a06de561b16c1e2740b.jpg",
39
- time: "2023-12-05 15:30"
40
- },
41
- {
42
- id: "3",
43
- content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
44
- url: "https://awing.vn/",
45
- status: true,
46
- userName: "Phạm Văn Đồng",
47
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
48
- time: "02-12-2023 10:30"
49
- },
50
- {
51
- id: "4",
52
- content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
53
- url: "https://awing.vn/",
54
- status: true,
55
- userName: "Winmart",
56
- avatarUrl: "https://i.pinimg.com/564x/36/16/f3/3616f381a63e64ad00cdfb2a1fe07a5e.jpg",
57
- time: "2023/12/01 15:30"
58
- },
59
- {
60
- id: "5",
61
- content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
62
- url: "https://awing.vn/",
63
- status: false,
64
- userName: "Đậu Xuân Quân",
65
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
66
- time: "2023/12/01 15:30"
67
- },
68
- {
69
- id: "6",
70
- content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
71
- url: "https://awing.vn/",
72
- status: false,
73
- userName: "CAFE ÔNG BẦU",
74
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
75
- time: "30/11/2023"
76
- },
77
- {
78
- id: "7",
79
- content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
80
- url: "https://awing.vn/",
81
- status: true,
82
- userName: "Nguyễn Văn Linh",
83
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
84
- time: 1701244363
85
- },
86
- {
87
- id: "8",
88
- content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
89
- url: "https://awing.vn/",
90
- status: false,
91
- userName: "Hoàng Diệu",
92
- avatarUrl: "https://i.pinimg.com/564x/af/f7/bd/aff7bd16b0c46ff3a33e302c19e72368.jpg",
93
- time: 1701244363
94
- },
95
- {
96
- id: "9",
97
- content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
98
- url: "https://awing.vn/",
99
- status: false,
100
- userName: "Đậu Xuân Quân",
101
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
102
- time: 1701244363
103
- },
104
- {
105
- id: "10",
106
- content: "\n" +
107
- "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
108
- url: "https://awing.vn/",
109
- status: false,
110
- userName: "Đậu Xuân Quân",
111
- avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
112
- time: 1701244363
113
- },
114
- {
115
- id: "11",
116
- content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
117
- url: "https://awing.vn/",
118
- status: true,
119
- userName: "Đậu Xuân Quân",
120
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
121
- time: 1701244363
122
- },
123
- {
124
- id: "12",
125
- content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
126
- url: "https://awing.vn/",
127
- status: true,
128
- userName: "Đậu Xuân Quân",
129
- avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
130
- time: 1701244363
131
- },
132
- {
133
- id: "13",
134
- content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
135
- url: "https://awing.vn/",
136
- status: true,
137
- userName: "Phạm Văn Đồng",
138
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
139
- time: 1701244363
140
- },
141
- {
142
- id: "14",
143
- content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
144
- url: "https://awing.vn/",
145
- status: true,
146
- userName: "Winmart",
147
- avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
148
- time: 1701244363
149
- },
150
- {
151
- id: "15",
152
- content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
153
- url: "https://awing.vn/",
154
- status: false,
155
- userName: "Đậu Xuân Quân",
156
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
157
- time: 1701244363
158
- },
159
- {
160
- id: "16",
161
- content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
162
- url: "https://awing.vn/",
163
- status: false,
164
- userName: "CAFE ÔNG BẦU",
165
- avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
166
- time: 1701244363
167
- },
168
- {
169
- id: "17",
170
- content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
171
- url: "https://awing.vn/",
172
- status: true,
173
- userName: "Nguyễn Văn Linh",
174
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
175
- time: 1701244363
176
- },
177
- {
178
- id: "18",
179
- content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
180
- url: "https://awing.vn/",
181
- status: false,
182
- userName: "Hoàng Diệu",
183
- avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
184
- time: 1701244363
185
- },
186
- {
187
- id: "19",
188
- content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
189
- url: "https://awing.vn/",
190
- status: false,
191
- userName: "Đậu Xuân Quân",
192
- avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
193
- time: 1701244363
194
- },
195
- {
196
- id: "20",
197
- content: "\n" +
198
- "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
199
- url: "https://awing.vn/",
200
- status: false,
201
- userName: "Đậu Xuân Quân",
202
- avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
203
- time: 1701244363
204
- },
205
- //
206
- //
207
- // {
208
- // id: "21",
209
- // content: "<p>Chiến dịch <a href=\"https://github.com/dauquan1108\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Đậu Xuân Quân\">Đậu Xuân Quân</a> đã được cập nhật.</p>",
210
- // url: "https://awing.vn/",
211
- // status: false,
212
- // userName: "Đậu Xuân Quân",
213
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
214
- // time: 1701244363
215
- // },
216
- // {
217
- // id: "22",
218
- // content: "<p>Địa chỉ WMP_6786_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
219
- // url: "https://awing.vn/",
220
- // status: false,
221
- // userName: "Đậu Xuân Quân",
222
- // avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
223
- // time: 1701244363
224
- // },
225
- // {
226
- // id: "23",
227
- // content: "<p>Địa chỉ WMP_6787_VM + DNI 55/7 Phạm Văn Đồng thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
228
- // url: "https://awing.vn/",
229
- // status: false,
230
- // userName: "Phạm Văn Đồng",
231
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
232
- // time: 1701244363
233
- // },
234
- // {
235
- // id: "24",
236
- // content: "<p>Địa chỉ WMP_6788_VM + 98 Dương Quảng Hàm thuộc domain <a href=\"https://winmart.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">Winmart</a> đã bị từ chối join netWork.</p>",
237
- // url: "https://awing.vn/",
238
- // status: false,
239
- // userName: "Winmart",
240
- // avatarUrl: "https://i.pinimg.com/564x/bd/be/ed/bdbeed3fbbd014bc52bb4fb888f6a0bb.jpg",
241
- // time: 1701244363
242
- // },
243
- // {
244
- // id: "25",
245
- // content: "<p>Địa chỉ WMP_6789_VM + TNH Cầu Giấy thuộc domain <a href=\"https://ahacafe.vn/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"Winmart\">aHa CAFF</a> đã bị từ chối join netWork.</p>",
246
- // url: "https://awing.vn/",
247
- // status: false,
248
- // userName: "Đậu Xuân Quân",
249
- // avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
250
- // time: 1701244363
251
- // },
252
- // {
253
- // id: "26",
254
- // content: "<p>Chiến dịch <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã được cập nhật.</p>",
255
- // url: "https://awing.vn/",
256
- // status: false,
257
- // userName: "CAFE ÔNG BẦU",
258
- // avatarUrl: "https://i.pinimg.com/564x/e2/58/45/e25845a241fdbc32edfa22d3362ba5aa.jpg",
259
- // time: 1701244363
260
- // },
261
- // {
262
- // id: "27",
263
- // content: "<p>Địa chỉ WMP_5003_VM + TNH 17 Nguyễn Văn Linh thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
264
- // url: "https://awing.vn/",
265
- // status: false,
266
- // userName: "Nguyễn Văn Linh",
267
- // avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
268
- // time: 1701244363
269
- // },
270
- // {
271
- // id: "28",
272
- // content: "<p>Địa chỉ CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
273
- // url: "https://awing.vn/",
274
- // status: false,
275
- // userName: "Hoàng Diệu",
276
- // avatarUrl: "https://i.pinimg.com/564x/0e/75/db/0e75dbc6fec39c17d0c3cda8a69df254.jpg",
277
- // time: 1701244363
278
- // },
279
- // {
280
- // id: "29",
281
- // content: "<p>Địa chỉ WMP_5001_VM CAFE ÔNG BẦU_HN_331 Hoàng Diệu thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
282
- // url: "https://awing.vn/",
283
- // status: false,
284
- // userName: "Đậu Xuân Quân",
285
- // avatarUrl: "https://i.pinimg.com/564x/95/1f/7a/951f7ab8d374337e88c7065065927bf9.jpg",
286
- // time: 1701244363
287
- // },
288
- // {
289
- // id: "30",
290
- // content: "\n" +
291
- // "<p>Địa chỉ WMP_5000_VM + TNH Cầu Giấy thuộc domain <a href=\"https://www.cafeongbau.com/\" target=\"_blank\" style=\"text-decoration: none; color: blue;\" title=\"CAFE ÔNG BẦU\">CAFE ÔNG BẦU</a> đã bị từ chối join netWork.</p>",
292
- // url: "https://awing.vn/",
293
- // status: false,
294
- // userName: "Đậu Xuân Quân",
295
- // avatarUrl: "https://i.pinimg.com/564x/81/e9/35/81e935eb96f3be8dbbf61849e5153d3b.jpg",
296
- // time: 1701244363
297
- // },
298
- ];
299
- exports.notificationsFake = notificationsFake;
300
- var callAPI = {
301
- /** Số lượng mặc định khi thực hiện lấy mới dữ liệu từ server*/
302
- limit: 10,
303
- };
304
- exports.callAPI = callAPI;
@@ -1,69 +0,0 @@
1
- "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
4
- };
5
- Object.defineProperty(exports, "__esModule", { value: true });
6
- var jsx_runtime_1 = require("react/jsx-runtime");
7
- /**
8
- *
9
- * @author dauquan1108@gmail.com on 12/1/2023.
10
- *
11
- **/
12
- var react_1 = __importDefault(require("react"));
13
- var material_1 = require("@mui/material");
14
- var Notifications_1 = __importDefault(require("@mui/icons-material/Notifications"));
15
- var react_i18next_1 = require("react-i18next");
16
- var i18n_1 = __importDefault(require("../../i18n"));
17
- var NotificationDetail_1 = __importDefault(require("./NotificationDetail"));
18
- var Common_1 = require("./NotificationDetail/Common");
19
- var NotificationPopover = function () {
20
- var _a = react_1.default.useState(null), anchorEl = _a[0], setAnchorEl = _a[1];
21
- var _b = react_1.default.useState(11), totalNotification = _b[0], setTotalNotification = _b[1];
22
- var handleClick = function (event) {
23
- var href = window.location.href;
24
- // nếu đang ở notifications thì click vào quả chuông sẽ không mở popover nữa.
25
- if (!href.includes(Common_1.types.NOTIFICATIONS)) {
26
- setTotalNotification(0);
27
- setAnchorEl(event.currentTarget);
28
- }
29
- };
30
- var handleClose = function () {
31
- setAnchorEl(null);
32
- };
33
- var open = Boolean(anchorEl);
34
- var id = open ? "simple-popover" : undefined;
35
- return ((0, jsx_runtime_1.jsx)(react_i18next_1.I18nextProvider, { i18n: i18n_1.default, children: (0, jsx_runtime_1.jsxs)(material_1.Box, { component: "div", children: [(0, jsx_runtime_1.jsx)(material_1.IconButton, { "aria-describedby": id, onClick: handleClick, sx: { backgroundColor: open ? "#F98D9C" : "inherit" }, children: (0, jsx_runtime_1.jsx)(material_1.Badge, { badgeContent: totalNotification, color: "error", children: (0, jsx_runtime_1.jsx)(Notifications_1.default, { "data-testid": "notification-icon", sx: { color: open ? "#DD040C" : "inherit" } }) }) }), (0, jsx_runtime_1.jsx)(material_1.Popover, { id: id, open: open, anchorEl: anchorEl, onClose: handleClose, anchorOrigin: {
36
- vertical: "bottom",
37
- horizontal: "center"
38
- }, transformOrigin: {
39
- vertical: "top",
40
- horizontal: "center"
41
- }, PaperProps: {
42
- style: {
43
- borderRadius: "8px",
44
- },
45
- }, children: (0, jsx_runtime_1.jsx)(material_1.Box, { "data-testid": "popover", component: "div", sx: [
46
- {
47
- width: "400px",
48
- overflowY: "auto",
49
- maxHeight: "calc(90vh - 8px)",
50
- },
51
- {
52
- "&::-webkit-scrollbar": {
53
- width: "10px",
54
- },
55
- },
56
- {
57
- "&::-webkit-scrollbar-track": {
58
- backgroundColor: "#f1f1f1",
59
- },
60
- },
61
- {
62
- "&::-webkit-scrollbar-thumb": {
63
- borderRadius: "4px",
64
- backgroundColor: "#c1c1c1",
65
- },
66
- },
67
- ], children: (0, jsx_runtime_1.jsx)(NotificationDetail_1.default, {}) }) })] }) }));
68
- };
69
- exports.default = NotificationPopover;