awing-library 2.1.2-dev.567 → 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.
|
@@ -9,7 +9,7 @@ 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) {
|
|
13
13
|
module.exports = __WEBPACK_EXTERNAL_MODULE__helper_js_663c9e82__;
|
|
14
14
|
}
|
|
15
15
|
};
|
|
@@ -92,9 +92,9 @@ jest.mock('@mui/material', ()=>({
|
|
|
92
92
|
})
|
|
93
93
|
}));
|
|
94
94
|
const mockInputFactory = __webpack_require__("AWING/DataInput")["default"];
|
|
95
|
-
const mockCalculateValue = __webpack_require__("
|
|
96
|
-
const mockConvertFormulaToBinaryTree = __webpack_require__("
|
|
97
|
-
const mockReplaceFieldsValue = __webpack_require__("
|
|
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
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/AWING/PlaceFilter/Tag/component/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/AWING/PlaceFilter/Tag/component/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,IAAI,EAAE,MAAM,6BAA6B,CAAC;AASjE,eAAO,MAAM,UAAU;;SAEL,MAElB,WAAW;2GADV,CAAC;AAsDF,eAAO,MAAM,iBAAiB,SAAiB,IAAI,+MAmBjD,CAAC;AACH,eAAO,MAAM,WAAW,QAAS,IAAI,uBAAuB,MAAM,uGA4EjE,CAAC"}
|
|
@@ -6,7 +6,6 @@ import { createElement } from "react";
|
|
|
6
6
|
import styled from "@emotion/styled";
|
|
7
7
|
import { NEGATIVE_COLOR, NORMAL_COLOR, POSITIVE_COLOR } from "../../../../Commons/Constant.js";
|
|
8
8
|
import { MAX_TAG_TITLE_LENGTH } from "../../constants.js";
|
|
9
|
-
import { t } from "i18next";
|
|
10
9
|
const CustomSpan = styled.span`
|
|
11
10
|
color: ${(props)=>props.color};
|
|
12
11
|
margin-left: 5px;
|
|
@@ -128,7 +127,7 @@ const getTagTitle = (tag, numOfPreviousPlaces)=>{
|
|
|
128
127
|
break;
|
|
129
128
|
}
|
|
130
129
|
});
|
|
131
|
-
title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || t('Common.All');
|
|
130
|
+
title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || i18n.t('Common.All');
|
|
132
131
|
let placeCountNode;
|
|
133
132
|
placeCountNode = numOfPreviousPlaces === numOfPlaces ? createElement(CustomSpan, {
|
|
134
133
|
color: NORMAL_COLOR,
|