indicator-ui 0.0.237 → 0.0.239
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 +20 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19720,8 +19720,9 @@ var arrayFieldComponent = function arrayFieldComponent(schema, key, additionProp
|
|
|
19720
19720
|
name = _ref.name,
|
|
19721
19721
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19722
19722
|
var wrapper = schema.array_comp ? schema.array_comp : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {});
|
|
19723
|
+
var elementKey = wrapper.props['key'];
|
|
19723
19724
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(wrapper, _objectSpread(_objectSpread({}, props), {}, {
|
|
19724
|
-
key: key,
|
|
19725
|
+
key: elementKey !== null && elementKey !== void 0 ? elementKey : key,
|
|
19725
19726
|
children: children && (0,_lib__WEBPACK_IMPORTED_MODULE_2__.formBuilder)(children, _objectSpread(_objectSpread({}, additionProps), {}, {
|
|
19726
19727
|
// Сброс индексации массива
|
|
19727
19728
|
arrayKeyWayItemName: name,
|
|
@@ -19767,14 +19768,15 @@ var blockWrapperComponent = function blockWrapperComponent(schema, key, addition
|
|
|
19767
19768
|
var _ref = schema.props || {},
|
|
19768
19769
|
children = _ref.children,
|
|
19769
19770
|
props = _objectWithoutProperties(_ref, _excluded);
|
|
19770
|
-
var
|
|
19771
|
-
|
|
19771
|
+
var component = schema.block_wrapper ? schema.block_wrapper : (0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.Fragment, {});
|
|
19772
|
+
var elementKey = component.props['key'];
|
|
19773
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(component, _objectSpread(_objectSpread(_objectSpread({}, props), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(component) ? additionProps.customCompAdditionProps : {}), {}, {
|
|
19772
19774
|
children: children ? (0,_lib__WEBPACK_IMPORTED_MODULE_3__.formBuilder)(children, _objectSpread(_objectSpread({}, additionProps), {}, {
|
|
19773
19775
|
arrayKeyWayItemName: additionProps.arrayKeyWayItemName,
|
|
19774
19776
|
getCurArrayIndex: additionProps.arrayKeyWayItemName ? additionProps.getCurArrayIndex : undefined,
|
|
19775
19777
|
incrementCurArrayIndex: additionProps.arrayKeyWayItemName ? additionProps.incrementCurArrayIndex : undefined
|
|
19776
19778
|
})) : [],
|
|
19777
|
-
key: key
|
|
19779
|
+
key: elementKey !== null && elementKey !== void 0 ? elementKey : key
|
|
19778
19780
|
}));
|
|
19779
19781
|
};
|
|
19780
19782
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (blockWrapperComponent);
|
|
@@ -19926,8 +19928,9 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
19926
19928
|
var formWrapperComponent = function formWrapperComponent(schema, key, additionProps) {
|
|
19927
19929
|
var newKeyWay = schema.props.name ? [].concat(_toConsumableArray(additionProps.keyWay), [schema.props.name]) : additionProps.keyWay;
|
|
19928
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'];
|
|
19929
19932
|
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(Element, _objectSpread(_objectSpread(_objectSpread({}, _objectSpread({}, schema.props)), {}, {
|
|
19930
|
-
key: key
|
|
19933
|
+
key: elementKey !== null && elementKey !== void 0 ? elementKey : key
|
|
19931
19934
|
}, (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(Element) ? additionProps.customCompAdditionProps : {}), {}, {
|
|
19932
19935
|
children: schema.props.children && (0,_lib__WEBPACK_IMPORTED_MODULE_3__.formBuilder)(schema.props.children, _objectSpread(_objectSpread({}, additionProps), {}, {
|
|
19933
19936
|
// Сброс индексации массива
|
|
@@ -20143,18 +20146,19 @@ var inputFieldComponent = function inputFieldComponent(schema, key, additionProp
|
|
|
20143
20146
|
onChange(value !== undefined ? value : schema.props.defaultValue);
|
|
20144
20147
|
}
|
|
20145
20148
|
}
|
|
20146
|
-
var
|
|
20149
|
+
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'];
|
|
20147
20151
|
var props = _objectSpread(_objectSpread(_objectSpread(_objectSpread({}, additionProps !== null && additionProps !== void 0 && additionProps.inputFieldAdditionProps ? additionProps === null || additionProps === void 0 ? void 0 : additionProps.inputFieldAdditionProps : {}), {}, {
|
|
20148
20152
|
value: value,
|
|
20149
20153
|
onChange: onChange,
|
|
20150
20154
|
isError: isError,
|
|
20151
20155
|
isErrorHintText: isErrorHintText,
|
|
20152
20156
|
onBlur: onBlur,
|
|
20153
|
-
key: key
|
|
20157
|
+
key: elementKey !== null && elementKey !== void 0 ? elementKey : key
|
|
20154
20158
|
}, additionProps.inputFieldClassName ? {
|
|
20155
20159
|
className: additionProps.inputFieldClassName
|
|
20156
|
-
} : {}), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(
|
|
20157
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(
|
|
20160
|
+
} : {}), (0,_lib__WEBPACK_IMPORTED_MODULE_2__.isCustomComponent)(component) ? additionProps.customCompAdditionProps : {}), schema.props);
|
|
20161
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default().cloneElement(component, props);
|
|
20158
20162
|
};
|
|
20159
20163
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (inputFieldComponent);
|
|
20160
20164
|
|
|
@@ -20174,9 +20178,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
20174
20178
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
20175
20179
|
|
|
20176
20180
|
var reactNodeComponent = function reactNodeComponent(schema, key, _additionProps) {
|
|
20177
|
-
if (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(schema.react_node_comp))
|
|
20178
|
-
|
|
20179
|
-
|
|
20181
|
+
if (/*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().isValidElement(schema.react_node_comp)) {
|
|
20182
|
+
var elementKey = schema.react_node_comp.props['key'];
|
|
20183
|
+
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().cloneElement(schema.react_node_comp, {
|
|
20184
|
+
key: elementKey !== null && elementKey !== void 0 ? elementKey : key
|
|
20185
|
+
});
|
|
20186
|
+
}
|
|
20180
20187
|
return schema.react_node_comp;
|
|
20181
20188
|
};
|
|
20182
20189
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (reactNodeComponent);
|
|
@@ -25820,7 +25827,7 @@ function ScrollProvider(_ref) {
|
|
|
25820
25827
|
if (onScrollTop && Math.abs(scrollTop) <= accuracy) {
|
|
25821
25828
|
onScrollTop();
|
|
25822
25829
|
}
|
|
25823
|
-
if (onScrollBottom && scrollTop + clientHeight + accuracy >= scrollHeight) {
|
|
25830
|
+
if (onScrollBottom && Math.abs(scrollTop) + clientHeight + accuracy >= scrollHeight) {
|
|
25824
25831
|
onScrollBottom();
|
|
25825
25832
|
}
|
|
25826
25833
|
if (onScroll) {
|