awing-library 2.1.2-dev.556 → 2.1.2-dev.557

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,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
- "AWING/DataInput": function(module) {
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__("AWING/DataInput");
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__("AWING/DataInput")["default"];
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
- "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 = [
@@ -173,14 +173,13 @@ const AddOrEditPermission = (props)=>{
173
173
  objectTypeCodeSelected
174
174
  ]);
175
175
  useEffect(()=>{
176
- schemasFiltered.length ? setExplicitPermissions((prev)=>{
177
- if (!isCreate) return prev;
178
- return schemasFiltered.map((s)=>({
179
- schemaId: s.id,
180
- permissions: [],
181
- workflowStateIds: []
182
- }));
183
- }) : setExplicitPermissions([
176
+ if (schemasFiltered.length) {
177
+ if (!isCreate) setExplicitPermissions(()=>schemasFiltered.map((s)=>({
178
+ schemaId: s.id,
179
+ permissions: [],
180
+ workflowStateIds: []
181
+ })));
182
+ } else setExplicitPermissions([
184
183
  defaultPermission
185
184
  ]);
186
185
  setSchemas(schemasFiltered);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.556",
3
+ "version": "2.1.2-dev.557",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {