dynamic-mui 1.0.49 → 1.0.51

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.
@@ -12,6 +12,7 @@ var _isEmpty = _interopRequireDefault(require("lodash/isEmpty"));
12
12
  var _material = require("@mui/material");
13
13
  var _xDatePickers = require("@mui/x-date-pickers");
14
14
  var _react = _interopRequireDefault(require("react"));
15
+ var _utils = require("@mui/x-data-grid/utils/utils");
15
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
17
  function generateLayout(data) {
17
18
  const layout = {
@@ -86,13 +87,17 @@ const updatePatchData = function (fields, patch, guid) {
86
87
  const formData = Object.assign([], fields);
87
88
  return (0, _lodash.map)(formData, field => {
88
89
  var _newField$props;
89
- const newField = {
90
+ const newField = (0, _utils.deepClone)({
90
91
  ...field
91
- };
92
+ });
92
93
  const id = (newField === null || newField === void 0 ? void 0 : newField.id) || (newField === null || newField === void 0 || (_newField$props = newField.props) === null || _newField$props === void 0 ? void 0 : _newField$props.id);
93
94
  if (id && response[guid] && !isEmptyCustom(response[guid][id])) {
94
95
  const defaultValue = (newField === null || newField === void 0 ? void 0 : newField.type) === 'switch' || (newField === null || newField === void 0 ? void 0 : newField.type) === 'checkbox' ? false : '';
95
- newField.props.value = response[guid][id] || defaultValue;
96
+ newField.props = {
97
+ ...newField.props,
98
+ value: response[guid][id] || defaultValue
99
+ };
100
+ // newField.props.value = response[guid][id] || defaultValue;
96
101
  }
97
102
  return newField;
98
103
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-mui",
3
- "version": "1.0.49",
3
+ "version": "1.0.51",
4
4
  "author": "Dinakaran S",
5
5
  "user": "dinakarans",
6
6
  "repository": {
@@ -14,19 +14,19 @@
14
14
  "main": "dist-modules",
15
15
  "module": "src",
16
16
  "dependencies": {
17
- "@babel/eslint-parser": "^7.23.3",
17
+ "@babel/eslint-parser": "^7.23.10",
18
18
  "@babel/plugin-syntax-dynamic-import": "^7.8.3",
19
19
  "@babel/plugin-transform-modules-commonjs": "^7.23.3",
20
20
  "@emotion/react": "^11.11.3",
21
21
  "@emotion/styled": "^11.11.0",
22
- "@mui/icons-material": "^5.15.2",
23
- "@mui/material": "^5.15.2",
24
- "@mui/x-charts": "^6.18.4",
25
- "@mui/x-data-grid": "^6.18.6",
26
- "@mui/x-date-pickers": "^6.18.6",
27
- "@testing-library/jest-dom": "^6.1.5",
28
- "@testing-library/react": "^14.1.2",
29
- "@testing-library/user-event": "^14.5.1",
22
+ "@mui/icons-material": "^5.15.7",
23
+ "@mui/material": "^5.15.7",
24
+ "@mui/x-charts": "^6.19.3",
25
+ "@mui/x-data-grid": "^6.19.3",
26
+ "@mui/x-date-pickers": "^6.19.3",
27
+ "@testing-library/jest-dom": "^6.4.2",
28
+ "@testing-library/react": "^14.2.1",
29
+ "@testing-library/user-event": "^14.5.2",
30
30
  "babel-plugin-transform-react-remove-prop-types": "^0.4.24",
31
31
  "date-fns": "^2.30.0",
32
32
  "dayjs": "^1.11.10",
@@ -39,7 +39,7 @@
39
39
  "react-number-format": "^5.3.1",
40
40
  "react-scripts": "5.0.1",
41
41
  "validator": "^13.11.0",
42
- "web-vitals": "^3.5.0"
42
+ "web-vitals": "^3.5.2"
43
43
  },
44
44
  "scripts": {
45
45
  "start": "craco start",
@@ -72,21 +72,22 @@
72
72
  ]
73
73
  },
74
74
  "devDependencies": {
75
- "@babel/cli": "^7.23.4",
76
- "@babel/core": "^7.23.6",
75
+ "@babel/cli": "^7.23.9",
76
+ "@babel/core": "^7.23.9",
77
77
  "@babel/plugin-proposal-private-property-in-object": "^7.21.11",
78
- "@babel/preset-env": "^7.23.6",
78
+ "@babel/preset-env": "^7.23.9",
79
+ "@babel/preset-react": "^7.23.3",
79
80
  "@craco/craco": "^7.1.0",
80
81
  "eslint": "8.56.0",
81
82
  "eslint-config-airbnb": "^19.0.4",
82
83
  "eslint-config-prettier": "^9.1.0",
83
84
  "eslint-plugin-import": "^2.29.1",
84
85
  "eslint-plugin-jsx-a11y": "^6.8.0",
85
- "eslint-plugin-prettier": "^5.1.2",
86
+ "eslint-plugin-prettier": "^5.1.3",
86
87
  "eslint-plugin-react": "^7.33.2",
87
88
  "eslint-plugin-react-hooks": "^4.6.0",
88
- "prettier": "^3.1.1",
89
- "react-styleguidist": "^13.1.1",
89
+ "prettier": "^3.2.5",
90
+ "react-styleguidist": "^13.1.2",
90
91
  "tinycolor2": "^1.6.0"
91
92
  }
92
93
  }