awing-library 2.1.2-dev.566 → 2.1.2-dev.568
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/MultipleChoice/container.d.ts.map +1 -1
- package/dist/AWING/MultipleChoice/container.js +0 -1
- package/dist/AWING/PlaceFilter/Tag/component/utils.js +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
|
+
"AWING/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__("AWING/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__("AWING/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
|
+
"AWING/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__("AWING/DataInput")["default"];
|
|
102
102
|
describe('DataForm Optimized - Performance Tests', ()=>{
|
|
103
103
|
let inputRenderCounts = {};
|
|
104
104
|
const mockFields = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/container.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAyB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE1E,eAAO,MAAM,cAAc,UAAW,oBAAoB,
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/container.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAyB,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE1E,eAAO,MAAM,cAAc,UAAW,oBAAoB,4CAuFzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -15,7 +15,6 @@ const MultipleChoice = (props)=>{
|
|
|
15
15
|
value
|
|
16
16
|
]);
|
|
17
17
|
const handleChange = (_event, value, reason, details)=>{
|
|
18
|
-
console.log('value', value);
|
|
19
18
|
if ('removeOption' === reason) {
|
|
20
19
|
const newSelected = selected.filter((item)=>item.id !== details?.option.id);
|
|
21
20
|
setSelected(newSelected);
|
|
@@ -127,7 +127,7 @@ const getTagTitle = (tag, numOfPreviousPlaces)=>{
|
|
|
127
127
|
break;
|
|
128
128
|
}
|
|
129
129
|
});
|
|
130
|
-
title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || '
|
|
130
|
+
title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || i18n.t('Common.All');
|
|
131
131
|
let placeCountNode;
|
|
132
132
|
placeCountNode = numOfPreviousPlaces === numOfPlaces ? createElement(CustomSpan, {
|
|
133
133
|
color: NORMAL_COLOR,
|