awing-library 2.1.2-dev.575 → 2.1.2-dev.576

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 = [
@@ -1 +1 @@
1
- {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/component.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,6BAA6B,EAAyB,MAAM,aAAa,CAAC;AAgEnF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,KAAK,EAAE,6BAA6B,2CAwUnF"}
1
+ {"version":3,"file":"component.d.ts","sourceRoot":"","sources":["../../../src/AWING/MultipleChoice/component.tsx"],"names":[],"mappings":"AAkBA,OAAO,EAAE,6BAA6B,EAAyB,MAAM,aAAa,CAAC;AAiEnF,MAAM,CAAC,OAAO,UAAU,uBAAuB,CAAC,KAAK,EAAE,6BAA6B,2CAwUnF"}
@@ -6,6 +6,7 @@ import { Autocomplete, Box, Checkbox, Chip, IconButton, TextField, Typography }
6
6
  import { makeStyles } from "@mui/styles";
7
7
  import { SimpleTreeView } from "@mui/x-tree-view";
8
8
  import { TreeItem } from "@mui/x-tree-view/TreeItem";
9
+ import i18n from "../../translate/i18n.js";
9
10
  const TREE_SENTINEL_ID = '__multiple_choice_tree__';
10
11
  const TREE_SENTINEL_OPTION = {
11
12
  id: TREE_SENTINEL_ID,
@@ -314,9 +315,9 @@ function MultipleChoiceComponent(props) {
314
315
  width: '100%'
315
316
  },
316
317
  children: renderTreeNodes(options).some(Boolean) ? renderTreeNodes(options) : /*#__PURE__*/ jsx(Typography, {
317
- padding: 3,
318
+ padding: 1,
318
319
  paddingLeft: 2,
319
- children: "No options"
320
+ children: i18n.t('Common.NoOptions')
320
321
  })
321
322
  }));
322
323
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.575",
3
+ "version": "2.1.2-dev.576",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {