dynamic-mui 1.0.62 → 1.0.63

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.
@@ -100,16 +100,23 @@ function Select(_ref3) {
100
100
  options: options,
101
101
  value: value,
102
102
  onChange: onChangeEvent,
103
- renderInput: params => /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({}, params, MuiBoxAttributes, {
104
- inputProps: {
105
- ...params.inputProps,
106
- autoComplete: 'new-password'
107
- },
108
- InputProps: {
103
+ renderInput: params => {
104
+ // Ensure custom adornments are incorporated without overriding other essential props
105
+ const customInputProps = (0, _helper.getInputProps)(InputProps);
106
+ const mergedInputProps = {
109
107
  ...params.InputProps,
110
- ...(0, _helper.getInputProps)(InputProps)
111
- }
112
- }))
108
+ ...customInputProps,
109
+ startAdornment: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, customInputProps === null || customInputProps === void 0 ? void 0 : customInputProps.startAdornment, params.InputProps.startAdornment, " "),
110
+ endAdornment: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, customInputProps === null || customInputProps === void 0 ? void 0 : customInputProps.endAdornment, params.InputProps.endAdornment)
111
+ };
112
+ return /*#__PURE__*/_react.default.createElement(_TextField.default, _extends({}, params, MuiBoxAttributes, {
113
+ inputProps: {
114
+ ...params.inputProps,
115
+ autoComplete: 'new-password' // Disables browser autocomplete
116
+ },
117
+ InputProps: mergedInputProps
118
+ }));
119
+ }
113
120
  }));
114
121
  }
115
122
  Select.propTypes = process.env.NODE_ENV !== "production" ? {
@@ -86,4 +86,41 @@ const multiSelect = exports.multiSelect = [{
86
86
  xs: 12,
87
87
  sm: 12
88
88
  }
89
+ }, {
90
+ type: 'select',
91
+ props: {
92
+ id: 'billingmode',
93
+ MuiAttributes: {
94
+ multiple: true,
95
+ disableCloseOnSelect: true
96
+ },
97
+ options: [{
98
+ value: 'SMS',
99
+ label: 'SMS'
100
+ }, {
101
+ value: 'E-mail',
102
+ label: 'E-mail'
103
+ }, {
104
+ value: 'Printed Statement of Account',
105
+ label: 'Printed Statement of Account'
106
+ }],
107
+ MuiBoxAttributes: {
108
+ label: 'Received Billing thru *'
109
+ },
110
+ InputProps: {
111
+ position: 'start',
112
+ icon: 'class'
113
+ }
114
+ },
115
+ layout: {
116
+ row: 90,
117
+ xs: 12,
118
+ sm: 6
119
+ },
120
+ rules: {
121
+ validation: [{
122
+ rule: 'mandatory',
123
+ message: 'Please select Billing Mode!'
124
+ }]
125
+ }
89
126
  }];
@@ -14,6 +14,7 @@ var _xDatePickers = require("@mui/x-date-pickers");
14
14
  var _react = _interopRequireDefault(require("react"));
15
15
  var _utils = require("@mui/x-data-grid/utils/utils");
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
17
18
  function generateLayout(data) {
18
19
  const layout = {
19
20
  wrows: [],
@@ -54,7 +55,9 @@ function getInputProps(InputProps) {
54
55
  textstyle = {}
55
56
  } = InputProps;
56
57
  return {
57
- ["".concat(position, "Adornment")]: /*#__PURE__*/_react.default.createElement(_material.InputAdornment, MuiInputAdornment, icon && /*#__PURE__*/_react.default.createElement(_material.Icon, null, icon), !(0, _isEmpty.default)(textstyle) ? /*#__PURE__*/_react.default.createElement("div", {
58
+ ["".concat(position, "Adornment")]: /*#__PURE__*/_react.default.createElement(_material.InputAdornment, _extends({}, MuiInputAdornment, {
59
+ key: "custom-icon-Adornment-".concat(position)
60
+ }), icon && /*#__PURE__*/_react.default.createElement(_material.Icon, null, icon), !(0, _isEmpty.default)(textstyle) ? /*#__PURE__*/_react.default.createElement("div", {
58
61
  style: textstyle
59
62
  }, text || '') : text || '')
60
63
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dynamic-mui",
3
- "version": "1.0.62",
3
+ "version": "1.0.63",
4
4
  "author": "Dinakaran S",
5
5
  "user": "dinakarans",
6
6
  "repository": {