awing-library 2.1.2-dev.566 → 2.1.2-dev.567

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
- "../DataInput": function(module) {
9
+ "AWING/DataInput": function(module) {
10
10
  module.exports = __WEBPACK_EXTERNAL_MODULE__DataInput_index_js_c7933a4f__;
11
11
  },
12
- "../helper": function(module) {
12
+ "AWING/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__("../DataInput");
26
+ var index_js_ = __webpack_require__("AWING/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__("../DataInput")["default"];
95
- const mockCalculateValue = __webpack_require__("../helper").calculateValue;
96
- const mockConvertFormulaToBinaryTree = __webpack_require__("../helper").convertFormulaToBinaryTree;
97
- const mockReplaceFieldsValue = __webpack_require__("../helper").replaceFieldsValue;
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;
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
- "../DataInput": function(module) {
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__("../DataInput")["default"];
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,4CAwFzD,CAAC;AAEF,eAAe,cAAc,CAAC"}
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);
@@ -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;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"}
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;AAUjE,eAAO,MAAM,UAAU;;SACI,MAAO,WAC3B;2GACN,CAAC;AAsDF,eAAO,MAAM,iBAAiB,SAAiB,IAAI,+MAmBjD,CAAC;AACH,eAAO,MAAM,WAAW,QAAS,IAAI,uBAAuB,MAAM,uGA4EjE,CAAC"}
@@ -6,6 +6,7 @@ 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";
9
10
  const CustomSpan = styled.span`
10
11
  color: ${(props)=>props.color};
11
12
  margin-left: 5px;
@@ -127,7 +128,7 @@ const getTagTitle = (tag, numOfPreviousPlaces)=>{
127
128
  break;
128
129
  }
129
130
  });
130
- title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || 'ALL';
131
+ title = (title.length >= MAX_TAG_TITLE_LENGTH ? `${title.slice(0, MAX_TAG_TITLE_LENGTH - 1)}...` : title) || t('Common.All');
131
132
  let placeCountNode;
132
133
  placeCountNode = numOfPreviousPlaces === numOfPlaces ? createElement(CustomSpan, {
133
134
  color: NORMAL_COLOR,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.566",
3
+ "version": "2.1.2-dev.567",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {