awing-library 2.1.2-dev.577 → 2.1.2-dev.579
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/AWING/DataForm/container.test.js +3 -3
- package/dist/AWING/DataForm2/containerOptimized.test.js +2 -2
- package/dist/AWING/DataGridGroups/TableCollaped/RowAdvance.d.ts.map +1 -1
- package/dist/AWING/DataGridGroups/TableCollaped/RowAdvance.js +3 -5
- package/dist/Features/COMMON/Notifications/Enum.d.ts +2 -2
- package/dist/Features/COMMON/Notifications/Enum.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/Enum.js +2 -2
- package/dist/Features/COMMON/Notifications/NotificationDetail/index.js +4 -4
- package/dist/Features/COMMON/Notifications/Services.d.ts +5 -4
- package/dist/Features/COMMON/Notifications/Services.d.ts.map +1 -1
- package/dist/Features/COMMON/Notifications/Types.d.ts +3 -2
- package/dist/Features/COMMON/Notifications/Types.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { fireEvent, render, screen } from "@testing-library/react";
|
|
|
6
6
|
import { Constants } from "../../Commons/Constant.js";
|
|
7
7
|
import container from "./container.js";
|
|
8
8
|
var __webpack_modules__ = {
|
|
9
|
-
"
|
|
9
|
+
"../DataInput": function(module) {
|
|
10
10
|
module.exports = __WEBPACK_EXTERNAL_MODULE__DataInput_index_js_c7933a4f__;
|
|
11
11
|
},
|
|
12
12
|
"../helper": function(module) {
|
|
@@ -23,7 +23,7 @@ function __webpack_require__(moduleId) {
|
|
|
23
23
|
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
24
24
|
return module.exports;
|
|
25
25
|
}
|
|
26
|
-
var index_js_ = __webpack_require__("
|
|
26
|
+
var index_js_ = __webpack_require__("../DataInput");
|
|
27
27
|
jest.mock('../DataInput', ()=>({
|
|
28
28
|
__esModule: true,
|
|
29
29
|
default: jest.fn(),
|
|
@@ -91,7 +91,7 @@ jest.mock('@mui/material', ()=>({
|
|
|
91
91
|
children: children
|
|
92
92
|
})
|
|
93
93
|
}));
|
|
94
|
-
const mockInputFactory = __webpack_require__("
|
|
94
|
+
const mockInputFactory = __webpack_require__("../DataInput")["default"];
|
|
95
95
|
const mockCalculateValue = __webpack_require__("../helper").calculateValue;
|
|
96
96
|
const mockConvertFormulaToBinaryTree = __webpack_require__("../helper").convertFormulaToBinaryTree;
|
|
97
97
|
const mockReplaceFieldsValue = __webpack_require__("../helper").replaceFieldsValue;
|
|
@@ -5,7 +5,7 @@ import { act, fireEvent, render, screen, waitFor } from "@testing-library/react"
|
|
|
5
5
|
import containerOptimized from "./containerOptimized.js";
|
|
6
6
|
import { createFormStateManager } from "./formStateManager.js";
|
|
7
7
|
var __webpack_modules__ = {
|
|
8
|
-
"
|
|
8
|
+
"../DataInput": function(module) {
|
|
9
9
|
module.exports = __WEBPACK_EXTERNAL_MODULE__DataInput_index_js_c7933a4f__;
|
|
10
10
|
}
|
|
11
11
|
};
|
|
@@ -98,7 +98,7 @@ jest.mock('@mui/material', ()=>({
|
|
|
98
98
|
children: children
|
|
99
99
|
})
|
|
100
100
|
}));
|
|
101
|
-
const mockInputFactory = __webpack_require__("
|
|
101
|
+
const mockInputFactory = __webpack_require__("../DataInput")["default"];
|
|
102
102
|
describe('DataForm Optimized - Performance Tests', ()=>{
|
|
103
103
|
let inputRenderCounts = {};
|
|
104
104
|
const mockFields = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RowAdvance.d.ts","sourceRoot":"","sources":["../../../../src/AWING/DataGridGroups/TableCollaped/RowAdvance.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,QAAQ,EAAE,GAAG,EAAc,MAAM,UAAU,CAAC;AAElE,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI;IAC9B,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,iBAAS,UAAU,CAAC,SAAS,SAAS,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"RowAdvance.d.ts","sourceRoot":"","sources":["../../../../src/AWING/DataGridGroups/TableCollaped/RowAdvance.tsx"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAU,QAAQ,EAAE,GAAG,EAAc,MAAM,UAAU,CAAC;AAElE,MAAM,MAAM,QAAQ,CAAC,SAAS,IAAI;IAC9B,GAAG,EAAE,GAAG,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,cAAc,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,iBAAS,UAAU,CAAC,SAAS,SAAS,MAAM,EAAE,KAAK,EAAE,QAAQ,CAAC,SAAS,CAAC,2CA0LvE;AAED,eAAe,UAAU,CAAC"}
|
|
@@ -56,13 +56,11 @@ function RowAdvance_RowAdvance(props) {
|
|
|
56
56
|
await onFilter(page, crGroupFields ?? '', newFilters).then((res)=>{
|
|
57
57
|
const groupFieldsData = res.items.map((item)=>{
|
|
58
58
|
const newItem = {
|
|
59
|
+
...item,
|
|
59
60
|
groupKeyId: item.groupKeyId
|
|
60
61
|
};
|
|
61
|
-
|
|
62
|
-
if (
|
|
63
|
-
const fieldIndex = groupFields.indexOf(field);
|
|
64
|
-
if (fieldIndex > level) newItem[field] = item[field];
|
|
65
|
-
} else newItem[field] = item[field];
|
|
62
|
+
groupFields.forEach((field, fieldIndex)=>{
|
|
63
|
+
if (fieldIndex <= level) delete newItem[field];
|
|
66
64
|
});
|
|
67
65
|
return newItem;
|
|
68
66
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Enum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,MAAM,
|
|
1
|
+
{"version":3,"file":"Enum.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Enum.ts"],"names":[],"mappings":"AAAA,oBAAY,yBAAyB;IACjC,MAAM,WAAW;IACjB,IAAI,SAAS;CAChB"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var Enum_NotificationMessageStatus = /*#__PURE__*/ function(NotificationMessageStatus) {
|
|
2
|
-
NotificationMessageStatus[
|
|
3
|
-
NotificationMessageStatus[
|
|
2
|
+
NotificationMessageStatus["Unread"] = "Unread";
|
|
3
|
+
NotificationMessageStatus["Read"] = "Read";
|
|
4
4
|
return NotificationMessageStatus;
|
|
5
5
|
}({});
|
|
6
6
|
export { Enum_NotificationMessageStatus as NotificationMessageStatus };
|
|
@@ -6,7 +6,7 @@ import { useGetContext } from "../Context.js";
|
|
|
6
6
|
import { NotificationMessageStatus } from "../Enum.js";
|
|
7
7
|
import HeaderInfo from "./HeaderInfo/index.js";
|
|
8
8
|
import NotificationList from "./NotificationList/index.js";
|
|
9
|
-
const
|
|
9
|
+
const NotificationDetail = (props)=>{
|
|
10
10
|
const { service } = useGetContext();
|
|
11
11
|
const { onClosePopover } = props;
|
|
12
12
|
const [valueFilter, setValueFilter] = useState({
|
|
@@ -66,7 +66,7 @@ const NotificationDetail_NotificationDetail = (props)=>{
|
|
|
66
66
|
setValueFilter({
|
|
67
67
|
textSearch,
|
|
68
68
|
tabs,
|
|
69
|
-
status: tabs === Constants.ALL ? Constants.ALL_STATUS :
|
|
69
|
+
status: tabs === Constants.ALL ? Constants.ALL_STATUS : NotificationMessageStatus.Unread
|
|
70
70
|
});
|
|
71
71
|
};
|
|
72
72
|
const handleUpdateStatus = useCallback((dataSent)=>{
|
|
@@ -138,5 +138,5 @@ const NotificationDetail_NotificationDetail = (props)=>{
|
|
|
138
138
|
]
|
|
139
139
|
});
|
|
140
140
|
};
|
|
141
|
-
const
|
|
142
|
-
export {
|
|
141
|
+
const Notifications_NotificationDetail = NotificationDetail;
|
|
142
|
+
export { Notifications_NotificationDetail as default };
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
+
import { NotificationMessageStatus } from './Enum';
|
|
1
2
|
import { CancelToken, PagedList_1OfNotificationMessage } from './Types';
|
|
2
3
|
export type NotificationService = {
|
|
3
4
|
/**
|
|
4
5
|
* API hiện thị Danh sách Notification.
|
|
5
6
|
**/
|
|
6
|
-
notificationsPaging: (pageIndex: number | undefined, pageSize: number | undefined, searchString: string | undefined, status:
|
|
7
|
+
notificationsPaging: (pageIndex: number | undefined, pageSize: number | undefined, searchString: string | undefined, status: NotificationMessageStatus | undefined, cancelToken?: CancelToken) => Promise<PagedList_1OfNotificationMessage>;
|
|
7
8
|
/**
|
|
8
9
|
* API Chuyển trang Notifications thành đã đọc.
|
|
9
10
|
**/
|
|
10
|
-
notificationsReadAll?: (cancelToken?: CancelToken) => Promise<
|
|
11
|
+
notificationsReadAll?: (cancelToken?: CancelToken) => Promise<boolean>;
|
|
11
12
|
/**
|
|
12
13
|
* API Chuyển trang NotificationItem sang đã đọc.
|
|
13
14
|
**/
|
|
14
|
-
notificationsRead?: (body: number[]
|
|
15
|
+
notificationsRead?: (body: number[], cancelToken?: CancelToken) => Promise<boolean>;
|
|
15
16
|
/**
|
|
16
17
|
* API Chuyển trang NotificationItem sang chưa đọc.
|
|
17
18
|
**/
|
|
18
|
-
notificationsUnread?: (body: number[]
|
|
19
|
+
notificationsUnread?: (body: number[], cancelToken?: CancelToken) => Promise<boolean>;
|
|
19
20
|
/**
|
|
20
21
|
* API Hiển thị số lượng thông báo chưa đọc.
|
|
21
22
|
**/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Services.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;QAEI;IACJ,mBAAmB,EAAE,CACjB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"Services.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Services.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,gCAAgC,EAAE,MAAM,SAAS,CAAC;AAExE,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;QAEI;IACJ,mBAAmB,EAAE,CACjB,SAAS,EAAE,MAAM,GAAG,SAAS,EAC7B,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,MAAM,EAAE,yBAAyB,GAAG,SAAS,EAE7C,WAAW,CAAC,EAAE,WAAW,KACxB,OAAO,CAAC,gCAAgC,CAAC,CAAC;IAE/C;;QAEI;IACJ,oBAAoB,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEvE;;QAEI;IACJ,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpF;;QAEI;IACJ,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAEtF;;QAEI;IACJ,gCAAgC,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACrF,CAAC"}
|
|
@@ -6,7 +6,7 @@ export type LayoutNotificationProps = LayoutNotificationContextType & {};
|
|
|
6
6
|
export interface IValueFilterState {
|
|
7
7
|
textSearch: string;
|
|
8
8
|
tabs: string;
|
|
9
|
-
status:
|
|
9
|
+
status: NotificationMessageStatus | undefined;
|
|
10
10
|
}
|
|
11
11
|
export interface IValueItem {
|
|
12
12
|
id: number;
|
|
@@ -31,8 +31,9 @@ export interface CancelToken {
|
|
|
31
31
|
}
|
|
32
32
|
export interface NotificationMessage {
|
|
33
33
|
id?: number;
|
|
34
|
-
userId?:
|
|
34
|
+
userId?: number;
|
|
35
35
|
sagaTransactionType?: number;
|
|
36
|
+
message?: string;
|
|
36
37
|
fields?: NotificationMessageField[];
|
|
37
38
|
status?: NotificationMessageStatus;
|
|
38
39
|
createdDate?: Timestamp;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Types.d.ts","sourceRoot":"","sources":["../../../../src/Features/COMMON/Notifications/Types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,OAAO,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAC;AACnD,OAAO,EAAE,6BAA6B,EAAE,MAAM,WAAW,CAAC;AAE1D,MAAM,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAEzD,MAAM,MAAM,uBAAuB,GAAG,6BAA6B,GAAG,EAErE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAC9B,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,
|
|
1
|
+
{"version":3,"file":"Types.d.ts","sourceRoot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