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
|
@@ -470,7 +470,6 @@ var validateExpression = function (oc, f, functionList, expression) {
|
|
|
470
470
|
console.log("Look bad the expression is boolean: ".concat(expression));
|
|
471
471
|
return false;
|
|
472
472
|
}
|
|
473
|
-
debugger;
|
|
474
473
|
var elements = expression.trim();
|
|
475
474
|
var rootNode = (0, exports.getNewNode)();
|
|
476
475
|
var currentNode = rootNode;
|
|
@@ -61,7 +61,7 @@ var PageManagement = function (props) {
|
|
|
61
61
|
var _a;
|
|
62
62
|
if (((_a = location.state) === null || _a === void 0 ? void 0 : _a.action) === ClassicDrawer_1.CloseAction.Reload ||
|
|
63
63
|
!(0, lodash_1.isEqual)(queryInput, cachedQueryInput.current)) {
|
|
64
|
-
handleChangeQueryInput(queryInput);
|
|
64
|
+
handleChangeQueryInput((0, lodash_1.cloneDeep)(queryInput));
|
|
65
65
|
cachedQueryInput.current = (0, lodash_1.cloneDeep)(queryInput);
|
|
66
66
|
}
|
|
67
67
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
package/lib/AWING/index.d.ts
CHANGED
package/lib/AWING/index.js
CHANGED
|
@@ -23,7 +23,7 @@ export declare function logicExpressionValid(value: string | null | undefined):
|
|
|
23
23
|
* @param invertRegex - The inverted regular expression pattern to match against the text string. Default is undefined.
|
|
24
24
|
* @returns An object containing the validation result and a message describing any validation errors.
|
|
25
25
|
*/
|
|
26
|
-
export declare const textValidation: (str: string, length?: number, required?: boolean, pattern?: RegExp, invertRegex?: RegExp) => {
|
|
26
|
+
export declare const textValidation: (str: string, length?: number, required?: boolean, pattern?: RegExp | false, invertRegex?: RegExp | false) => {
|
|
27
27
|
valid: boolean;
|
|
28
28
|
message: string;
|
|
29
29
|
};
|
|
@@ -96,7 +96,7 @@ exports.logicExpressionValid = logicExpressionValid;
|
|
|
96
96
|
var textValidation = function (str, length, required, pattern, invertRegex) {
|
|
97
97
|
if (length === void 0) { length = 50; }
|
|
98
98
|
if (required === void 0) { required = true; }
|
|
99
|
-
if (pattern === void 0) { pattern = /^[a-zA-Z0-9
|
|
99
|
+
if (pattern === void 0) { pattern = /^[a-zA-Z0-9đĐ\/\-_.()\[\] \u0080-\uFFFF]+$/g; }
|
|
100
100
|
var validRes = {
|
|
101
101
|
valid: true,
|
|
102
102
|
message: [],
|
|
@@ -106,17 +106,12 @@ var textValidation = function (str, length, required, pattern, invertRegex) {
|
|
|
106
106
|
validRes.valid = false;
|
|
107
107
|
validRes.message.push(i18n_1.default.t('Common.Required'));
|
|
108
108
|
}
|
|
109
|
-
|
|
110
|
-
.normalize('NFD')
|
|
111
|
-
.toLowerCase()
|
|
112
|
-
.replace(/\s\s+/g, ' ')
|
|
113
|
-
.replace(/[\u0300-\u036f]/g, '')
|
|
114
|
-
.replace(/đ/g, 'd')
|
|
115
|
-
.trim();
|
|
116
|
-
var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
|
|
117
|
-
if (textTransform && pattern && !pattern.test(textTransform)) {
|
|
109
|
+
if (str && pattern && !pattern.test(str)) {
|
|
118
110
|
validRes.valid = false;
|
|
119
|
-
|
|
111
|
+
if (invertRegex !== false) {
|
|
112
|
+
var invertedRegex = invertRegex || new RegExp("[^".concat(pattern.source.replace(/[*+?^${}|]/g, ''), "]").replace(/\[\[|\]\]/g, ']'), 'g');
|
|
113
|
+
validRes.message.push("".concat(i18n_1.default.t('Common.InvalidChars'), ": ").concat(Array.from(new Set(str.match(invertedRegex))).join(' ')));
|
|
114
|
+
}
|
|
120
115
|
}
|
|
121
116
|
var byteSize = new Blob([str]).size;
|
|
122
117
|
if (byteSize > length) {
|
|
@@ -20,8 +20,10 @@ var Save_1 = __importDefault(require("@mui/icons-material/Save"));
|
|
|
20
20
|
var LoadingButton_1 = __importDefault(require("@mui/lab/LoadingButton"));
|
|
21
21
|
var material_1 = require("@mui/material");
|
|
22
22
|
var react_i18next_1 = require("react-i18next");
|
|
23
|
-
var Router_1 = require("../../AWING/Router");
|
|
24
23
|
var i18n_1 = __importDefault(require("../../i18n"));
|
|
24
|
+
var react_1 = __importDefault(require("react"));
|
|
25
|
+
var usePath_1 = __importDefault(require("../../Commons/Hooks/usePath"));
|
|
26
|
+
var react_router_dom_1 = require("react-router-dom");
|
|
25
27
|
/**
|
|
26
28
|
* Drawer không trả về state
|
|
27
29
|
* @param{DrawerBaseProps} props
|
|
@@ -30,8 +32,10 @@ var i18n_1 = __importDefault(require("../../i18n"));
|
|
|
30
32
|
var DrawerBase = function (props) {
|
|
31
33
|
var _a;
|
|
32
34
|
var title = props.title, disableButtonSubmit = props.disableButtonSubmit, isLoadingButtonSubmit = props.isLoadingButtonSubmit, customAction = props.customAction, onSubmit = props.onSubmit, open = props.open, onClose = props.onClose, otherNodes = props.otherNodes, children = props.children, width = props.width, childrenWrapperStyle = props.childrenWrapperStyle;
|
|
33
|
-
var
|
|
34
|
-
var
|
|
35
|
+
var path = (0, usePath_1.default)();
|
|
36
|
+
var matchObj = react_1.default.useMemo(function () { return (0, react_router_dom_1.matchPath)({ path: path, end: true }, window.location.pathname); }, []);
|
|
37
|
+
// const match = path.startsWith(matchObj!.pattern.path) || matchObj!.pattern.path === path;
|
|
38
|
+
var match = true;
|
|
35
39
|
var t = (0, react_i18next_1.useTranslation)(undefined, { i18n: i18n_1.default }).t;
|
|
36
40
|
var handleSubmit = function () {
|
|
37
41
|
if (onSubmit) {
|
|
@@ -80,7 +80,7 @@ var Drawer = function (props) {
|
|
|
80
80
|
snackbar('success');
|
|
81
81
|
console.log('success');
|
|
82
82
|
}, 700);
|
|
83
|
-
closeDrawer(state
|
|
83
|
+
closeDrawer((typeof state === 'string' && state) ? state : CloseAction.Reload);
|
|
84
84
|
})
|
|
85
85
|
.catch(function () {
|
|
86
86
|
snackbar('error');
|
package/lib/Context/index.js
CHANGED
package/lib/Utils/Helpers.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare function timestampToStringDDMMYYYYHHmm(date: {
|
|
|
27
27
|
}): string | null;
|
|
28
28
|
export declare const getRoutePath: (location: Location, params: Params) => string;
|
|
29
29
|
export declare function calculatorDirectoryIdRoot(directoriesTree: any): number;
|
|
30
|
-
export declare function changeToAlias(str
|
|
30
|
+
export declare function changeToAlias(str?: string): string;
|
|
31
31
|
export declare const offlinePaginate: (array: DataObject[], pageIndex: number, pageSize: number) => DataObject[];
|
|
32
32
|
export declare function convertArrayToObject(array: any, keyName: string): any;
|
|
33
33
|
export declare function roundDecimalNumber(number: any): string | null;
|
|
@@ -104,3 +104,4 @@ export interface IHeadCells {
|
|
|
104
104
|
}
|
|
105
105
|
export declare const updateObjectFields: (originalObj: any, changedValues: any) => any;
|
|
106
106
|
export declare function formatChartNumber(val: any, language: string): string;
|
|
107
|
+
export declare const setObject: <O extends {}>(obj: O, arrKey: Array<keyof O>, value: unknown) => void;
|
package/lib/Utils/Helpers.js
CHANGED
|
@@ -23,10 +23,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
23
23
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.formatChartNumber = exports.updateObjectFields = exports.validateNumber = exports.getToday = exports.convertDataSetPattern = exports.convertAnalyticModelToChartDataAdvance = exports.getStartOfDay = exports.timestampToStringDDMMYYYY = exports.dateToStringDDMMYYYY = exports.convertTimelineToDateTime = exports.dateTimeToString = exports.convertTimestampToDateTime = exports.convertDateTimeToTimestamp = exports.checkValidUrl = exports.validateAnalyticTypes = exports.stringToListAccessPoint = exports.checkValidMacAddress = exports.checkValidStringListAP = exports.convertTimeLine = exports.WMAPEcalculator = exports.roundDecimalNumber = exports.convertArrayToObject = exports.offlinePaginate = exports.changeToAlias = exports.calculatorDirectoryIdRoot = exports.getRoutePath = exports.timestampToStringDDMMYYYYHHmm = exports.dateToStringddddDDMMYYYYHHmm = exports.downloadZipFile = exports.downloadFilePattern = exports.generateUUID = exports.displayLongString = exports.getQueryVariable = exports.formatNumber = exports.dateToString = exports.getCookie = exports.TIMELINE_TYPE = void 0;
|
|
26
|
+
exports.setObject = exports.formatChartNumber = exports.updateObjectFields = exports.validateNumber = exports.getToday = exports.convertDataSetPattern = exports.convertAnalyticModelToChartDataAdvance = exports.getStartOfDay = exports.timestampToStringDDMMYYYY = exports.dateToStringDDMMYYYY = exports.convertTimelineToDateTime = exports.dateTimeToString = exports.convertTimestampToDateTime = exports.convertDateTimeToTimestamp = exports.checkValidUrl = exports.validateAnalyticTypes = exports.stringToListAccessPoint = exports.checkValidMacAddress = exports.checkValidStringListAP = exports.convertTimeLine = exports.WMAPEcalculator = exports.roundDecimalNumber = exports.convertArrayToObject = exports.offlinePaginate = exports.changeToAlias = exports.calculatorDirectoryIdRoot = exports.getRoutePath = exports.timestampToStringDDMMYYYYHHmm = exports.dateToStringddddDDMMYYYYHHmm = exports.downloadZipFile = exports.downloadFilePattern = exports.generateUUID = exports.displayLongString = exports.getQueryVariable = exports.formatNumber = exports.dateToString = exports.getCookie = exports.TIMELINE_TYPE = void 0;
|
|
27
27
|
var moment_1 = __importDefault(require("moment"));
|
|
28
|
-
var
|
|
28
|
+
var i18n_1 = __importDefault(require("../i18n"));
|
|
29
29
|
var helper_1 = require("../AWING/helper");
|
|
30
|
+
var lodash_1 = require("lodash");
|
|
30
31
|
var TIMELINE_TYPE;
|
|
31
32
|
(function (TIMELINE_TYPE) {
|
|
32
33
|
TIMELINE_TYPE[TIMELINE_TYPE["HOUR"] = 0] = "HOUR";
|
|
@@ -55,7 +56,7 @@ function dateToString(date) {
|
|
|
55
56
|
exports.dateToString = dateToString;
|
|
56
57
|
function formatNumber(num) {
|
|
57
58
|
if (num || num === 0) {
|
|
58
|
-
return new Intl.NumberFormat(
|
|
59
|
+
return new Intl.NumberFormat(i18n_1.default.language === 'vi' ? 'vi-VN' : 'en-US').format(num);
|
|
59
60
|
}
|
|
60
61
|
else
|
|
61
62
|
return '';
|
|
@@ -137,7 +138,7 @@ function dateToStringddddDDMMYYYYHHmm(date) {
|
|
|
137
138
|
if (!date)
|
|
138
139
|
return null;
|
|
139
140
|
var _date = new Date(date);
|
|
140
|
-
var _language =
|
|
141
|
+
var _language = i18n_1.default.language || 'vi';
|
|
141
142
|
var options = {
|
|
142
143
|
weekday: 'long',
|
|
143
144
|
year: 'numeric',
|
|
@@ -196,6 +197,7 @@ function calculatorDirectoryIdRoot(directoriesTree) {
|
|
|
196
197
|
}
|
|
197
198
|
exports.calculatorDirectoryIdRoot = calculatorDirectoryIdRoot;
|
|
198
199
|
function changeToAlias(str) {
|
|
200
|
+
if (str === void 0) { str = ''; }
|
|
199
201
|
// Chuyển toàn bộ Tiếng Việt sang không dấu viết thường và các kí tự đặc biệt thành dấu "-"
|
|
200
202
|
return str
|
|
201
203
|
.trim()
|
|
@@ -423,7 +425,7 @@ function convertAnalyticModelToChartDataAdvance(analyticModel) {
|
|
|
423
425
|
var totalCTR = totalView > 0 ? ((totalClick * 100) / totalView).toFixed(2) : 0;
|
|
424
426
|
return [
|
|
425
427
|
{
|
|
426
|
-
label: "".concat(
|
|
428
|
+
label: "".concat(i18n_1.default.t('Common.Impression'), " ").concat(roundDecimalNumber(totalView)),
|
|
427
429
|
type: 'line',
|
|
428
430
|
data: ViewData,
|
|
429
431
|
fill: false,
|
|
@@ -432,7 +434,7 @@ function convertAnalyticModelToChartDataAdvance(analyticModel) {
|
|
|
432
434
|
variant: 'primary',
|
|
433
435
|
},
|
|
434
436
|
{
|
|
435
|
-
label: "".concat(
|
|
437
|
+
label: "".concat(i18n_1.default.t('Common.FinalClick'), " ").concat(roundDecimalNumber(totalClick)),
|
|
436
438
|
type: 'line',
|
|
437
439
|
data: ClickData,
|
|
438
440
|
fill: false,
|
|
@@ -459,19 +461,19 @@ var convertDataSetPattern = function (data) {
|
|
|
459
461
|
return [
|
|
460
462
|
{
|
|
461
463
|
data: ctr,
|
|
462
|
-
label:
|
|
464
|
+
label: i18n_1.default.t('Statistics.CTR'),
|
|
463
465
|
type: 'bar',
|
|
464
466
|
color: 'rgb(128, 176, 255)',
|
|
465
467
|
},
|
|
466
468
|
{
|
|
467
469
|
data: numberOfConnections,
|
|
468
|
-
label:
|
|
470
|
+
label: i18n_1.default.t('Statistics.NumberOfConnections'),
|
|
469
471
|
type: 'line',
|
|
470
472
|
color: 'rgb(0, 85, 184)',
|
|
471
473
|
},
|
|
472
474
|
{
|
|
473
475
|
data: impressions,
|
|
474
|
-
label:
|
|
476
|
+
label: i18n_1.default.t('Statistics.Impressions'),
|
|
475
477
|
type: 'line',
|
|
476
478
|
color: 'rgb(221, 4, 12)',
|
|
477
479
|
},
|
|
@@ -514,6 +516,9 @@ var updateObjectFields = function (originalObj, changedValues) {
|
|
|
514
516
|
obj[key] = value;
|
|
515
517
|
}
|
|
516
518
|
}
|
|
519
|
+
else {
|
|
520
|
+
obj[key] = value;
|
|
521
|
+
}
|
|
517
522
|
}
|
|
518
523
|
};
|
|
519
524
|
// Update nested fields
|
|
@@ -532,3 +537,7 @@ function formatChartNumber(val, language) {
|
|
|
532
537
|
return formatValue;
|
|
533
538
|
}
|
|
534
539
|
exports.formatChartNumber = formatChartNumber;
|
|
540
|
+
var setObject = function (obj, arrKey, value) {
|
|
541
|
+
(0, lodash_1.set)(obj, arrKey.reduce(function (acc, val) { return acc + '[' + val + ']'; }, ''), value);
|
|
542
|
+
};
|
|
543
|
+
exports.setObject = setObject;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Common": {
|
|
3
|
+
"Existed": "{0} is already existed!",
|
|
4
|
+
"lg": "en",
|
|
3
5
|
"InvalidData": "Invalid data",
|
|
4
6
|
"Required": "This field is required",
|
|
5
7
|
"Upload": "Upload",
|
|
@@ -111,7 +113,10 @@
|
|
|
111
113
|
"GroupName": "Group Name",
|
|
112
114
|
"InvalidChars": "Invalid characters",
|
|
113
115
|
"InvalidLength": "Invalid string length",
|
|
114
|
-
"RequestHasApprove": "Your request have approved"
|
|
116
|
+
"RequestHasApprove": "Your request have approved",
|
|
117
|
+
"Advance": "Advance",
|
|
118
|
+
"Default": "Default",
|
|
119
|
+
"Events": "Events"
|
|
115
120
|
},
|
|
116
121
|
"User": {
|
|
117
122
|
"Username": "Username",
|
|
@@ -131,6 +136,33 @@
|
|
|
131
136
|
"All": "All",
|
|
132
137
|
"TotalSelected": "Total selected"
|
|
133
138
|
},
|
|
139
|
+
"TemplateManagement": {
|
|
140
|
+
"Create": "Create template",
|
|
141
|
+
"Edit": "Edit template",
|
|
142
|
+
"title": "Template Management",
|
|
143
|
+
"TemplateName": "Template name",
|
|
144
|
+
"Page_lgn": "Page Login",
|
|
145
|
+
"Page_wlc": "Page Welcome",
|
|
146
|
+
"TemplateId": "Template ID",
|
|
147
|
+
"ImportTemplate": "Import template",
|
|
148
|
+
"Information": "Information",
|
|
149
|
+
"Template": "Template",
|
|
150
|
+
"Advance": "Advance",
|
|
151
|
+
"Script": "Script",
|
|
152
|
+
"TemplateHtml": "Html",
|
|
153
|
+
"TemplateValidation": "Validation",
|
|
154
|
+
"FieldAutoUpdate": "Field Auto Update",
|
|
155
|
+
"Parameter": "Parameter",
|
|
156
|
+
"FieldName": "Name",
|
|
157
|
+
"fieldType": "Type",
|
|
158
|
+
"NamingFieldNotice": "Do not use period characters (\". \") when naming fields",
|
|
159
|
+
"DuplicateFieldName": "Field name duplicated. Please check again",
|
|
160
|
+
"isDeprecate": "Unsupport"
|
|
161
|
+
},
|
|
162
|
+
"InvalidMessage": {
|
|
163
|
+
"InvalidNotExistedUsername": "Username is invalid or not existed",
|
|
164
|
+
"InvalidAccountConnected": "Account is already existed!"
|
|
165
|
+
},
|
|
134
166
|
"ViewTemplate": {
|
|
135
167
|
"Value": "Value",
|
|
136
168
|
"StaticUseFormat": "To use uploaded resources, use format",
|
|
@@ -162,7 +194,11 @@
|
|
|
162
194
|
"LastSevenDay": "Last 7 days",
|
|
163
195
|
"LastThirtyDay": "Last 30 days",
|
|
164
196
|
"ThisMonth": "This month",
|
|
165
|
-
"LastMonth": "Last month"
|
|
197
|
+
"LastMonth": "Last month",
|
|
198
|
+
"Tomorrow": "Tomorrow",
|
|
199
|
+
"NextSevenDay": "Next 7 days",
|
|
200
|
+
"NextThirtyDay": "Next 30 days",
|
|
201
|
+
"NextMonth": "Next month"
|
|
166
202
|
},
|
|
167
203
|
"Notifications": {
|
|
168
204
|
"SelectAll": "Mark all as read",
|
|
@@ -445,7 +481,8 @@
|
|
|
445
481
|
},
|
|
446
482
|
"CampaignName": "Campaign Name"
|
|
447
483
|
},
|
|
448
|
-
"CantBeDelete": "Can not delete this campaign"
|
|
484
|
+
"CantBeDelete": "Can not delete this campaign",
|
|
485
|
+
"Attributes": "Attributes"
|
|
449
486
|
},
|
|
450
487
|
"DirectoryManagement": {
|
|
451
488
|
"DirectoryName": "Directory Name",
|
|
@@ -653,5 +690,67 @@
|
|
|
653
690
|
"Filter": {
|
|
654
691
|
"AllCampaign": "All Campaign",
|
|
655
692
|
"CampaignDefault": "Campaign Default"
|
|
693
|
+
},
|
|
694
|
+
"Notification": {
|
|
695
|
+
"All": "All",
|
|
696
|
+
"Unread": "Unread",
|
|
697
|
+
"TitleManagement": "Notification Management",
|
|
698
|
+
"TitleDetail": "Reciever detail",
|
|
699
|
+
"TitleAddReceiver": "Add User/Group User",
|
|
700
|
+
"TitleUserGroup": "User and Group user",
|
|
701
|
+
"ShowMore": "Show more notifications",
|
|
702
|
+
"Place": "Place",
|
|
703
|
+
"Domain": "Domain",
|
|
704
|
+
"Page": "Page",
|
|
705
|
+
"PageLogin": "Page login",
|
|
706
|
+
"PageWelcome": "Page welcome",
|
|
707
|
+
"of domain": "of domain",
|
|
708
|
+
"has": "has",
|
|
709
|
+
"has been": "has been",
|
|
710
|
+
"approved": "been approved to",
|
|
711
|
+
"send": "send",
|
|
712
|
+
"request": "request",
|
|
713
|
+
"rejected": "been rejected to",
|
|
714
|
+
"Campaign": "Campaign",
|
|
715
|
+
"created": "created",
|
|
716
|
+
"updated": "updated",
|
|
717
|
+
"deleted": "deleted",
|
|
718
|
+
"Title": "Notification",
|
|
719
|
+
"MarkAllAsRead": "Mark all as read",
|
|
720
|
+
"Configuration": "Notification configuration",
|
|
721
|
+
"ObjectType": "Object type",
|
|
722
|
+
"Event": "Event",
|
|
723
|
+
"Status": "Status",
|
|
724
|
+
"User/Group": "User/Group",
|
|
725
|
+
"TabAll": "All",
|
|
726
|
+
"TabUser": "User",
|
|
727
|
+
"TabGroupUser": "Group User",
|
|
728
|
+
"NotFound": "Not found",
|
|
729
|
+
"SearchPlaceHolderUserGroup": "User/Group user",
|
|
730
|
+
"EventObject": {
|
|
731
|
+
"Create": "Create",
|
|
732
|
+
"Update": "Update",
|
|
733
|
+
"Delete": "Delete",
|
|
734
|
+
"JoinRequest": "Request to join Network",
|
|
735
|
+
"JoinApprove": "Accept the request to join Network",
|
|
736
|
+
"JoinReject": "Reject the request to join Network",
|
|
737
|
+
"UnjoinRequest": "Request to unjoin Network",
|
|
738
|
+
"UnjoinApprove": "Accept the request to unjoin Network",
|
|
739
|
+
"UnjoinReject": "Reject the request to unjoin Network"
|
|
740
|
+
},
|
|
741
|
+
"StatusActive": "Active",
|
|
742
|
+
"StatusInactive": "Inactive",
|
|
743
|
+
"Filter": {
|
|
744
|
+
"All": "All",
|
|
745
|
+
"Campaign": "Campaign",
|
|
746
|
+
"Join/UnJoin Request": "Join/UnJoin Request"
|
|
747
|
+
}
|
|
748
|
+
},
|
|
749
|
+
"RemarketingList": {
|
|
750
|
+
"Title": "Remarketing List",
|
|
751
|
+
"Create": "Create Remarketing List",
|
|
752
|
+
"Edit": "Edit Remarketing List",
|
|
753
|
+
"Detail": "Detail",
|
|
754
|
+
"FileUploadContentInvalid": "File Upload Content Invalid"
|
|
656
755
|
}
|
|
657
756
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"Common": {
|
|
3
|
+
"Existed": "{0} đã tồn tại!",
|
|
4
|
+
"lg": "vn",
|
|
3
5
|
"InvalidData": "Dữ liệu không hợp lệ",
|
|
4
6
|
"Required": "Đây là trường bắt buộc",
|
|
5
7
|
"Upload": "Tải lên",
|
|
@@ -116,7 +118,14 @@
|
|
|
116
118
|
"Copied": "Đã sao chép",
|
|
117
119
|
"InvalidChars": "Ký tự không hợp lệ",
|
|
118
120
|
"InvalidLength": "Độ dài chuỗi không hợp lệ",
|
|
119
|
-
"RequestHasApprove": "Yêu cầu đã được thay đổi"
|
|
121
|
+
"RequestHasApprove": "Yêu cầu đã được thay đổi",
|
|
122
|
+
"Advance": "Nâng cao",
|
|
123
|
+
"Default": "Mặc định",
|
|
124
|
+
"Events": "Sự kiện"
|
|
125
|
+
},
|
|
126
|
+
"InvalidMessage": {
|
|
127
|
+
"InvalidNotExistedUsername": "Tài khoản không tồn tại",
|
|
128
|
+
"InvalidAccountConnected": "Tài khoản đã tồn tại!"
|
|
120
129
|
},
|
|
121
130
|
"User": {
|
|
122
131
|
"Username": "Tài khoản",
|
|
@@ -167,7 +176,11 @@
|
|
|
167
176
|
"LastSevenDay": "7 ngày qua",
|
|
168
177
|
"LastThirtyDay": "30 ngày qua",
|
|
169
178
|
"ThisMonth": "Tháng này",
|
|
170
|
-
"LastMonth": "Tháng trước"
|
|
179
|
+
"LastMonth": "Tháng trước",
|
|
180
|
+
"Tomorrow": "Ngày mai",
|
|
181
|
+
"NextSevenDay": "7 Ngày tới",
|
|
182
|
+
"NextThirtyDay": "30 Ngày tới",
|
|
183
|
+
"NextMonth": "Tháng tới"
|
|
171
184
|
},
|
|
172
185
|
"Notifications": {
|
|
173
186
|
"SelectAll": "Đánh dấu tất cả là đã đọc",
|
|
@@ -450,7 +463,31 @@
|
|
|
450
463
|
},
|
|
451
464
|
"CampaignName": "Tên chiến dịch"
|
|
452
465
|
},
|
|
453
|
-
"CantBeDelete": "Không thể xoá chiến dịch này"
|
|
466
|
+
"CantBeDelete": "Không thể xoá chiến dịch này",
|
|
467
|
+
"Attributes": "Thuộc tính"
|
|
468
|
+
},
|
|
469
|
+
"TemplateManagement": {
|
|
470
|
+
"Create": "Tạo mới template",
|
|
471
|
+
"Edit": "Sửa template",
|
|
472
|
+
"title": "Quản trị template",
|
|
473
|
+
"TemplateName": "Tên Template",
|
|
474
|
+
"Page_lgn": "Trang Login",
|
|
475
|
+
"Page_wlc": "Trang Welcome",
|
|
476
|
+
"TemplateId": "Template ID",
|
|
477
|
+
"ImportTemplate": "Nhập Template",
|
|
478
|
+
"Information": "Thông tin",
|
|
479
|
+
"Template": "Template",
|
|
480
|
+
"Advance": "Nâng cao",
|
|
481
|
+
"Script": "Kịch bản",
|
|
482
|
+
"TemplateHtml": "Html",
|
|
483
|
+
"TemplateValidation": "Validation",
|
|
484
|
+
"FieldAutoUpdate": "Trường tự động cập nhật",
|
|
485
|
+
"Parameter": "Parameter",
|
|
486
|
+
"FieldName": "Tên",
|
|
487
|
+
"fieldType": "Kiểu",
|
|
488
|
+
"NamingFieldNotice": "Không sử dụng ký tự dấu chấm (\".\") khi đặt tên cho trường",
|
|
489
|
+
"DuplicateFieldName": "Tên trường trùng lặp. Vui lòng kiểm tra lại",
|
|
490
|
+
"isDeprecate": "Không hỗ trợ"
|
|
454
491
|
},
|
|
455
492
|
"DirectoryManagement": {
|
|
456
493
|
"DirectoryName": "Tên thư mục",
|
|
@@ -655,5 +692,67 @@
|
|
|
655
692
|
"Filter": {
|
|
656
693
|
"AllCampaign": "Tất cả chiến dịch",
|
|
657
694
|
"CampaignDefault": "Chiến dịch mặc định"
|
|
695
|
+
},
|
|
696
|
+
"Notification": {
|
|
697
|
+
"All": "Tất cả",
|
|
698
|
+
"Unread": "Chưa đọc",
|
|
699
|
+
"TitleManagement": "Quản trị thông báo",
|
|
700
|
+
"TitleDetail": "Chi tiết người nhận thông báo",
|
|
701
|
+
"TitleAddReceiver": "Thêm người dùng/nhóm người dùng",
|
|
702
|
+
"TitleUserGroup": "Tài khoản và nhóm tài khoản",
|
|
703
|
+
"ShowMore": "Hiện thêm thông báo",
|
|
704
|
+
"Place": "Địa điểm",
|
|
705
|
+
"Domain": "Domain",
|
|
706
|
+
"Page": "Trang",
|
|
707
|
+
"PageLogin": "Trang login",
|
|
708
|
+
"PageWelcome": "Trang welcome",
|
|
709
|
+
"of domain": "thuộc domain",
|
|
710
|
+
"has": "đã",
|
|
711
|
+
"has been": "đã được",
|
|
712
|
+
"approved": "đồng ý",
|
|
713
|
+
"send": "gửi",
|
|
714
|
+
"request": "yêu cầu",
|
|
715
|
+
"rejected": "bị từ chối",
|
|
716
|
+
"Campaign": "Chiến dịch",
|
|
717
|
+
"created": "tạo",
|
|
718
|
+
"updated": "cập nhật",
|
|
719
|
+
"deleted": "bị xóa",
|
|
720
|
+
"Title": "Thông báo",
|
|
721
|
+
"MarkAllAsRead": "Đánh dấu tất cả là đã đọc",
|
|
722
|
+
"Configuration": "Cài đặt thông báo",
|
|
723
|
+
"ObjectType": "Loại đối tượng",
|
|
724
|
+
"Event": "Sự kiện",
|
|
725
|
+
"Status": "Trạng thái",
|
|
726
|
+
"User/Group": "Người dùng/Nhóm",
|
|
727
|
+
"TabAll": "Tất cả",
|
|
728
|
+
"TabUser": "Người dùng",
|
|
729
|
+
"TabGroupUser": "Nhóm người dùng",
|
|
730
|
+
"NotFound": "Không tồn tại",
|
|
731
|
+
"SearchPlaceHolderUserGroup": "Người dùng/Nhóm người dùng",
|
|
732
|
+
"EventObject": {
|
|
733
|
+
"Create": "Tạo mới",
|
|
734
|
+
"Update": "Cập nhật",
|
|
735
|
+
"Delete": "Xóa",
|
|
736
|
+
"JoinRequest": "Yêu cầu tham gia Network",
|
|
737
|
+
"JoinApprove": "Chấp nhận yêu cầu tham gia Network",
|
|
738
|
+
"JoinReject": "Từ chối yêu cầu tham gia Network",
|
|
739
|
+
"UnjoinRequest": "Yêu cầu rời khỏi Network",
|
|
740
|
+
"UnjoinApprove": "Chấp nhận yêu cầu rời khỏi Network",
|
|
741
|
+
"UnjoinReject": "Từ chối yêu cầu rời khỏi Network"
|
|
742
|
+
},
|
|
743
|
+
"StatusActive": "Có sử dụng",
|
|
744
|
+
"StatusInactive": "Chưa sử dụng",
|
|
745
|
+
"Filter": {
|
|
746
|
+
"All": "Tất cả",
|
|
747
|
+
"Campaign": "Campaign",
|
|
748
|
+
"Join/UnJoin Request": "Yêu cầu Join/Unjoin"
|
|
749
|
+
}
|
|
750
|
+
},
|
|
751
|
+
"RemarketingList": {
|
|
752
|
+
"Title": "Danh sách Remarketing List",
|
|
753
|
+
"Create": "Tạo danh sách Remarketing",
|
|
754
|
+
"Edit": "Sửa danh sách Remarketing",
|
|
755
|
+
"Detail": "Xem chi tiết",
|
|
756
|
+
"FileUploadContentInvalid": "Nội dung file upload không hợp lệ"
|
|
658
757
|
}
|
|
659
758
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "awing-library",
|
|
3
|
-
"version": "2.1.26
|
|
3
|
+
"version": "2.1.26",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@emotion/styled": "^11.11.0",
|
|
21
21
|
"@goongmaps/goong-geocoder-react": "^0.1.1",
|
|
22
22
|
"@goongmaps/goong-map-react": "^1.0.9",
|
|
23
|
+
"@microsoft/signalr": "^8.0.0",
|
|
23
24
|
"@monaco-editor/react": "^4.6.0",
|
|
24
25
|
"@mui/icons-material": "^5.14.14",
|
|
25
26
|
"@mui/lab": "5.0.0-alpha.149",
|
|
@@ -33,6 +34,7 @@
|
|
|
33
34
|
"@testing-library/user-event": "^14.5.1",
|
|
34
35
|
"@types/file-saver": "^2.0.7",
|
|
35
36
|
"@types/jest": "^29.5.6",
|
|
37
|
+
"@types/lodash": "^4.17.0",
|
|
36
38
|
"@types/node": "^20.8.8",
|
|
37
39
|
"@types/react": "^18.2.31",
|
|
38
40
|
"@types/react-dom": "^18.2.14",
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
*
|
|
3
|
-
* @author dauquan1108@gmail.com on 11/28/2023.
|
|
4
|
-
*
|
|
5
|
-
**/
|
|
6
|
-
declare const types: {
|
|
7
|
-
/** Tab Tất cả "All" */
|
|
8
|
-
ALL: string;
|
|
9
|
-
/** Tab chưa đọc "Unread" */
|
|
10
|
-
UNREAD: string;
|
|
11
|
-
/** Value item menu "Đánh dấu tất cả là đã đọc" */
|
|
12
|
-
SELECTALL: string;
|
|
13
|
-
/** Value item menu "Cài đặt thông báo" */
|
|
14
|
-
NOTIFICATIONSETTINGSCREEN: string;
|
|
15
|
-
/**Đường dẫn đến trang chi tiết thông báo */
|
|
16
|
-
NOTIFICATIONS: string;
|
|
17
|
-
};
|
|
18
|
-
declare const notificationsFake: ({
|
|
19
|
-
id: string;
|
|
20
|
-
content: string;
|
|
21
|
-
url: string;
|
|
22
|
-
status: boolean;
|
|
23
|
-
userName: string;
|
|
24
|
-
avatarUrl: string;
|
|
25
|
-
time: string;
|
|
26
|
-
} | {
|
|
27
|
-
id: string;
|
|
28
|
-
content: string;
|
|
29
|
-
url: string;
|
|
30
|
-
status: boolean;
|
|
31
|
-
userName: string;
|
|
32
|
-
avatarUrl: string;
|
|
33
|
-
time: number;
|
|
34
|
-
})[];
|
|
35
|
-
declare const callAPI: {
|
|
36
|
-
/** Số lượng mặc định khi thực hiện lấy mới dữ liệu từ server*/
|
|
37
|
-
limit: number;
|
|
38
|
-
};
|
|
39
|
-
export { types, callAPI, notificationsFake };
|