indicator-ui 0.0.239 → 0.0.241

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.
package/dist/index.js CHANGED
@@ -19928,10 +19928,12 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
19928
19928
  var formWrapperComponent = function formWrapperComponent(schema, key, additionProps) {
19929
19929
  var newKeyWay = schema.props.name ? [].concat(_toConsumableArray(additionProps.keyWay), [schema.props.name]) : additionProps.keyWay;
19930
19930
  var Element = schema.form_wrapper ? schema.form_wrapper : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {});
19931
- var elementKey = Element.props['key'];
19932
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(Element, _objectSpread(_objectSpread(_objectSpread({}, _objectSpread({}, schema.props)), {}, {
19933
- key: elementKey !== null && elementKey !== void 0 ? elementKey : key
19934
- }, (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(Element) ? additionProps.customCompAdditionProps : {}), {}, {
19931
+ var elementKey = schema.props._key !== undefined ? schema.props._key ? {
19932
+ key: schema.props._key
19933
+ } : {} : {
19934
+ key: key
19935
+ };
19936
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(Element, _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, _objectSpread({}, schema.props)), elementKey), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(Element) ? additionProps.customCompAdditionProps : {}), {}, {
19935
19937
  children: schema.props.children && (0,_lib__WEBPACK_IMPORTED_MODULE_3__.formBuilder)(schema.props.children, _objectSpread(_objectSpread({}, additionProps), {}, {
19936
19938
  // Сброс индексации массива
19937
19939
  arrayKeyWayItemName: undefined,
@@ -20147,15 +20149,18 @@ var inputFieldComponent = function inputFieldComponent(schema, key, additionProp
20147
20149
  }
20148
20150
  }
20149
20151
  var component = schema.props.ownerInputComponent ? schema.props.ownerInputComponent : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ui__WEBPACK_IMPORTED_MODULE_3__.InputField, {});
20150
- var elementKey = component.props['key'];
20151
- var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, additionProps !== null && additionProps !== void 0 && additionProps.inputFieldAdditionProps ? additionProps === null || additionProps === void 0 ? void 0 : additionProps.inputFieldAdditionProps : {}), {}, {
20152
+ var elementKey = schema.props._key !== undefined ? schema.props._key ? {
20153
+ key: schema.props._key
20154
+ } : {} : {
20155
+ key: key
20156
+ };
20157
+ var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread(_objectSpread({}, additionProps !== null && additionProps !== void 0 && additionProps.inputFieldAdditionProps ? additionProps === null || additionProps === void 0 ? void 0 : additionProps.inputFieldAdditionProps : {}), {}, {
20152
20158
  value: value,
20153
20159
  onChange: onChange,
20154
20160
  isError: isError,
20155
20161
  isErrorHintText: isErrorHintText,
20156
- onBlur: onBlur,
20157
- key: elementKey !== null && elementKey !== void 0 ? elementKey : key
20158
- }, additionProps.inputFieldClassName ? {
20162
+ onBlur: onBlur
20163
+ }, elementKey), additionProps.inputFieldClassName ? {
20159
20164
  className: additionProps.inputFieldClassName
20160
20165
  } : {}), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(component) ? additionProps.customCompAdditionProps : {}), schema.props);
20161
20166
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(component, props);