awing-library 2.1.2-dev.578 → 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.
@@ -6,10 +6,10 @@ 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
- "AWING/DataInput": function(module) {
9
+ "../DataInput": function(module) {
10
10
  module.exports = __WEBPACK_EXTERNAL_MODULE__DataInput_index_js_c7933a4f__;
11
11
  },
12
- "AWING/helper": function(module) {
12
+ "../helper": function(module) {
13
13
  module.exports = __WEBPACK_EXTERNAL_MODULE__helper_js_663c9e82__;
14
14
  }
15
15
  };
@@ -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__("AWING/DataInput");
26
+ var index_js_ = __webpack_require__("../DataInput");
27
27
  jest.mock('../DataInput', ()=>({
28
28
  __esModule: true,
29
29
  default: jest.fn(),
@@ -91,10 +91,10 @@ jest.mock('@mui/material', ()=>({
91
91
  children: children
92
92
  })
93
93
  }));
94
- const mockInputFactory = __webpack_require__("AWING/DataInput")["default"];
95
- const mockCalculateValue = __webpack_require__("AWING/helper").calculateValue;
96
- const mockConvertFormulaToBinaryTree = __webpack_require__("AWING/helper").convertFormulaToBinaryTree;
97
- const mockReplaceFieldsValue = __webpack_require__("AWING/helper").replaceFieldsValue;
94
+ const mockInputFactory = __webpack_require__("../DataInput")["default"];
95
+ const mockCalculateValue = __webpack_require__("../helper").calculateValue;
96
+ const mockConvertFormulaToBinaryTree = __webpack_require__("../helper").convertFormulaToBinaryTree;
97
+ const mockReplaceFieldsValue = __webpack_require__("../helper").replaceFieldsValue;
98
98
  describe('DataForm Component', ()=>{
99
99
  const mockFields = [
100
100
  {
@@ -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
- "AWING/DataInput": function(module) {
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__("AWING/DataInput")["default"];
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,2CA6LvE;AAED,eAAe,UAAU,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
- fieldNames.forEach((field)=>{
62
- if (groupFields.includes(field)) {
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
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.578",
3
+ "version": "2.1.2-dev.579",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {