awing-library 2.1.2-dev.518 → 2.1.2-dev.519

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/DataGridGroups/Container.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI9C,MAAM,MAAM,mBAAmB,CAAC,SAAS,SAAS,MAAM,IAAI;IACxD,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,iBAAS,SAAS,CAAC,SAAS,SAAS,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAC,2CAqFjF;AAED,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"Container.d.ts","sourceRoot":"","sources":["../../../src/AWING/DataGridGroups/Container.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI9C,MAAM,MAAM,mBAAmB,CAAC,SAAS,SAAS,MAAM,IAAI;IACxD,KAAK,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,CAAC;IACzB,kBAAkB,CAAC,EAAE,SAAS,EAAE,CAAC;IACjC,QAAQ,CAAC,EAAE,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC/B,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC;IAChC,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAClC,CAAC;AAEF,iBAAS,SAAS,CAAC,SAAS,SAAS,MAAM,EAAE,KAAK,EAAE,mBAAmB,CAAC,SAAS,CAAC,2CAiFjF;AAED,eAAe,SAAS,CAAC"}
@@ -7,7 +7,7 @@ import TableCollaped from "./TableCollaped/index.js";
7
7
  import PanelGroup from "./PanelGroup/index.js";
8
8
  import { initializeAtoms } from "./Atoms.js";
9
9
  import { initPage } from "./Constants.js";
10
- function Container_Container(props) {
10
+ function Container(props) {
11
11
  const atoms = initializeAtoms();
12
12
  const { defaultFieldGroups = [], onFilter, onRowClick, handleExportExcel } = props;
13
13
  const pageList = useAtomValue(atoms.pageList);
@@ -45,11 +45,6 @@ function Container_Container(props) {
45
45
  }, [
46
46
  props.cells
47
47
  ]);
48
- useEffect(()=>{
49
- fetchData(groupFields);
50
- }, [
51
- pageList
52
- ]);
53
48
  const handleFilter = ()=>{
54
49
  const newCells = [];
55
50
  groupFields.forEach((f)=>{
@@ -80,5 +75,5 @@ function Container_Container(props) {
80
75
  ]
81
76
  });
82
77
  }
83
- const Container = Container_Container;
84
- export { Container as default };
78
+ const DataGridGroups_Container = Container;
79
+ export { DataGridGroups_Container as default };
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AWING/DynamicLinqExpression/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAW,eAAe,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElE,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IAChF,IAAI,EAAE,UAAU,CAAC,uBAAuB,GAAG,yBAAyB,CAAC;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1E;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,2CA0DzE;AAED,eAAe,0BAA0B,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AWING/DynamicLinqExpression/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAW,eAAe,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAC7F,OAAO,EAAE,mBAAmB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElE,MAAM,WAAW,+BAAgC,SAAQ,mBAAmB,CAAC,MAAM,CAAC;IAChF,IAAI,EAAE,UAAU,CAAC,uBAAuB,GAAG,yBAAyB,CAAC;IACrE,eAAe,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1E;AAED,iBAAS,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,2CA2DzE;AAED,eAAe,0BAA0B,CAAC;AAC1C,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,CAAC"}
@@ -6,7 +6,7 @@ import { Autocomplete } from "@mui/material";
6
6
  import { analyze } from "../../wasm-modules/main.js";
7
7
  function DynamicLinqExpressionInput(props) {
8
8
  const { t } = useTranslation();
9
- const { objectStructure, value, onChange, ...rest } = props;
9
+ const { objectStructure, value, onChange, error, ...rest } = props;
10
10
  const [inputValue, setInputValue] = react.useState(value && value.length > 0 ? value : 'x => x');
11
11
  const [suggestions, setSuggestions] = react.useState([]);
12
12
  const [isValid, setIsValid] = react.useState(true);
@@ -38,7 +38,6 @@ function DynamicLinqExpressionInput(props) {
38
38
  disabled: rest.disabled,
39
39
  renderInput: (params)=>/*#__PURE__*/ jsx(TextField, {
40
40
  ...params,
41
- error: !isValid,
42
41
  helperText: isValid ? '' : t(`DynamicLinqExpression.${errorCode}`),
43
42
  variant: "standard",
44
43
  multiline: true,
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AWING/LogicExpression/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG5E,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACjF,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1E,CAAC;AAEF,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CA2C7D;AAED,eAAe,oBAAoB,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/AWING/LogicExpression/index.tsx"],"names":[],"mappings":"AAEA,OAAkB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEpE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAG5E,MAAM,MAAM,yBAAyB,GAAG,IAAI,CAAC,cAAc,EAAE,OAAO,GAAG,UAAU,CAAC,GAAG;IACjF,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,cAAc,CAAC,EAAE,aAAa,EAAE,CAAC;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;CAC1E,CAAC;AAEF,iBAAS,oBAAoB,CAAC,KAAK,EAAE,yBAAyB,2CA4C7D;AAED,eAAe,oBAAoB,CAAC;AACpC,YAAY,EAAE,eAAe,EAAE,iBAAiB,EAAE,CAAC"}
@@ -6,7 +6,7 @@ import { Autocomplete } from "@mui/material";
6
6
  import { getSuggestionsAndValidation } from "./utils.js";
7
7
  function LogicExpressionInput(props) {
8
8
  const { t } = useTranslation();
9
- const { objectStructures, functionStructures, enumStructures = [], value, onChange, ...rest } = props;
9
+ const { objectStructures, functionStructures, enumStructures = [], value, onChange, error, ...rest } = props;
10
10
  const [inputValue, setInputValue] = react.useState(value);
11
11
  const [suggestions, setSuggestions] = react.useState([]);
12
12
  const [isValid, setIsValid] = react.useState(true);
@@ -33,7 +33,6 @@ function LogicExpressionInput(props) {
33
33
  disabled: rest.disabled,
34
34
  renderInput: (params)=>/*#__PURE__*/ jsx(TextField, {
35
35
  ...params,
36
- error: !isValid,
37
36
  helperText: isValid ? '' : t(`LogicExpression.${errorCode}`),
38
37
  variant: "outlined",
39
38
  ...rest
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "awing-library",
3
- "version": "2.1.2-dev.518",
3
+ "version": "2.1.2-dev.519",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": {